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 that is overridden in the subclass must retain the same return type and parameter list.

  True

  False

 

2.

The access level of an overridden method cannot be changed in a subclass.

  True

  False

 

3.

When a method or a variable in a class is declared as private, it can only be accessed by the methods within the same class.

  True

  False

 

4.

A method declaration must always contain the access level.

  True

  False

 

5.

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

  True

  False

 

6.

The return value from a method must always match the declared return type.

  True

  False

 

7.

Each method in a class must have a unique name.

  True

  False

 


 
12 more pages in Java Programming


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