| Review Questions |
2.7 |
Which of the following lines are valid declarations?
Select the three correct answers.
|
2.8 |
Given the following code within a method, which statement is true?
Select the one correct answer.
Local variable a is not declared. Local variable b is not declared. Local variable a is declared but not initialized. Local variable b is declared but not initialized. Local variable b is initialized but not declared.
|
2.9 |
In which of these variable declarations will the variable remain uninitialized unless explicitly initialized?
Select the one correct answer.
Declaration of an instance variable of type int. Declaration of a static variable of type float. Declaration of a local variable of type float. Declaration of a static variable of type Object. Declaration of an instance variable of type int[].
|
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.