(100% Correct Answers)
Assign a Value
Ans: to set the data of a variable (involves the equal sign).
Class
Ans: Describes a particular kind of object. It can contain related methods and variables.
Double
Ans: A type of variable (or value) that can contain fractions as well as integers.
Declaration
Ans: 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
Ans: An integer value
String
Ans: Sequence of characters
double
Ans: A real number(64 bytes)
float
© 2025 All rights reserved
, Ans: A real number(32 bytes)
toUpperCase
Ans: This method converts a character to uppercase.
toLowerCase
Ans: This method converts a character to lowercase.
Algorithm
Ans: A set of steps that define a process for solving a
specific problem.
The main( ) Method
Ans: This gets your Java program running.
There must be at least one such method among your classes.
if/else
Ans: 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
Ans: Houses the program statements that perform its tasks.
© 2025 All rights reserved