What import is used in order to access scanner in a class
java.util.*
What type of constructor is this?
public File(){
}
default
When could a non static method be called without an object?
If it is being used in the class that contains the method
Most files have how many classes?
one
How many parameters should an overloaded constructor have?
More than the default
What type of method doesn't require an object?
What is Static
Where are most instance variables defined?
In methods
What is wrong with this constructor?
public File(hairColor, eyeColor){
}
You need to include data types of parameters
Can a file contain more than one class
yes
Could this be a default constructor?
public File(String i){
}
Yes
What is wrong with this object?
scanner scan1 = new Scanner(System.in);
the first scanner is not Capitalized
What method do you need in a class in order for it to run?
A main method
How many constructors can a class have?
As many as are programmed in
What is wrong with this object?
Scanner stan1 = new Scanner(System.in);
It doesn't follow proper coding etiquette by naming the object stan1