Which among the following is an illegal variable declaration?
double private;
int code=0;
float student;
charShuman;
Which one from the following is an illegal string value?
"abc"
"/abc/"
"\abc"
"\abc\"
What will be the output of the following code?Class master {public static void main (String [ ] args){int a=3, b=5; if(a>b){int c=0;}if(c==0){System.out.println("a is greater");}}}
0
a is greater
error
no output
Which one is the proper way to declare a constant?
const int a;
Final int a;
final int a;
final int a=3;
Which of the following is not an arithmetic operator?
+
-
&
%
What is an 'rvalue'?
Data value
Location value
Readable value
Rewritable value
Which among the following is not a punctuator?
(
:
;
}