Core java - Interview Questions and Answers for 'Niit' - 6 question(s) found - Order By Newest Frequently asked at Manhattan Associates ( Based on 2 feedback ) Q1. What is a Lambda Expression ? What's its use ? Core Java
Ans. Its an anonymous method without any declaration.
Lambda Expression are useful to write shorthand Code and hence saves the effort of writing lengthy Code.
It promotes Developer productivity, Better Readable and Reliable code. Sample Code for lambda Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   java8   lambda expression   architecture Asked in 58 Companies expert   frequent Try 1 Question(s) TestBasic and Very Frequently asked. Ans. Polymorphism means the condition of occurring in several different forms.
Polymorphism in Java is achieved in two manners
1. Static polymorphism is the polymorphic resolution identified at compile time and is achieved through function overloading whereas
2. Dynamic polymorphism is the polymorphic resolution identified at runtime and is achieved through method overriding. Sample Code for overloading Sample Code for overriding Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  polymorphism  object oriented programming (oops)  oops concepts  oops concepts Asked in 108 Companies Basic   frequent Try 2 Question(s) TestFrequently asked. Favorite question in Walk in Drive of many Indian service companies. Q3. What are the methods of Object Class ? Core Java
Ans. clone() - Creates and returns a copy of this object.
equals() - Indicates whether some other object is "equal to" this one.
finalize() - Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
getClass() - Returns the runtime class of an object.
hashCode() - Returns a hash code value for the object.
toString() - Returns a string representation of the object.
notify(), notifyAll(), and wait() - Play a part in synchronizing the activities of independently running threads in a program. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   oops   object class Asked in 16 Companies basic   frequent Try 1 Question(s) Test Q4. Provide an implementation for Producer / Consumer using threads. Core Java
Ans. https://www.tutorialspoint.com/javaexamples/thread_procon.htm Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  coding  code Asked in 1 Companies Q5. What are the core OOPs concepts ? Core Java
Ans. Abstraction, Encapsulation, Polymorphism , Composition and Inheritance Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  core oops concepts Asked in 65 Companies basic   frequent This question was recently asked at 'NIIT Technologies'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies