What is the result when you compile and run the following code?public - ProProfs Discuss
Topics
Products
Follow Us:

What is the result when you compile and run the following code?public class Test{ public void method() { for(int i = 0; i < 3; i++) { System.out.print(i); } System.out.print(i); }}



A. 0122
B. 0123
C. Compilation error
D. None of these

This question is part of Test_3(27-8-2014)
Asked by Arunprasad, Last updated: Dec 31, 2019

+ Answer
Request

1 Answer

arunprasad

Arunprasad

Answered Sep 06, 2017

Compilation error
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.