JAVA Programming UPDATED ACTUAL Exam Questions and
CORRECT Answers
The main( ) Method - This gets your Java program running.
There must be at least one such method among your classes.
if/else - public static void main(String [ ] args){
int=17
if(age<=17){
System.out.println("You are too young")
} else {
System.out.println("You are old");
}
Method - Houses the program statements that perform its tasks.
instantiation - Process of building an object of a class before a program can perform the tasks
that the class' methods define.
Method call - A command to execute another method, which causes all of the statements inside
that method to be executed.
Instance variables - A variable defined in a class for which each instantiated object of the class
has a separate copy. Similar, but not equal to, a class variable.
Inheritance - lets once class get all definitions from another for free
CORRECT Answers
The main( ) Method - This gets your Java program running.
There must be at least one such method among your classes.
if/else - public static void main(String [ ] args){
int=17
if(age<=17){
System.out.println("You are too young")
} else {
System.out.println("You are old");
}
Method - Houses the program statements that perform its tasks.
instantiation - Process of building an object of a class before a program can perform the tasks
that the class' methods define.
Method call - A command to execute another method, which causes all of the statements inside
that method to be executed.
Instance variables - A variable defined in a class for which each instantiated object of the class
has a separate copy. Similar, but not equal to, a class variable.
Inheritance - lets once class get all definitions from another for free