Syvum Home Page

Home > Quiz Games > Java Programming >

Java Programming : Methods : True or False


Answer the following questions about methods in the Java programming language.

Formats Info Page Worksheet / Test Paper Quiz Review
Multiple choice

Your Performance  

1.

A method declaration must always contain the access level.

  True

  False

 

2.

A method declared as final can be overridden by subclasses if it is also declared as static.

  True

  False

 

3.

A method in a class declared as static can only access static class members.

  True

  False

 

4.

Each method in a class must have a unique name.

  True

  False

 

5.

A static method can refer to any instance variable of the class.

  True

  False

 

6.

Methods can be overloaded with a difference only in the type of the return variable.

  True

  False

 

7.

A method in a class declared as static may be invoked simply by using the name of the method alone.

  True

  False

 


 
12 more pages in Java Programming


Contact Info © 1999-2024 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright
Previous
-
Next
-