What is the result?

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.

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “What is the result?

  1. A if System.out.println((i++) + “:”); one more bracket is there
    without it
    answer is E compilation error

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.