• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/23

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

23 Cards in this Set

  • Front
  • Back
  • 3rd side (hint)
Identifiers can begin with...
a letter, an underscore, or a currency character
3
After the first character, identifiers can also include...
digits
1
What's the length limit for identifiers?
Identifiers can be of any length
JavaBeans methods must be named using camelCase, and depending on the method's purpose, must start with...
set, get, is, add, or remove
5
How many public classes a source file can have?
A source code file can have only one public class
What's the relation between the source file name and the names of the classes contained in the source file?
If the source file contains a public class, the filename must match the public class name
How many package and import statements a file can have?
A file can have only one package statement, but multiple imports
Where a package statement should be located in a source file?
The package statement (if any) must be the first (non-comment) line in a source file
Where the import statements should be located in a source file?
The import statements (if any) must come after the package and before the class declaration
Where the import statements should be located in a source file if there's no package statement?
If there is no package statement, import statements must be the first (noncomment) statements in the source file
package and import statements apply to ... in the file
package and import statements apply to all classes in the file
A file can have more than one ... class
A file can have more than one nonpublic class
What's the only case when files have no naming restrictions?
Files with no public classes have no naming restrictions
There are ... access modifiers: ...
There are three access modifiers: public, protected, and private
3
There are ... access levels: ...
There are four access levels: public, protected, default, and private
4
Classes can have only ... access
Classes can have only public or default access
2
A class with default access can be seen only by ...
A class with default access can be seen only by classes within the same package
A class with public access can be seen by ...
A class with public access can be seen by all classes from all packages
Classes can also (other than access modifiers) be modified with ...
Classes can also be modified with final, abstract, or strictfp
3
A class cannot be both ...
A class cannot be both final and abstract
A ... class cannot be subclassed
A final class cannot be subclassed
An ... class cannot be instantiated
An abstract class cannot be instantiated
What branch of the femoral artery supplies the posterior thigh compartment?
perforating branches of the femoral artery