What is the return data type of the String class equals() method? -
Correct Answer ✔ ✔ boolean
What is the return type of the String class compareTo()method? -
Correct Answer ✔ ✔ boolean
What is the return type of the constructor method of a class? -Correct
Answer ✔ ✔ no return type is allowed
A class can have many different constructor methods as long as the
names are different, True or False -Correct Answer ✔ ✔ False
In a class definition file, each method must have a different name,
True or False -Correct Answer ✔ ✔ True
A class is an object, True or False -Correct Answer ✔ ✔ False
Only one instance can be created from a class definition, True or False
-Correct Answer ✔ ✔ False
, More than one reference variable can hold the address of an object,
True or False -Correct Answer ✔ ✔ True
Every object has a reference variable holding its address, True or False
-Correct Answer ✔ ✔ False
Every object must have a name, True or False -Correct Answer ✔ ✔
True
Fields and variables are the same thing, True or False -Correct Answer
✔ ✔ False
The two categories of data types in Java are -Correct Answer ✔ ✔
Primitive and reference
Once an object is created you can call the constructor method again
to charge the value of the fields, True or False -Correct Answer ✔ ✔
False
A constructor for a class can be called many times to create instances,
True or False -Correct Answer ✔ ✔ True