K

Kirti • 10.45K Points
Tutor II

Q. Approximate range of double is

  • (A) 4.9e–324 to 1.8e+308
  • (B) 1.4e-045 to 3.4e+038
  • (C) -2147483648 to + 2147483647
  • (D) 0 to 65535
  • Correct Answer - Option(A)
  • Views: 148
  • 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 of these have highest precedence?

Q. What will be the output of the following Java program? import java.io.*; class Chararrayinput { public static void main(String[] args) { String obj = "abcdefgh"; 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, 1, 4); int i; int j; try { while ((i = input1.read()) == (j = input2.read())) { System.out.print((char)i); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }

Q. What would be the result of attempting to compile and run the following code?

Q. A constructor can call another overloaded constructor using the ___ keyword in Java.

Q. Which of these events is generated when a button is pressed?

Q. Which two classes use the Shape class correctly? A. public class Circle implements Shape { private int radius; } B. public abstract class Circle extends Shape { private int radius; } C. public class Circle extends Shape { private int radius; public void draw(); } D. public abstract class Circle implements Shape { private int radius; public void draw(); } E. public class Circle extends Shape { private int radius; public void draw() { /* code here */ } } F. public abstract class Circle implements Shape { private int radius; public void draw() { /* code here */ } }

Q. Which of the following is a valid way to declare a constant in Java?

Q. Which of these classes is super class of Exception class?

Q. What will be the output of the following Java program? import java.lang.System; class Output { public static void main(String args[]) { byte a[] = { 65, 66, 67, 68, 69, 70 }; byte b[] = { 71, 72, 73, 74, 75, 76 }; System.arraycopy(a, 0, b, 0, a.length); System.out.print(new String(a) + " " + new String(b)); } }

Q. What is the output of the Java code snippet?

Learn All JAVA MCQs


Question analytics