These notes cover the full Object Oriented Programming using Java course for BCA Semester II in four units. Each unit is split into short topics that take about 10 to 20 minutes to read, with worked examples, common mistakes and practice questions with answers.

What you will be able to do

Unit I: Object-Oriented Programming and Java Fundamentals

  • Explain the basic concepts of object-oriented programming and its benefits.
  • Describe the features of Java and compare Java with C and C++.
  • Explain the Java environment, bytecode and the JVM.
  • Write, compile and run simple Java programs with comments and Math functions.
  • Describe the structure of a Java program, its tokens and statements.
  • Use command-line arguments in a Java program.

Unit II: Data Types, Operators and Control Statements

  • Use constants, variables and the primitive data types of Java.
  • Declare variables, assign values and define symbolic constants.
  • Apply implicit and explicit type casting.
  • Use arithmetic, relational, logical, assignment, increment, conditional and bitwise operators.
  • Evaluate expressions using precedence and associativity.
  • Write programs with if, switch, loops, break, continue and labelled loops.

Unit III: Classes, Arrays, Strings and Inheritance

  • Define classes, create objects and write methods and constructors.
  • Overload methods and constructors, and use static members.
  • Create and use one- and two-dimensional arrays.
  • Use the String and StringBuffer classes, vectors, wrapper classes and enums.
  • Extend classes, use super, and override methods.
  • Define and implement interfaces for multiple inheritance and polymorphism.

Unit IV: Packages and Exception Handling

  • Explain packages and use the system packages of Java.
  • Create a user-defined package, add classes to it and import it.
  • Explain access protection across packages.
  • Explain exceptions and distinguish checked and unchecked exceptions.
  • Handle exceptions using try, catch, finally, throw and throws, nested try and multiple catch.
  • Create and use user-defined exceptions.

Who this is for

BCA Semester II students studying Object Oriented Programming using Java (course code 25BCA402SEC01), and anyone who wants a plain-English walk through the same syllabus. Start at Unit I unless you already know the basics.

Syllabus

Unit I: Object-Oriented Programming and Java Fundamentals

Topic Time
Basic Concepts of Object-Oriented Programming 5 min
Java Evolution and Features 5 min
The Java Environment and the JVM 5 min
Structure of a Java Program 5 min
Java Tokens, Statements and Command-Line Arguments 5 min
Unit I review: summary, glossary and questions 10 min

Unit II: Data Types, Operators and Control Statements

Topic Time
Constants, Variables and Data Types 5 min
Type Casting and Type Conversion 5 min
Operators in Java 5 min
Expressions, Precedence and Associativity 5 min
Decision Making and Branching 5 min
Looping, Jumps and Labelled Loops 5 min
Unit II review: summary, glossary and questions 10 min

Unit III: Classes, Arrays, Strings and Inheritance

Topic Time
Classes, Objects and Constructors 5 min
Method Overloading and Static Members 5 min
Arrays in Java 5 min
Strings, Vectors, Wrapper Classes and Enumerated Types 5 min
Inheritance and Method Overriding 5 min
Interfaces, Multiple Inheritance and Polymorphism 5 min
Unit III review: summary, glossary and questions 10 min

Unit IV: Packages and Exception Handling

Topic Time
Packages: Basics and System Packages 5 min
Creating and Accessing User-Defined Packages 5 min
Exceptions and Exception Handling Basics 5 min
Multiple catch, Nested try and finally 5 min
throw, throws and User-Defined Exceptions 5 min
Unit IV review: summary, glossary and questions 10 min

How to study these notes

  1. Read one topic per sitting and try each worked example on paper before reading the solution.
  2. Answer the practice questions first, then check the answers at the end of the topic.
  3. Finish each unit with its review page and the question bank.

Sources

  • Official BCA syllabus Object Oriented Programming using Java, course code 25BCA402SEC01