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
State the difference between strings and arrays.
Why can't we make a class private in java?
What's the purpose of using break in each case of switch statement?
What is composition in java?
what are synchronized methods and synchronized statements? : Java thread
What is join () in java?
What is the this keyword?
Explain about abstract classes in java?
What is a singleton in genetics?
State the main difference between c++ and java?
Explain the difference between association, aggregation and inheritance relationships.
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is final variable?
What is the difference between jvm and jre? What is an interface?
What is module with example?