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.

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

  True

  False

 

2.

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

  True

  False

 

3.

Each method in a class must have a unique name.

  True

  False

 

4.

When an instance of a class, or object, is specified as a parameter to a method, a reference to the said object is passed to the method.

  True

  False

 

5.

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

  True

  False

 

6.

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

  True

  False

 

7.

Java does not allow a method with the same signature in a subclass, as a method in the super class.

  True

  False

 


 
12 more pages in Java Programming


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