IT 114: Introduction to Java
Class 29 Ungraded Quiz
-
What do you call the section of the code in
which a Java declaration is valid?
-
What is the scope of a variable inside a method?
-
What is the scope of a method within a class?
-
Can a variable be static?
-
Write the statement you would use to create a
constant named days_in_week and give it the value 7.
-
Can you have more than one constructor for a class?
-
What must be different to allow you to create two methods with the same name?