What are the Object and Class that classes used for?
Answer Posted / ashok
Object class is the ultimate super class of all classes in java.It defines maths method which are inherited by all classes in java.
Class class defines the functionality or behaviour for all classes in java that how object of class should behave according to the functionality of that class.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is run time allocation?
What is a java applet? What is an interface?
When do we use synchronized blocks and advantages of using synchronized blocks?
How do I remove a character from a string in java?
What interface is extended by awt event listeners?
What is variable length arguments in java?
Can a static class have a constructor?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is method reference in java?
What are the 7 types of characters?
Explain the importance of thread scheduler in java?
Difference between this() and super() ?
Can list contain null in java?
What is hash code collision?
What are the limitations of procedural programming approach?