Definitions | Java Miscellaneous | 3 OOPs | Loops and if else | GUI |
---|---|---|---|---|
What is class
Who am I? I behave like a template.
|
What is void
No data type is returned.
|
What is encapsulation
It is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties.
|
What is False
For loops and while loops use the same stopping mechanism.
TRUE or FALSE |
What is interface
GUI stands for Graphical User I_____ .
|
What is variables and methods
State and behavior are represented by what _____ and _____?
|
What is compiler
A(n) __________ is a program that translates programs to a simpler language that the computer can execute.
|
What is instance variables and getter and setters
mark _____ _____ private
mark _______and ______ public. |
What is False
The body of any while loop will be executed at least once.
TRUE or FALSE |
What is JFrame
I hold up the whole GUI.
|
What is for loop
Multi part loop
|
What is an argument
A(n) __________ is a piece of information passed to a method.
|
What is inheritance
It is the process by which objects of one class acquire the properties of objects of another class.
|
What is 4, 3, 2
int count;
for (count = 4; count > 1; count--) System.out.print(count + " "); 400 - Value of y is: int y = 4, z = 3; if (y > 4) { z = 2; y = y – 1; } else z = 1; y = z; A. 1 B. 2 C. 3 D. 4 |
What is listener interface
Every event type has one of these
|
What is modifiers and private
I hide data
|
What is True
In Java, the double equal sign means "make equal to:" True or False
|
What is polymorphism
"One interface, many implementations-”
|
What is A
Value of y is:
int y = 4, z = 3; if (y > 4) { z = 2; y = y – 1; } else z = 1; y = z; A. 1 B. 2 C. 3 D. 4 System.out.print(count + " "); count++; } |
What is actionPerformed()
The listener's key method is _____.
|
What is API
The big toolkit
|
What is run time error
If the computer prints an error message while executing your program, the program contains a(n) __________
|
What is overriding method
Subclass redefines of its inherited methods when it needs to change or extend the behavior of that method.
|
What is 1, 2, 3
500 – Code will print:
int count = 1; while (count <= 3) { System.out.print(count + " "); count++; } |
What is event
When the user usually does something, it is an _____
|