O'Reilly logo

JAVA Programming by K. Rajkumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7

More on Objects and Exceptions

OBJECTIVES
  • To explain the need for abstract class and abstract methods
  • To define abstract class, abstract methods and non abstract methods
  • To implement an abstract class Flower
  • To explain interfaces and its method definitions
  • To explain the difference between interfaces and abstract classes
  • To create Wearable and Flyable interfaces
  • To explain enum and its applications
  • To create packages and subpackages for class taxonomy
  • To add classes to packages
  • To import packages containing classes and interfaces
  • To explain how packages help to avoid name collision
  • To illustrate protected data members with package
  • To define compile time errors and runtime exceptions
  • To explain Java built-in exception class hierarchy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required