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 about member inner classes?
What are serialization and deserialization?
What is classpath?
Can I import same package/class twice?
What is the method in java?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What are the Main functions of Java?
Why object class is super class for every class in java?
Which is the class in java?
Do I need java on my pc?
What is balanced tree in java?
Can extern variables be initialized?
What is a website container?
Why is the singleton pattern considered to be an anti pattern?
Can we have two main methods in a java class?