S

Sandhya Thakur • 4.08K Points
Extraordinary

Q. Standard output variable 'out' is defined in which class?

  • (A) Void
  • (B) Process
  • (C) Runtime
  • (D) System
  • Correct Answer - Option(D)
  • Views: 12
  • 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. Which package includes StringTokenizer that tokenizes a string into independent words?

Q. What is the output of the following code?

Q. Classes in the same package cannot access each other's package-access members.

Q. What will be the output of the following Java code? class Output { public static void main(String args[]) { Double i = new Double(257.578); int x = i.intValue(); System.out.print(x); } }

Q. An exception is an __________ condition that arises in a code.

Q. What will be the output of the following Java program? class exception_handling { public static void main(String args[]) { try { int a[] = {1, 2,3 , 4, 5}; for (int i = 0; i < 5; ++i) System.out.print(a[i]); int x = 1/0; } catch(ArrayIndexOutOfBoundsException e) { System.out.print("A"); } catch(ArithmeticException e) { System.out.print("B"); } } }

Q. What is the output of Java program below?

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 = input2.read()) != -1) { System.out.print((char)i); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }

Q. What will happen when the class below is complied?~~~public class Example~~~{~~~//char a = 'u000A';~~~}

Q. What will be the output of the following Java program? import java.lang.reflect.*; class Additional_packages { public static void main(String args[]) { try { Class c = Class.forName("java.awt.Dimension"); Field fields[] = c.getFields(); for (int i = 0; i < fields.length; i++) System.out.println(fields[i]); } catch (Exception e) { System.out.print("Exception"); } } }

Learn All JAVA MCQs


Question analytics