What are the Object and Class that classes used for?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran(aptech mumbai)
class is the template for members and methods to get declared
and object is the physical reality for a class and is used
to call the members and methods those are declared inside a
class
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / janet
The Object class is the highest-level class in the Java
class hierarchy.
The Class class is used to represent the classes and
interfaces that are loaded by a Java program.
| Is This Answer Correct ? | 2 Yes | 2 No |
Which are different kinds of source code?
Can a class be defined inside an interface?
Differentiate between array list and vector in java.
Is space a char?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Why should we use singleton pattern instead of static class?
Is java owned by oracle?
What is the purpose of using javap?
What are unchecked exceptions in java?
Differentiate jar and war files?
what is the difference between applet and swing and gui application in java . What we do with the collections set and list interface
2 Answers CTS, Phoenix Technologies,
What is the use of 'super' keyword inside a constructor?
0 Answers Flextronics, Thomson Reuters, Virtusa,