Object Oriented
Programming
using Java
As per CE, CSE, IT, and ICT B.E 5th Semester Syllabus
The book covers
Java Fundamentals
Working with Java Members and Flow Control
Statements
Working with Arrays, Strings, and Wrapper Classes
Class, Objects, and Methods
Implementing Inheritance in Java
Exceptional handling, Packages, and Multithreading in
java
IO programming, Collection Classes, and Networking
with java.net
Fundamentals of Unified Modeling Language (UML)
` 300/ISBN: 9789351198178 Pages: 400 Author: Chirag Patel
About the Book
This book introduces the Java programming language and explains how to create Java applications and work with UML. It also discusses various Java
programming concepts, such as Object Oriented Programming (OOP), arrays as data structure, inheritance, multithreaded programming, and networking.
Moreover, this book also covers the fundamentals of UML.
In this book, you will learn about
Java Fundamentals: Explains OOP concepts; need and features of Java; comparison of Java with C and C++; Java tokens, such as keywords, identifiers, literals, operators,
and separators
Working with Java Members and Flow Control Statements: Explains use of primitive data types; declaration of variables, methods,objects, and classes in Java; concept
of overloading and overriding of methods; flow control statements
Working with Arrays, Strings, and Wrapper Classes: Explains one-dimensional and multi-dimensional arrays; methods of the String class; comparison between the
equals() method and == operator; wrapper classes in Java
Exception Handling and I/O Operations: Explains exception hierarchy in Java; the try and catch block; the finally, throws, and throw clauses; how to read and write data
using the I/O programming
Implementing Inheritance in Java: Explains the forms of inheritance and the Java keywords, such as super, final, and abstract; use of access specifiers; implementation
of interfaces; invocation of constructors in inheritance; inheritance hierarchy in Java
Multithreading and Packages in Java: Explains how to define, instantiate, and start a thread; thread states and transitions; concept of code synchronization; packages
and Java API packages, such as java.lang and java.util
Unified Modeling Language (UML): Discusses the concept and characteristics of object orientation; explains object orientation development and object orientation
themes; explains the concept of modeling and the types of models, and discusses the relationship among various models
About the Author
Chirag A. Patel is a post-graduate in Computer Engineering, with a 12+ years of teaching experience. His research areas are virtualization, cloud
computing, distributed computing and networking. He is perusing PhD in the area of Cloud Computing. Currently he is serving as an Associate
Professor at Computer Engineering Department, Government Engineering College, Modasa. Previously he was working at L.D. College of Engineering,
Ahmedabad. He has delivered several expert lectures in areas like cloud computing, .NET programming, Web technology etc. He has presented 3
International and 2 National research papers in the area of Cloud Computing.
/dtechpress
/dtechpress
/dreamtechpress
dreamtechpress.wordpress.com
Table of Contents
1.
Introduction to Java
yy Understanding the Java Object Class
yy Introducing Object-Oriented
yy
yy
yy
yy
yy
yy
Programming
Evolution of Java
Comparing Java with C++
Features of Java
Exploring New Features of Java SE 8.0
Introducing the Java Environment
Developing a Simple Java Program
6. Working with Packages and
Programming
yy Working with Java Tokens
and Modeling Concepts
Working with Thread
yy Object Orientation
yy An Overview of Threads
yy Object-Oriented Development
yy Defining a Thread
yy Object-Oriented Themes
yy Instantiating a Thread
yy Concepts of Modeling and Modeling
yy Threadction
8.
StringBuffer Class, and Wrapper
Classes
Working with Streams
yy Concepts of Object and Class
yy Using the Wrapper Classes
4. Working with Classes, Objects, and
Methods
yy Abstract Class
yy Working with the StreamTokenizer
yy Multiple Inheritance
yy
yy Working with Objects
yy
yy Explaining Constructors
yy Declaring Methods
yy
9.
yy Recursion in Java
Class
Implementing the Serializable
Interface
Working with the Console Class
Printing with the Formatter Class
Scanning Input with the Scanner class
Collection Classes
yy Working with Abstract Class
yy Collection Interfaces
yy Working with Nested Classes
yy Classes of Collection
yy Working with the Inner Class
yy Legacy Classes
yy Working with the Anonymous Inner
yy The Enumeration
Class
Inheritance and Interfaces in Java
13. State Modelling
yy Events
yy Examples of a State Diagram
10. Networking with Java.net
yy Introduction to Networking
yy Client-Server Networking
yy Multilevel Inheritance
yy Proxy Servers
yy Using the final Keyword
yy Domain Name Service
yy Working with Interfaces in Java
yy Understanding Networking Interfaces
/dtechpress
yy Derived Data and Packages
yy State Diagram
yy Constructors in Inheritance
Published by:
yy Constraints
yy Transitions and Conditions
yy Networking Enhancements in Java SE 8
Dispatch
yy Metadata
yy States
yy Understanding Inheritance
yy Understanding Dynamic Method
yy Generalization and Inheritance
yy Working with the PrintWriter Class
yy
yy Working with Classes
yy Associations and Links
yy Aggregation
yy Working with Character Arrays
yy Using Command Line Arguments
12. Class Modeling and Advanced Class
yy Introduction to NIO
yy Working with Buffers
yy Using the StringBuffer Class
yy Relationship among the Models
Modeling
yy Working with Files
yy Working with Strings
as a Design Technique
yy The Three Models
yy Introduction to Stream
yy Working with Stream Classes
yy Working with Arrays
11. Introduction to Object Orientation
yy Handling Exceptions
yy Code Synchronization
yy Introducing Data Types
5.
yy Working with Datagrams
yy Thread States and Transitions
yy Declaring Variables
3 Working with Arrays, Strings,
yy Understanding Packages in Java
yy Starting a Thread
yy Operator Precedence and Associativity
yy Control Statements
yy Understanding the URI Class
yy Defining Java API Packages
2. Fundamental Concepts in Java
yy Understanding the URL Class
Exceptions
yy JAR Files
7.
yy Understanding Sockets in Java
and Classes in the java.net Package
yy State Diagram Behavior
14. Interaction Modeling
yy Use Case Models
yy Sequence Model
yy Activity Model
yy Collaboration Diagram
yy Difference and Similarities between
Sequence and Collaboration Diagram
yy Internet Addressing
WILEY INDIA PVT. LTD.
DREAMTECH PRESS
4435-36/7, Ansari Road, Daryaganj
19-A, Ansari Road, Daryaganj
New Delhi-110 002, INDIA
New Delhi-110 002, INDIA
Tel: +91-11-4363 0000, Fax: +91-11-2327 5895
Tel: +91-11-2324 3463-73, Fax: +91-11-2324 3078
Email:
[email protected]Email:
[email protected]Website: www.wileyindia.com
Website: www.dreamtechpress.com
Regional Offices: Bangalore: Tel: +91-80-2313 2383, Fax: +91-80-2312 4319, Email:
[email protected]Mumbai: Tel: +91-22-2788 9263, 2788 9272, Telefax: +91-22-2788 9263, Email:
[email protected]/dtechpress
/dreamtechpress
dreamtechpress.wordpress.com
Exclusively
Distributed by:
/company/dreamtech-press