MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? import java.lang.reflect.*; class Additional_packages { public static void main(String args[]) { try { Class c = Class.forName("java.awt.Dimension"); Method methods[] = c.getMethods(); for (int i = 0; i < methods.length; i++) System.out.println(methods[i]); } catch (Exception e) { System.out.print("Exception"); } } } |
| A. | 10 |
| B. | Box #0 [10]. |
| C. | Box contains [10]. |
| D. | Box #0 contains [10]. |
| Answer» E. | |