Java Programming – E Content
UNIT I: Introduction to Java, Tokens and Control Structures
Learning Objectives
• Understand Java fundamentals and OOP concepts.
• Learn Java program structure and JVM.
• Use variables, data types, operators and control statements.
Introduction to Java
Java is a high-level, object-oriented programming language developed by Sun Microsystems.
It is platform independent because Java programs run on the Java Virtual Machine (JVM).
Features of Java: Simple, Object-Oriented, Platform Independent, Portable, Secure, Robust,
Multithreaded, Distributed.
JVM: JVM converts bytecode into machine code and executes Java programs on different
platforms.
Data Types: byte, short, int, long, float, double, char, boolean.
Variables, Type Conversion, Type Casting, Operators and Expressions.
Control Structures:
• Selection Statements – if, if-else, switch
• Looping Statements – for, while, do-while
Static Members, String and StringBuffer concepts.
UNIT II: Classes, Objects, Inheritance, Interfaces and Packages
Learning Objectives
• Create classes and objects.
• Understand inheritance and polymorphism.
• Use interfaces and packages.
Topics:
• Classes and Objects
• Arrays
• Constructors
• Inheritance and its types – Single, Multilevel, Hierarchical
• this and super keywords
• Method Overloading
• Method Overriding
• Abstract Classes
• Polymorphism
• final keyword
• Packages
• Interfaces
UNIT III: Exception Handling and Threads
Learning Objectives
• Handle runtime errors.
• Create multithreaded programs.
• Understand synchronization.
Topics:
• Errors and Exceptions
• Checked and Unchecked Exceptions
• try, catch, finally, throw and throws
• Garbage Collection
• Multithreading
• Creating Threads using Thread class and Runnable interface
• Thread Life Cycle
• Inter-thread Communication
• Deadlock
UNIT IV: AWT, Swing and Event Handling
Learning Objectives
• Design GUI applications.
• Use AWT and Swing components.
• Handle events.
Topics:
• AWT (Abstract Window Toolkit)
• AWT Controls – Label, Button, TextField, TextArea, Checkbox
• Swing Components – JFrame, JPanel, JLabel, JButton, JTextField, JTextArea
• JFrame Applications
• Event Handling
• Event Delegation Model
• Listener Interfaces – ActionListener, MouseListener, KeyListener, WindowListener
UNIT V: Adapter Classes, Inner Classes, Utility Package, ArrayList and
Vectors
Learning Objectives
• Learn adapter and inner classes.
• Use Collection Framework.
• Work with ArrayList and Vector.
Topics:
• Adapter Classes – MouseAdapter, WindowAdapter, KeyAdapter
• Inner Classes
• Anonymous Inner Classes
• Java Utility Package
• Collections Framework
• Iterator Interface
• Enumeration
• ArrayList
• Vector
• Comparator and Custom Sorting
Course Summary
This course covers Java fundamentals, object-oriented programming, classes and objects,
inheritance, interfaces, exception handling, multithreading, GUI programming using AWT
and Swing, event handling, adapter classes, inner classes and the Java Collections
Framework.