7: FundamentalsHomepage « Java5 Certification « 7: Fundamentals
In our first lesson within this section we look at access modifiers and also investigate the package and import statements. We then look at the javac
command we use to compile our Java programs and
the java
command to run our programs. We finish the lesson with a look at JAR files and how to use them. After this we look at method parameters that are passed into methods as reference variables
and primitive variables and the effects that modification within the methods has on the variable type in question. We then examine the point at which an object becomes eligible for garbage collection, and determine
what is and is not guaranteed by the garbage collection system and how the behaviors of System.gc
and finalization impact this. In our final lesson within this section we look at the various operators that are
available in Java and how to use them.
Lets take a look at the points outlined at the Oracle Website for this part of the certification.
- Section 7: Fundamentals
- Given a code example and a scenario, write code that uses the appropriate access modifiers, package declarations, and import statements to interact with (through access or inheritance) the code in the example.
- Given an example of a class and a command-line, determine the expected runtime behavior.
- Determine the effect upon object references and primitive values when they are passed into methods that perform assignments or other modifying operations on the parameters.
- Given a code example, recognize the point at which an object becomes eligible for garbage collection, and determine what is and is not guaranteed by the garbage collection system. Recognize the behaviors of System.gc and finalization.
- Given the fully-qualified name of a class that is deployed inside and/or outside a JAR file, construct the appropriate directory structure for that class. Given a code example and a classpath, determine whether the classpath will allow the code to compile successfully.
- Write code that correctly applies the appropriate operators including assignment operators (limited to: =, +=, -=), arithmetic operators (limited to: +, -, *, /, %, ++, --), relational operators (limited to: <, <=, >, >=, ==, !=), the instanceof operator, logical operators (limited to: &, |, ^, !, &&, ||), and the conditional operator ( ? : ), to produce a desired result. Write code that determines the equality of two objects or two primitives.
- Given a code example and a scenario, write code that uses the appropriate access modifiers, package declarations, and import statements to interact with (through access or inheritance) the code in the example.
7.1-7.2 Using java and javac Commands
In our first lesson within this section we look at access modifiers and also investigate the package and import statements. We then look at the javac
command we use to compile our Java programs and
the java
command to run our programs. We finish the lesson with a look at JAR files and how to use them.
7.3 Method parameters
In this lesson we look at method parameters that are passed into methods as object references and primitive values and the effects that modification within the methods has on the type in question.
7.4 Garbage Collection
For this lesson we examine the point at which an object becomes eligible for garbage collection, and determine what is and is not guaranteed by the garbage collection system and how the behaviors of System.gc and finalization impact this.
7.6 Java Operators
In our final lesson within this section we look at the various assignment, arithmetic, relational, logical operators that are available in Java and how to use them. We then take a look at the ? :
tenary (takes three operands)
operator and finish our certification studies with a look at the instanceof
operator.
Related Java5 Tutorials
Beginning Java5 - Getting Started
Beginning Java5 - Primitive Variables
Objects & Classes - Reference Variables
Objects & Classes - Methods
Objects & Classes - Enumerations
API Contents - Packages
API Contents - Packages - Imports
API Contents - Packages - Static Imports
Beginning Java5 - Operators
Beginning Java5 - Conditional statements
OO Concepts - Interfaces - Using instanceof
With Interfaces