Page 1
Java test Latest Questions and Correct
Answers
methods
Ans: code segments within a class
states
Ans: objects contain
attributes
Ans: states
class
Ans: framework for an object
main
Ans: method used for all coding
Literal string
Ans: series of characters handled without
interpretation
arguments
, Page 2
Ans: information a method requires to perform a task
method header
Ans: defines the main method of the class
curly brackets
Ans: blocks of code are placed in these
8
Ans: number of types of primitive data types
boolean, byte,char,double, float,int,long, short
Ans: the eight primitive data types
short int long
Ans: order of integers
System.out.println();
Ans: code used to send info to user
implicit cast
Ans: code used to convert data types
Java test Latest Questions and Correct
Answers
methods
Ans: code segments within a class
states
Ans: objects contain
attributes
Ans: states
class
Ans: framework for an object
main
Ans: method used for all coding
Literal string
Ans: series of characters handled without
interpretation
arguments
, Page 2
Ans: information a method requires to perform a task
method header
Ans: defines the main method of the class
curly brackets
Ans: blocks of code are placed in these
8
Ans: number of types of primitive data types
boolean, byte,char,double, float,int,long, short
Ans: the eight primitive data types
short int long
Ans: order of integers
System.out.println();
Ans: code used to send info to user
implicit cast
Ans: code used to convert data types