07-10 Chapter Intro to Java Flashcards
What is a Just-In-Time Compiler?
It is a Java interpreter
What are the two stages of Java which provides platform independence?
Name some of Java Application Types?
Console, GUI, Applet, and Servlet Applications
How to you compile a project in Netbeans without running it?
You right-click on the project and select Build Command
What files is needed in order for javadocs to generate correctly?
overview.html (Information about project) & package.html (information about package)
What is OOP?
Object Oriented Programming
Name some benefits of OOP?
- increase software productivity 2. Reuse software across 3. Software maintainable 4. lower develop costs
What are the principles of OOP?
- Modularity, ease modification 2. modules coupling reduced: data and function combined, data encapsulate, creates ‘black box’ behavior
What was the opposite of OOP programming?
Procedural programming
Where does all the java code reside?
a file called a class
What are classes?
they are like blueprints or cookie cutters and the actual cookie is the object
What is instantiation?
the construction of an object defined by a class
What is a field?
data item definition held in class or object
What is a method?
software procedure, operates on class or object data
What is a static field or method?
it exists in the class without instantiating
What is an instance?
field or method exists only when object class in constructed
What does a class contain?
- instance of class 2. constructor method 3. static main method as entry point 4. static field and methods
What does object contain?
- Instance or object fields 2. Methods
Name some of the objects characteristics
- Behavior, defined my methods 2. State, invoking or calling methods 3. identity, unique name
Relationship between classes: what is dependence?
“Uses a” Class A is dependent on Class B
Relationship between classes: what is aggregation?
“Has-a” Class contains object of another class
Relationship between classes: what is inheritance?
“Is-a” more specific class can inherit from a more generic class
Study the following Class Diagram
Study the following Class Anatomy
How to create objects out of class
Learn how to create a constructor with parameters
Learn how to Code a method
What is overloading?
when methods have same name but different parameters.