MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
What will be the output of these statement?
1.
What will be the output of these statement?
A.
0.0
B.
Infinity
C.
NaN
D.
all of the mentioned
E.
None of these
Answer» E. None of these
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of this program? class Average { public static void main(String args[]) { double number[] = {5.5, 10.1, 11, 12.8, 56.9, 2.5}; double res; res = 0; for (int i = 0; i < 6; ++i) { res = res + number[i]; } System.out.print(res/6); } }
What is the output of this program?public class increment { public static void main(String args[]) { int a = 5; System.out.print(++a * 6); }}
What is the output of this program? class area { public static void main(String args[]) { double r, pi, a; r = 6.8; pi = 3.14; a = pi * r * r; System.out.println(a); } }
What will be the output of these statement?class output { public static void main(String args[]) { double p, q, r; p = 3.0/0; q = 0/4.0; r = 0/0.0; System.out.println(p); System.out.println(q); System.out.println(r); } }
What is the output of this program?class output { public static void main(String args[]) { boolean var11 = true; boolean var12 = false; if (var12) { System.out.println(var12); } else { System.out.println(var11); } } }
What is the output of this program? class output { public static void main(String args[]) { char a = 'A'; a++; System.out.print((int)a); } }
What is the output of this program? class array_output { public static void main(String args[]) { char array_variable [] = new char[10]; for (int i = 0; i < 10; ++i) { array_variable[i] = 'j'; System.out.print(array_variable[i] + "" ); i++; } } }
What is the output of this program? class output { public static void main(String args[]) { char var11 = 'A'; char var12 = 'a'; System.out.println((int)var11 + " " + (int)var12); } }
What is the output of this program? class booloperators { public static void main(String args[]) { boolean var11 = true; boolean var12 = false; System.out.println((var11 & var12)); } }
What is the output of below code snippet?enum Enums{ D, E, F; private Enums() { System.out.println(20); }} public class MainClass{ public static void main(String[] args) { Enum en = Enums.E; }}
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies