Could someone confirm my answers from this practice booklet test so I can feel confident about the upcoming AP Java exam? I am not the best with java terms especially when the booklet doesn't recite any types of definitions or properties.

A constructor (with no arguments) and a body that is empty or provides values for the class instance variables by the programmer is an example of

A Default Constructor (my choice)
An Inherited Constructor
Instantiating a Constructor
Overloading Constructors
Overriding Constructors


A public class method may be invoked after which of the following occurs?

The class is defined. (my choice)
The main method is defined.
All instance variables are assigned.
An instance of the class is created.
The instance methods are invoked.

Respuesta :

First one is correct the second one is incorrect. a method that is public in a class may be invoked when an instance of the class is created

Myclass myclass = new Myclass() <--- instance of the class created

myclass.mymethodinvoked()  <-----invoking public method