Which of the following are correct?

Options
- An import statement, if defined, must always be the first non-comment statement of the file.
- Private members are accessible to all classes in the same package.
- An abstract class can be declared as final.
- Local variables cannot be declared as static


CORRECT ANSWER : Local variables cannot be declared as static

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement