Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
MyClass
myclass
my_class
myClass123
They are created when an object is created.
They are stored in the heap memory.
They are shared among all objects of a class.
They can be accessed using object reference.
final
static
abstract
synchronized
Which of the following is not a valid Java identifier for a class?
myClass
My_Class
1MyClass
public int myMethod(int x, int y) {}
public myMethod(int x, int y) {}
public int myMethod(int x; int y) {}
public int myMethod(int x int y) {}
It is the parent class of all other classes in Java.
It is an abstract class.
It provides default implementations for several methods.
All of the above.
toString()
hashCode()
equals()
clone()
compareTo()
It allows a class to inherit the properties of another class.
It allows a class to inherit the properties of an object.
It allows an object to inherit the properties of a class.
It allows an object to inherit the properties of another object.
constructor
main
finalize
toString