Java Programming Exam 2025
Questions and Answers
Assign a Value - ANSWER✔✔-to set the data of a variable (involves the equal sign).
Class - ANSWER✔✔-Describes a particular kind of object. It can contain related
methods and variables.
Double - ANSWER✔✔-A type of variable (or value) that can contain fractions as well as
integers.
Declaration - ANSWER✔✔-A statement that creates a variable, method, or class
identifier and its associated attributes but doesn't necessarily allocate storage for
variables or define an implementation for methods.
int - ANSWER✔✔-An integer value
String - ANSWER✔✔-Sequence of characters
double - ANSWER✔✔-A real number(64 bytes)
float - ANSWER✔✔-A real number(32 bytes)
, toUpperCase - ANSWER✔✔-This method converts a character to uppercase.
toLowerCase - ANSWER✔✔-This method converts a character to lowercase.
Algorithm - ANSWER✔✔-A set of steps that define a process for solving a
specific problem.
The main( ) Method - ANSWER✔✔-This gets your Java program running.
There must be at least one such method among your classes.
if/else - ANSWER✔✔-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 - ANSWER✔✔-Houses the program statements that perform its tasks.
Questions and Answers
Assign a Value - ANSWER✔✔-to set the data of a variable (involves the equal sign).
Class - ANSWER✔✔-Describes a particular kind of object. It can contain related
methods and variables.
Double - ANSWER✔✔-A type of variable (or value) that can contain fractions as well as
integers.
Declaration - ANSWER✔✔-A statement that creates a variable, method, or class
identifier and its associated attributes but doesn't necessarily allocate storage for
variables or define an implementation for methods.
int - ANSWER✔✔-An integer value
String - ANSWER✔✔-Sequence of characters
double - ANSWER✔✔-A real number(64 bytes)
float - ANSWER✔✔-A real number(32 bytes)
, toUpperCase - ANSWER✔✔-This method converts a character to uppercase.
toLowerCase - ANSWER✔✔-This method converts a character to lowercase.
Algorithm - ANSWER✔✔-A set of steps that define a process for solving a
specific problem.
The main( ) Method - ANSWER✔✔-This gets your Java program running.
There must be at least one such method among your classes.
if/else - ANSWER✔✔-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 - ANSWER✔✔-Houses the program statements that perform its tasks.