Apply Your Knowledge

Review Questions

1:What is the difference between multiple inheritance and single inheritance? Which does Java support?
2:Which modifiers can be used with a top-level class?
3:Can an abstract class be final?
4:What is the difference between a public and a non-public class?
5:What must a class do to implement an interface?
6:Is a class a subclass of itself?
7:Does a class inherit the constructors of its superclass?
8:When does the compiler supply a default constructor for a class?
9:How are this() and super() used with constructors?
10:Which modifiers can be used with an interface declaration?
11:Which modifiers can be used with an inner class that is a member of an outer class?
12:What is the difference between a static and a non-static ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.