Correct Answer: (5, 3) (3, 5) (5, 3)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JSharp - J# Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JSharp - J# MCQ Questions
A class named MyLoop is defined as follows: public class MyLoop { public static void main(String args[]) { int counter = 0; lbl1: for (int i=10; i<0; i--) { int j = 0; lbl2: while (j < 10) { if (j > i) break lbl2; if (i == j) { counter++; continue lbl1; } } counter--; } System.out.println(counter); } } What will happen when you try to compile and run the program?
Two functions are defined with the same name in a class: public boolean isGreater(int no1, int no2) public boolean isGreater(String st1, String st2) Which of the following concept does this definition represent?
What will be the output of the following program? public class Prnt { public static void main(String args[]) { System.out.println(11 ^ 2); } }
What will be the output when the following code is compiled and run? class Equates { Equates() { int a,b,c; a = b = c = 20; System.out.println(a); } public static void main(String str[]) { new Equates(); } }
Consider the following program: import java.util.*; public class ListColl { public static void main(String str[]) { List l = new ArrayList(); l.add('1'); l.add('2'); l.add(1,'3'); List l2 = new LinkedList(l); l.addAll(l2); System.out.println(l); } } Which of the following sequences will be printed when the above program is run?