Which operator joins two or more expressions or statements?
Arithmetic
Logical
Relational
Assignment
System.out.println(“SMART”);
System.out.println(“INDIA”);What will be the output of the above code?
SMARTINDIA
SMART
INDIA
SMART INDIA
INDIASMA INDIA
Which of the following is not a valid identifier name
My_File123
My File_12_3
12$3_Mylife
MYFILE123
Which is not an assignment operation?
a%=b ;
a/=b ;
a==b ;
a+=b;
How to make a variable as constant?
Using Const keyword
Using Lock keyword
Using Final Keyword
Using abstract keyword
Which is not a reference datatype?
Boolean
Class
Interface
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 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”);
A complete unit of execution of a program is called
Scope
Block
Statement
Expression
Java uses which type of character set?
binary
unary
unicode
bytecode