Given the code fragment:
What is the result?
A. 0 : 0 : pen
B. 0 : 1 : pen
C. 0 : 0 : 0 : 0 : 0 : pen
D. 0 : 1 : 2 : 3 : 4 :
E. A compilation error occurs.
Given the code fragment:
What is the result?
A. 0 : 0 : pen
B. 0 : 1 : pen
C. 0 : 0 : 0 : 0 : 0 : pen
D. 0 : 1 : 2 : 3 : 4 :
E. A compilation error occurs.
A if System.out.println((i++) + “:”); one more bracket is there
without it
answer is E compilation error
A
E
System.out.println((i++) + “:”);
A
a
a