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 |
What is bom encoding?
Explain different ways of creating a thread?
What are checked exceptions?
What is the indent key?
what is difference between business delegate and data access object(dao)? in java?
What are the advantages of arraylist over arrays?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is the same as procedures?
What is <> used for in java?
Can you tell me range of byte?
What is a list in java?
Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target