Classes
Constructors
Objects
100

What import is used in order to access scanner in a class

java.util.*

100

What type of constructor is this?

public File(){

}

default

100

When could a non static method be called without an object?

If it is being used in the class that contains the method

200

Most files have how many classes?

one

200

How many parameters should an overloaded constructor have?

More than the default

200

What type of method doesn't require an object?

What is Static

300

Where are most instance variables defined?

In methods

300

What is wrong with this constructor?

public File(hairColor, eyeColor){

}

You need to include data types of parameters

300

What is wrong with this object?

Scanner scan1 = new Scanner(System.in)

no ;

400

Can a file contain more than one class

yes

400

Could this be a default constructor?

public File(String i){

}


Yes

400

What is wrong with this object?

scanner scan1 = new Scanner(System.in);

the first scanner is not Capitalized

500

What method do you need in a class in order for it to run?

A main method

500

How many constructors can a class have?

As many as are programmed in

500

What is wrong with this object?

Scanner stan1 = new Scanner(System.in);

It doesn't follow proper coding etiquette by naming the object stan1