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
How do you execute a thread in java?
How many bytes is a char in java?
Why does java have different data types for integers and floating-point values?
What do you know about java?
If a class is declared without any access modifiers, where can the class be accessed?
Are arrays passed by reference in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
Can we create object of static class?
What are class members by default?
Define how objects are stored in java?
Explain about anonymous inner classes ?
Can a main method be overloaded?
How many types of constructors are used in java?
Can you pass by reference in java?
Why java is considered as platform independent?