Programmers at War
{"name":"Programmers at War", "url":"https://www.quiz-maker.com/QMBYL85","txt":"What will be printed as the output of the following program? public class testincr{public static void main(String args[]){int i = 0;i = i++ + i;System.out.println(“I = ” +i);}}, What is the output of the following program: public class testmeth{static int i = 1;public static void main(String args[]){System.out.println(i+” , “);m(i);System.out.println(i);}public void m(int i){i += 2;}}, Consider the following code fragment Rectangle r1 = new Rectangle();r1.setColor(Color.blue);Rectangle r2 = r1;r2.setColor(Color.red); After the above piece of code is executed, what are the colors of r1 andr2 (in this order)?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}