Page 1
Java Programming Latest Questions
and 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
, Page 2
String
Ans: Sequence of characters
double
Ans: A real number(64 bytes)
float
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.
Java Programming Latest Questions
and 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
, Page 2
String
Ans: Sequence of characters
double
Ans: A real number(64 bytes)
float
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.