Answer Posted / jadhavpnilesh
I read all the answers and same I explained in my recent
interview. She asked me instead of inheriting the class i
will create object of class and call methods of that class
is it not reuse of code ? What she was expecting exactly,
can anyone help ?
| Is This Answer Correct ? | 16 Yes | 8 No |
Post New Answer View All Answers
What are the three types of design patterns?
What is an object’s lock and which object’s have locks?
How does multithreading take place on a computer with a single cpu?
What is boolean query?
What is a protected method?
What is scope & storage allocation of static, local and register variables? Explain with an example.
How to optimize the javac output?
Difference between == and .equals() ?
Are arrays dynamic in java?
Explain the hierarchy of java exception classes?
What is difference between equal and == in java?
What happens when main () method is declared as private?
How can a gui component handle its own events?
What are the advantages of unicode?
Can It is possible to synchronize the constructor of a Java Class?