Chapter 1 Flashcards
what is an object oriented programming language
This is a language where code is defined in classes and those are instantiated into objects when called upon in runtime.
what is the release interfall of new Java versions.
Every 6 months.
List 5 benefits of Java
Object oriented, Encapsulation, Platform independent, Robust, Simple, Secure, Multithreaded, Backward Compatibility,
What is a java class
A class is a repeatable buildingblock that can be used to build up your programs. A class contains all parts and characteristics of such a building block
What is the difference between a object and a class
A object is a copy of a class used in runtime.
The (JVM) runtime enviroment uses a class to create a memory object.
What are the two primary elements of a Java Class
Methods
Fields (also known as Variables)
what does the {public} keyword do?
This is a “acces modifier” that declares the level of exposure to other parts of the java program. Public means any part of the program can use this method or class.
what is the minimal syntax required to create a java class.
public/private class Car { } First the acces modifier keywords Second the class keyword Third is the name of the class And the curly brackets contain the methods and variables
What does the private keyword do?
This is a “acces modifier” that declares the level of exposure to other parts of the java program. Private means that this class or method can NOT be used by other parts of the java program.
What is this : //
The begin of a comment in the code. A single line of text that is ignored during runtime.
What is the correct syntax for a Multiline comment
/* (beginning)
- (lines, repeat until you have enough )
- / (end of comment)
What is the difference between a multiline comment and Javadoc comment
it starts with /** instead of /* and it is read by the javadoc tool where other comments are ignored.
What is the JDK
Java Developers Kit, everything you need to create and run a Java program.
What is the JRE
The Java runtime enviroment is part of the JDK and is the subset of java tools that run a program.
what is the correct filename for a Javafile that contains
public class zoo
zoo.java a java file can only contain one public class and the name of the javefile has to match the name of this class.