Home / MCQ Bank / Computer
Computer Flow Control Difficulty: Medium

What all gets printed when the following program is compiled and run? public class Test{ public static void main(String args[]){ int i=0, j=2; do{ i=++i; j--; }while(j>0); System.out.println(i); } }

Select the correct option to test your answer:

More Computer Questions

Which of the following device copies electrical signals from one Ethernet to another? Which of the following CSS Property specifies the top offset of a positioned element? The configuration register setting of 0x2102 provides what function to a router? What is the meaning of "GROUP BY" clause in Mysql? What is the purpose of the 'std::set' container in C++ STL?