Object Oriented Programming (Java)
Object Oriented Programming (Java)
(Regulation 2021)
Coimbatore
A.R.S. Publications
No. 11, Veerabathra Nagar, Part II,
8th Street, Medavakkam,
Chennai – 600 100, Tamil Nadu, India.
Phone: 044 – 48587467, Mobile: 9840025186
eMail: arspublications@gmail.com
web: www.arspublications.com
PREFACE
This book “Object Oriented Programming” is about basic idea towards object oriented programming with Java.
It provides clear view towards object oriented mechanism adapted in programming languages. It provides a
preliminary study on understanding Java with several illustration program. It affords procedural footsteps from
Unit I: Introduction towards Object Oriented Programming concepts in Java. Provides a procedure for
writing, compiling and executing a Java program. Contributes a knowledge on datatypes, variables,
arrays, operators, control flow and structure statement, Class and Constructors.
Unit II: Outline on Java Overloading, Inheritance, Interface and Package with understanding to distinct
access specifiers.
Unit III: Transitory awareness on Wrappers, Exception handling and Multithreading. Provides a procedure
for writing a multithreading application with priority, daemon threads, synchronizing of thread and
Unit IV: A preliminary confab over Generic programming through classes, methods and its limitations in
Java. Brief knowledge over basic Input / Output operations performed through streams on Console
and File. It provides detailed understanding to object cloning and String manipulation.
Unit V: Provides a study over graphical user interfacing JavaFX. Understanding towards window
development and its components. Building up desktop application with simple form designing with
3003
Overview of OOP – Object oriented programming paradigms – Features of Object Oriented Programming –
Java Buzzwords – Overview of Java – Data Types, Variables and Arrays – Operators – Control Statements
– Programming Structures in Java – Defining classes in Java – Constructors Methods -Access specifiers -
Overloading Methods – Objects as Parameters – Returning Objects –Static, Nested and Inner Classes.
Inheritance: Basics– Types of Inheritance -Super keyword -Method Overriding – Dynamic Method Dispatch
–Abstract Classes – final with Inheritance. Packages and Interfaces: Packages – Packages and Member
Exception Handling basics – Multiple catch Clauses – Nested try Statements – Java’s Built-in Exceptions –
User defined Exception. Multithreaded Programming: Java Thread Model–Creating a Thread and Multiple
Threads – Priorities – Synchronization – Inter Thread Communication- Suspending –Resuming, and Stopping
I/O Basics – Reading and Writing Console I/O – Reading and Writing Files. Generics: Generic Programming
– Generic classes – Generic Methods – Bounded Types – Restrictions and Limitations. Strings: Basic String
JAVAFX Events and Controls: Event Basics – Handling Key and Mouse Events. Controls: Checkbox,
FlowPane – HBox and VBox – BorderPane – StackPane – GridPane. Menus – Basics – Menu – Menu bars
– MenuItem.
Contents
UNIT I
1.1.1 Abstraction
1.1.3 Encapsulation
1.1.4 Inheritance
1.1.5 Polymorphism
1.3.2 Structure
1.3.3 Compilation
1.5.1 Declaration
1.5.2 Object
1.5.3 Constructors
1.5.4 Methods
1.6 Comments
1.8 Variables
1.8.1 Local Variables
1.9 Operators
1.11 Arrays
1.11.1 Declarations
1.11.3 Creation
1.12 Packages
2.3.3 Important points to be notes while using abstract class and methods
2.5 Interfaces
2.8.1 List
2.9 Strings
UNIT III
3.2.1 Streams
UNIT IV
UNIT V
5.1.4 Frame
5.2.3 Lines
5.2.4 Rectangles
5.2.5 Polygons
5.2.6 Ovals
5.2.7 Arc
5.3.1 java.awt.Component
5.3.2 java.awt.Graphics
5.6.3 Actions
5.8.1 BorderLayout
5.8.2 FlowLayout
5.8.3 GridLayout
5.8.4 CardLayout
5.9.3 Buttons
5.9.6 List
5.9.7 Choices
5.9.8 Scrollbars
5.9.9 Windows
5.9.10 Menus
Unit VI 2
Appendix 2