MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
What is the value of n after this line of code h...
1.
What is the value of n after this line of code has been executed?
A.
1
B.
2
C.
3
D.
4
E.
5
Answer» F.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of this program?class N { int p; double q; } class M extends N { int r; } public class result { public static void main(String args[]) { N p = new N(); M q = new M(); Class object; object = q.getClass(); System.out.print(object.isInstance(p)); } }
What is the output of this program?class N { int p; double q; } class M extends N { int r; } public class Result { public static void main(String args[]) { N p = new N(); M q = new M(); Class object; object = q.getClass(); System.out.print(q.equals(p)); } }
What is the output of this program?class N { int p; double q; } class M extends N { int r; } public class Result { public static void main(String args[]) { N p = new N(); M q = new M(); Class object; object = q.getClass(); System.out.print(object.getSuperclass()); } }
What is the output of this program?public class isNaN_Example { public static void main(String args[]) { Double num = new Double(1 / 0.); boolean p = num.isNaN(); System.out.print(p); } }
What is the output of this program?public class isinfinite_Example { public static void main(String args[]) { Double num = new Double(1 / 0.); boolean p = num.isInfinite(); System.out.print(p); } }
What is the output of this program?class box_Shape { int width; int height; int length; } public class mainclass { public static void main(String args[]) { box_Shape obj = new box_Shape(); System.out.println(obj); } }
What is the output of this program?class box_Shape { int width; int height; int length; } public class mainclass { public static void main(String args[]) { box_Shape obj1 = new box_Shape(); box_Shape obj2 = new box_Shape(); obj1.height = 3; obj1.length = 4; obj1.width = 6; obj2 = obj1; System.out.println(obj2.height); } }
What is the output of this program?class N { int p; double q; } class M extends N { int r; } public class Result { public static void main(String args[]) { N p = new N(); M q = new M(); Class object; object = q.getClass(); System.out.print(object.isLocalClass()); } }
What is the output of this program?class N { int p; double q; } class M extends N { int r; } public class Output { public static void main(String args[]) { N p = new N(); M q = new M(); Class object; object = p.getClass(); System.out.print(object.getName()); } }
What is the output of this program?class N { int p; double q; } class M extends N { int r; } public class Result { public static void main(String args[]) { N p = new N(); M q = new M(); Class object; object = q.getClass(); System.out.print(object.getSuperclass()); } }
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