1.

Which of the following exceptions is thrown by every method of Runtime class?(a) IOException(b) SystemException(c) SecurityException(d) RuntimeExceptionI had been asked this question in an interview for job.My question comes from Java.lang in division Exploring java.lang & java.io of Java

Answer»

The correct ANSWER is (C) SecurityException

The best I can EXPLAIN: EVERY method of Runtime class THROWS SecurityException.



Discussion

No Comment Found

Related InterviewSolutions