Java - Interview Questions and Answers for 'Blackrock' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Java Interview Questions


 2098 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Blackrock' - 8 question(s) found - Order By Newest

Very frequently asked. Usually asked in different variants like Diff between StringBuffer , String Builder ; Difference between StringBuilder and String class; Choice between these classes etc.
  Q1. What is the difference between StringBuffer and String class ?Core Java
Anonymous
Ans. A string buffer implements a mutable sequence of characters. A string buffer is like a String, but can be modified. At any point in time it contains some particular sequence of characters, but the length and content of the sequence can be changed through certain method calls.

The String class represents character strings. All string literals in Java programs, such as "abc" are constant and implemented as instances of this class; their values cannot be changed after they are created.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     java   string   stringbuffer   frequently asked     BlackRock  Synechron  RedMane Technology  Velopsys Technologies   American Express  Sophos  QualiTest  ebay  Infosys Technologies      basic        frequent

Try 1 Question(s) Test


Frequently asked question for intermediate developers.
  Q2. What is Volatile keyword used for ?Core Java
Anonymous
Ans. Volatile is a declaration that a variable can be accessed by multiple threads and hence shouldnt be cached.

  Sample Code for volatile

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     java   oops   synchronization   volatile   java keywords     ABC Ltd   Ciena  Xchanging  Square  Infoview Technologies  HCL Technologies  EPAM  GrubHub  TeleMessage  TRUSTe  Informatica  Square  Medidata Solutions  Yellow Pages  eQ Technologic  Sutra Analytics  CustomerXPs  Globant  BB Holdings  Rakuten  Booking.com  BlackRock  Qualcomm  LSI Corporation  ARM Holdings  SpaceX  Toshiba  Peapod  Amadeus  Apptio  Tivo  EchoStar  HomeAway  Syscom Technologies  Aversan  Symantec  Samsung India  Axtria  Qualcomm  CGI Group      intermediate        frequent

Try 1 Question(s) Test


 Q3. What is a ConcurrentHashMap ?Core Java
Admin
info@buggybread.com
Ans. ConcurrentHashMap is a hashMap that allows concurrent modifications from multiple threads as there can be multiple locks on the same hashmap.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     java   collections   hashmap   map   concurrenthashmap   concurrenthashmap  concurrency   general electric   ge     Cognizant (CTS)  Synechron  General Electric  MakeMyTrip.com  Nomura Securities  Xpanxion  Royal Bank of Scotland (RBS)  ProKarma  Talentica  Citi  EdgeVerve Systems  Six Dee Telecom  ReqRoute  Qumulo  Goldman Sachs  HSBC Holdings  AlertMe.com  BlackRock  Helpchat  Bally Technologies  Hubzu  Xpanxion  Coromandel Infotech  Paytm  YuMe  InfoGain  Markit  Wells Fargo  Geometric  Acloudzyn Technologies  Roposo        rare


 Q4. What is the use of Synchronized block ?Core Java

Ans. The goal of a synchronised block is to achieve mutual exclusion i.e at one time, the segment of the code should be executed by single thread only and hence the lock needs to be retrieved before executing the segment and then released.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     synchronized block   synchronized   synchronization   multithreading   threads   mutual exclusion   concurrency     Capgemini  Cognam Technologies  hewlett packard (HP)  BlackRock      intermediate        frequent

Try 1 Question(s) Test


  Q5. How is multiple inheritance implemented in Java ?Core Java

Ans. There was no multiple inheritance in java before version 8 as implementing multiple interfaces cannot be termed as inheritance.

With Java 8 , came the concept of default methods wherein the class implementing the interface carries the default implementation from the interface and hence facilitating multiple inheritance.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     multiple inheritance   inheritance   oops concept     Credit Suisse  Amdocs  Ample Softwares  Tudip Technologies  Edifecs  VMWare  NSEiT  Exterro  theScore  BlackRock        frequent


 Q6. How to Change Default Boot Kernel in Linux ?Unix2016-11-11 11:31:08

Ans. https://www.redhat.com/archives/rhl-list/2005-April/msg04167.html

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     unix  change default kernel     BlackRock


  Q7. Why java doesn't support multiple Inheritance ? or Explain Java Diamond Problem.Core Java2017-01-09 11:45:34

Ans. class A {
void test() {
System.out.println("test() method");
}
}

class B {
void test() {
System.out.println("test() method");
}
}

Suppose if Java allows multiple inheritance like this,

class C extends A, B {
}

A and B test() methods are inheriting to C class.

So which test() method C class will take? As A & B class test() methods are different , So here we would Facing Ambiguity.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     multiple inheritance  diamond problem     Sirius Computer Solutions  Hewlett Packard (HP)  Sun Trading  Amdocs  Ample Softwares  Tudip Technologies  Edifecs  VMWare  NSEiT  Credit Suisse  Exterro  theScore  BlackRock      basic        frequent


 Q8. Difference between concurrentHashMap and HashTable ?Core Java2017-01-29 18:37:04

Ans. HashTable locks the complete collection to provide synchronization whereas ConcurrentHashMap only locks segments to achieve synchronization and hence better efficient and faster.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     concurrentHashMap  HashTable  Map  Collections     Talentica  BlackRock




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

2 person from are looking for questions for 'Blackrock'. Connect with them to better prepare for your interview.
X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: