arrays and methods.txt

Card Set Information

Author:
dimeng
ID:
301927
Filename:
arrays and methods.txt
Updated:
2015-05-01 17:05:22
Tags:
diane cs140
Folders:
diane,cs140
Description:
diane cs140 arrays and methods
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user dimeng on FreezingBlue Flashcards. What would you like to do?


  1. A(n) ____________ is an instance of a(n) _____________.
    object, class
  2. Constructors have no _____________ statement and must have the same _____________ as the class.
    return, name
  3. A(n) ___________ method returns nothing.
    void
  4. When an object is created with new, the _________________ method is invoked.
    constructor
  5. Searching arrays is more efficient when the array is already ____________.
    sorted
  6. A(n) ___________ is a collection of variables of the same type.
    array
  7. There is/are ____________ copy/copies of a static variable.
    one
  8. Instance variables should be _____________, while set and get methods should be _____________.
    private, public
  9. Methods can have zero or ______________ formal parameter(s).
    many
  10. Arrays passed to methods are passed by _________________, while primitive values are passed by value.
    reference
  11. You can alter the value of private instance variables with the help of a ___________ method.
    set
  12. Static methods are ______________ using the class name.
    invoked
  13. Once an array is created, its _______________ is fixed.
    size
  14. In a method header, method parameters and a visibility modifier are _________________ parts of the declaration, while the return type, method name, parentheses, and the method body are ________________.
    required

What would you like to do?

Home > Flashcards > Print Preview