Java - Packages - Interview Questions and Answers on java.lang

Q1. What is the package name for Exception , Error and Throwable classes?

Ans.java.lang

Q2. Name few classes of package java.lang?

Ans.[Throwable, Error, Object, Exception, IllegalArgumentException]

Q3. What is the package name for IllegalArgumentException class?

Ans.java.lang

Q4. What is the package name for Object class?

Ans.java.lang


Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
comments powered by Disqus