answersLogoWhite

0

The answer to this is related to the idea of inheritance in general - the idea of inheritance is that you define a common set of behaviors, that apply to all subclasses. Anything defined in the "Object" class is available to all classes you create. Look in the documentation for the description of the "Object" class, to see what methods are available in all Java classes.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is object class in java?

object class is a super class for all other class...


Why Object is Super Most Class In Java?

It's part of the language specification that all objects in Java must inherit from Object. Java defines a strict class hierarchy, and enforcing a "super most class" ensures that this ordering is maintained.


What is the Object class parent?

Object is the topmost class in the Java Class hierarchy. There is no Class above Object. All classes in Java are implicitly derived from Object.


Is there class name as object in java?

Yes, the base class for all other Java classes is Object.


What is topleval class in java?

The top level class in Java is "Object." All other classes are subclasses of Object by default.


The top most class in java?

All classes in java must inherit from the Object class


What is static java most commonly used for?

Static java method is the same as a static variable. They belong to a class and not an object of that class. If a method needs to be in a class, but not tied to an object, then one uses static java.


What class is the super class for ALL Java classes?

The Object class, in the java.lang package, sits at the top of the class hierarchy tree. Every class is a descendant, direct or indirect, of the Object class. Every class you use or write inherits the instance methods of Object. You need not use any of these methods, but, if you choose to do so, you may need to override them with code that is specific to your class


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


What is parent class in java?

Object Class is the parent class of all classes in java.Every class in the Java system is a descendant (direct or indirect) of the Object class.


When object is created and destroyed in java?

in java object is created as soon a class comes into picture......and distroyed ehwn exit that class............. (object) it is running instance ......... submitted by- shreyas joshi..


Can you initialize an object without constructor in java?

No. if you wish to create an object that you plan on using in a java program then the answer is NO. You cannot initialize an object of a Java class without calling the constructor.