Java uses which type of character set?
binary
unary
unicode
bytecode
Programming codes are created by using
Numbers
0's and 1's
Tokens
Characters
Special symbols used to perform a particular task is called
Keyword
Operators
Literals
Variables
What is the initial default value of a float number?
0
0.00F
0.0F
1.0
Combination of operators,constants and variables are called
programs
expression
function
array
If txt1 is a Text field in GUI window, Which method is used to take the value of that text field ?
getValue ( )
getText ( )
setValue( )
setText( )
Which of the following is not a valid identifier name
My_File123
My File_12_3
12$3_Mylife
MYFILE123
Scope of a variable is based on
where it is used
where it is initialized
where it is declared
where it is displayed
What is the use of initialization of variables ?
avoid error
remove garbage value if any
reduce memory space
avoid duplication of variables
Which method isused to show messagebox on the GUI window?
JOptionPane. MessageBox(true,”Message to print”);
JOptionPane.showMessageDialog(null,”Message to print”);
JOptionPane.showMessageBox(true,”Message to print”);