Review Questions

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 5.  Methods


1:

Define the concept of divide and conquer in your own words.

2:

Describe the parts of a method definition.

3:

What constitutes the signature of a method?

4:

How do you specify that a method is not going to return a value?

5:

What are the three types of scope and how do they differ?

6:

Describe the computer-programming concept of recursion.

7:

When would you use recursion and when would you use iteration?

8:

What is method overloading?

9:

Can the following two methods exist in the same class? Why or why not?

 public int cube( int n ) { ... }  public long cube( long l ) { ... } 

10:

How do you access the Math class's methods?


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net