what is the purpose of class "Object" which is base class
for all classes?
Answer Posted / piryabrata patro
listen first , when you create object of one class which is not extending any class than , instead of one object , two object will be created and that is nothing but object of Object class and one more thing is no object is created with out it's superclass. So, object of subclass can not be created without it's superclass where Object class comes into picture because by default compiler gives Object class as superclass to all class which is not extending any class at compilation time itself.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is method reference?
What is difference between classpath and path variables in java?
Write a program to print the pattern given below
How define set in java?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
What are class members by default?
How does the garbage collector works in java?
What is charat ()?
What is anagram of a string?
How do you start a thread?
What are different access specifiers in java?
Can we write a class without main method in java?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What is meant by javabeans?
Can a final variable be manipulated in java?