Course Contents
Unit I: Introduction to Java 3 hours
Java Language and History, Features of Java (Object-Oriented, Robust, Secure, Architecture Neutral, Portable, Interpreted, Multithreaded, Dynamic, Performance), Common Misconceptions about Java, Java Virtual Machine, JDK, JRE, Java Program Structure
Unit II: Java Programming Basics 4 hours
Keywords and Identifiers, Java’s Primitive Data Types (integer, floating-point, character, boolean), Literals, Variables, Variable Declaration and Initialization, Scope and Lifetime of a Variable, Operators (arithmetic, increment-decrement, relational-logical, assignment, bitwise), Type Casting, Operator Precedence, Java Expressions, Strings, Arrays, Control Statements (if statement, nested ifs, if-else-if, switch),Loops ( for, while, do-while, break, continue), Nested Loops
Unit III: Classes and Objects 6 hours
Introduction to Object Oriented Programming, Functional vs Object-Oriented Programming, Features of Object-Oriented Programming, Classes and Objects, Constructors, Methods and Instance Variables, Methods Arguments and Return Values, Method Overloading, Access Modifiers, Static and Final Members, Garbage Collection and Finalizers, this keyword, Inner Classes
Unit IV: Inheritance, Interfaces and Packages 8 hours
Introduction, Member Access and Inheritance, Constructor and Inheritance, super keyword, Multi-level Hierarchy, Method Overriding, Polymorphism and Dynamic Binding, Abstract Classes, Final Classes and Methods, Object superclass, Object Wrappers and Autoboxing, Interfaces, Creating and Implementing an Interface, Interface and Abstract Classes, Implementing Multiple Interfaces, Extending an Interface, Packages, Packages Scope, Importing Package and Class, Static Imports, Creating a Package
Unit V: Exception Handling and Multithreading 8 hours
Exceptions and Errors, Exception Hierarchy, Catching Exceptions: try and catch, Catching Multiple Exceptions, finally Clause, Throwing an Exception (throw, throws), Analyzing Stack Trace Elements, Java’s Built-in Exceptions, Creating Exception Subclasses, Introduction to multithreading, Thread Class and Runnable Interface, Multiple Threads, Interrupting Threads, isAlive() and join(), Thread Priorities, Synchronization, Deadlock, Thread Communication, Suspend, Resume and Stop Threads
Unit VI: Java IO 6 hours
Byte and Character Streams, Byte Streams andCharacter Streams, Reading from and Writing to Console, Reading from and Writing to File, InputStream, OutputStream, File Input Stream, File Output Stream, DataInputStream, DataOutputStream, BufferedInputStream, BufferedOutputStream, Reader, Writer, FileReader, FileWriter, BufferedReader, BufferedWriter, Random-Access Files, Files and Directories
Unit VII: Java Collections and Java API Library 7 hours
Introduction to Java Collection Interface, List, Set, Map, ArrayList, LinkedList, HashSet, HashMap, Iterators, String Handling (equals(), substring(), replace(), indexOf(), lastIndexOf(), replace(), trim(), toUpperCase(), toLowerCase()), String Concatenation, StringBuffer and StringBuilder, Byte, Short, Integer, Long, Float, Double, Boolean class, Calendar and SimpleDateFromat class, Formatting Strings, Numbers, Date and Time, Random class
Unit VIII: Java Swing 6 hours
Introduction, Components and Containers, Layout Manager, Text Input and Choice Components, Menus, Dialog Boxes, Event Handling
- Lab Works
Installation of JDK and Netbeans/Eclipse
- First program using Java
- Variables, Data-type, Strings, Arrays, Control Statements and Loops
- Classes and Objects, Inheritance
- Interface and Polymorphism
- Exception Handling
- Java IO - 1
- Multithreading
- Using ArrayList, HashMap, Iterators
- String, StringBuffer, Calendar, Random
- Java Swing