What are the Object and Class that classes used for?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you initialize an Applet?

822


what are synchronized methods and synchronized statements? : Java thread

762


Which class is used by server applications to obtain a port and listen for client requests?

698


What does super keyword do?

763


What is predicate in java?

787


Why can't we make a class private in java?

762


How java uses the string and stringbuffer classes?

725


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2557


What is the difference between member variables initialization and assignment in a constructor?

878


What is the difference between access specifiers and access modifiers in java?

822


What is variable in java?

715


What is the difference between heap and stack memory?

863


Why put method is idempotent?

644


How does linkedlist work in java?

690


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

876