Define inheritance with reference to java.



Define inheritance with reference to java...

Answer / Nidhish Paty Sahay

Inheritance in Java is a mechanism where one class derives properties (fields, methods) from another class. The derived class or subclass can override the inherited methods and provide its implementation. This allows for code reuse and organization.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a string what operation can be performed out with the help of a string?

1 Answers  


How do you escape json?

1 Answers  


What is replaceall in java?

1 Answers  


What is a singleton factory?

1 Answers  


What is map and hashmap in java?

1 Answers  


jdbc drivers?

8 Answers   Wipro,


Definition for connection pooling?

3 Answers  


How does regex work?

1 Answers  


What is the difference between normal report & matrix report?

1 Answers  


If you do not want your class to be inherited by any other class. What would you do?

1 Answers  


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

1 Answers  


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1 Answers  


Categories