Test Preparation on JAVA Test Prep. - Exploring java.lang & java.io - 2
1.
Which of these exceptions handles the situations when an illegal argument is used to invoke a method?
Explanation: System class methods throw SecurityException.
2.
Which of these exceptions will be thrown if we declare an array with negative size?
Explanation: Array size must always be positive if we declare an array with negative size then built in exception “NegativeArraySizeException” is thrown by the java’s run time system.
3.
Which of these methods loads the specified dynamic library?
Explanation: load() methods loads the dynamic library whose name is specified.
4.
Which of these method can set the out stream to OutputStream?
5.
Which of these values are returns under the case of normal termination of a program?