0% found this document useful (0 votes)
3 views3 pages

OOP With Java Notes

The document outlines the syllabus for a B.Sc. (Computer Science) II Year course on Object Oriented Programming with Java. It covers key concepts of OOP, Java basics, program structure, data types, operators, decision making, classes, inheritance, multithreading, error handling, applets, graphics, and I/O streams. Each unit provides foundational knowledge necessary for understanding and applying Java programming principles.

Uploaded by

tpass3772
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

OOP With Java Notes

The document outlines the syllabus for a B.Sc. (Computer Science) II Year course on Object Oriented Programming with Java. It covers key concepts of OOP, Java basics, program structure, data types, operators, decision making, classes, inheritance, multithreading, error handling, applets, graphics, and I/O streams. Each unit provides foundational knowledge necessary for understanding and applying Java programming principles.

Uploaded by

tpass3772
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

[Link].

(Computer Science) II Year - Paper II

Object Oriented Programming with Java - Short Notes

Unit-I: Introduction to OOP & Java

OOP Concepts:

- Object-Oriented Paradigm: Based on objects and classes.

- Benefits: Modularity, reusability, scalability, maintainability.

- Applications: Software development, simulations, GUIs, games.

Java Basics:

- History & Features: Simple, platform-independent, robust, secure.

- Java vs C/C++: Java has no pointers, uses garbage collection, and supports only OOP.

- Environment: JDK, JRE, JVM.

Java Program Structure:

- Tokens: Keywords, identifiers, literals, operators.

- Statements & Style: Syntax rules and indentation.

- JVM: Executes bytecode.

- Command-line Arguments: Input from command line to main().

Unit-II: Java Fundamentals

Java Basics:

- Data Types: int, float, boolean, char, etc.

- Variables & Constants: Declaring, assigning, type casting.

- Scope & Default Values

Operators:
- Arithmetic, Relational, Logical, Assignment, Increment/Decrement, Bitwise, Conditional, Special.

Arithmetic Expressions:

- Precedence & Associativity

- Type Conversion: Implicit & Explicit

- Mathematical Functions: Math class.

Decision Making:

- if, if-else, nested if, if-else-if, switch.

Loops:

- while, do-while, for, break, continue, labeled loops.

Unit-III: Classes, Constructors & Inheritance

Classes:

- Define class, add methods/variables, create objects.

Constructors:

- Default & parameterized, overloading, static methods.

Inheritance:

- Types: Single, multilevel, hierarchical.

- Concepts: Method overloading, overriding, final keyword, abstract classes.

- Interfaces: Declaring & implementing.

- Arrays, Strings, Vectors, Wrapper Classes

Unit-IV: Packages, Threads, and Applets


Java API Packages:

- System packages, user-defined packages, access control, hiding classes.

Multithreading:

- Thread Class & Runnable Interface

- Life cycle, methods, synchronization, priority.

Error Handling:

- try-catch, multiple catch, finally, custom exceptions.

Applets:

- Building, lifecycle, HTML embedding, design & execution.

Unit-V: Applets, Graphics & I/O Streams

Applet Tag & HTML:

- Parameters, HTML tags, user inputs.

Graphics:

- Draw lines, circles, arcs, polygons, graphs, charts.

Streams:

- Byte stream, character stream, stream classes.

File I/O:

- File class, reading/writing data, primitive types, buffering, random access, interactive I/O.

You might also like