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
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
Unit IV: Packages and Exception Handling
How to study these notes
- Read one topic per sitting and try each worked example on paper before reading the solution.
- Answer the practice questions first, then check the answers at the end of the topic.
- Finish each unit with its review page and the question bank.
Sources
- Official BCA syllabus Object Oriented Programming using Java, course code 25BCA402SEC01
