Home » Java Basics
4
Class and Object Concepts
The general structure of a Java class file and other new concepts
We have briefly covered the subject of ‘classes’ in Chapters one and two. In this chapter, we will go over the general structure of a class file in Java and learn some important new class-related concepts in the process. We will also focus on intermediate-level Java concepts like file input/output using the Java.io package, collection objects, Java Enumerations, and Exceptions
In This Chapter:
- A Typical Java Class
- A sample of a typical Java class
- Modifiers in Java
- How modifiers are used in the Java program
- Nested and Inner Classes
- The functions of nested and inner classes
- Varargs
- A variable number of input parameters
- Enum
- A useful new feature of Java 5.0