how can be object class inherited to all class in a program
when java does not support multiple inheritance??

Answer Posted / ashok yadav

A class always extends only one class. That is the Object
class or the class defined with the extends keyword. That
class in turn can extend also only one class until eventual
the Object class is reached.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java beans?

760


What is autoboxing in java?

798


What is computer compiler?

737


How to set the permissions to a file in java?

733


Explain thread life cycle in java?

777


Can we have try block without catch block?

782


How many types of voids are there?

739


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

810


What restrictions are placed on method overloading?

859


What is the difference between static method and instance method in Java?

791


What is a void method?

694


What is an abstract class and what is it’s purpose?

715


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

776


What is boolean strategy?

848


Can you use this() and super() both in a constructor?

721