System.out.print(“SMART”); System.out.print(“INDIA”); What is the output of the above code?
SMARTINDIA
SMART
INDIA
SMART INDIA
INDIASMA INDIA
setText( ) method is used to
set the text format of a GUI component
set value to a GUI component
set the text value to correct position
assign action to GUI component
Which of the following is not a valid identifier name
My_File123
My File_12_3
12$3_Mylife
MYFILE123
What is the size(in bytes) of short integer datatype.
1 byte
2 byte
4 byte
8 byte
System.out.println(“SMART”);
System.out.println(“INDIA”);What will be the output of the above code?
What is the initial default value of a float number?
0
0.00F
0.0F
1.0
A complete unit of execution of a program is called
Scope
Block
Statement
Expression
Which is the correct way to represent a string literal?
sting s= 'smartindia';
string s= "smartindia";
string s="//smartindia/";
string s= smartindia;
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”);
Special symbols used to perform a particular task is called
Keyword
Operators
Literals
Variables