I

Indresh Gehalot • 10.11K Points
Tutor II

Q. The most used interfaces from the collection framework are?

  • (A) List
  • (B) Map
  • (C) Set
  • (D) None
  • Correct Answer - Option(B)
  • Views: 161
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.

Related MCQs on JAVA

Q. Where is array stored in memory?

Q. What will be the output of the following Java code? class Output { public static void main(String args[]) { try { int a = 0; int b = 5; int c = a / b; System.out.print("Hello"); } finally { System.out.print("World"); } } }

Q. What will be the output of the following Java code? class Myexception extends Exception { int detail; Myexception(int a) { detail = a; } public String toString() { return "detail"; } } class Output { static void compute (int a) throws Myexception { throw new Myexception(a); } public static void main(String args[]) { try { compute(3); } catch(Exception e) { System.out.print("Exception"); } } }

Q. Which of the following is not a directive in JSP?

Q. What is the value of "d" in the following Java code snippet? double d = Math.round ( 2.5 + Math.random() );

Q. The difference between Servlets and JSP is the …………….

Q. Which of those is synchronized and does not allow null elements?

Q. Which is mandatory in tag?

Q. What will be the output of the following Java program? import java.io.*; class Chararrayinput { public static void main(String[] args) { String obj = "abcdef"; int length = obj.length(); char c[] = new char[length]; obj.getChars(0,length,c,0); CharArrayReader input1 = new CharArrayReader(c); CharArrayReader input2 = new CharArrayReader(c, 0, 3); int i; try { while ((i = input1.read()) != -1) { System.out.print((char)i); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }

Q. What is the action of rint() in Java

Learn All JAVA MCQs


Question analytics