Book description
This book approaches the art of programming using Java with a simplified treatment and succinct presentation of concepts and software development practices for solving problems. All chapters of the book are supported with a wide variety of solved examples and end-of-exercises.
Book Contents –
Part I Java Basics –
1: Java Data Types,Operators and Console I/O Statements
2: Java Conditional and Looping Statements
3: Arrays in Java
4: Methods in Java
Part II Object Oriented Java Programming –
5: Classes and Objects
6: Inheritance and Polymorphism
7: More on Objects and Exceptions
Part III Java Containers for Holding Objects –
8: Sequence Containers
9: Map Containers
10: Set Containers
11: Sorting and Searching
Part IV Java Threads and IO Streams –
12: Concurrency Using Threads
13: Processing Byte and Object Streams
14: Processing Character Streams and NIO
Part V Java GUI Programming –
15: Graphics Programming
16: GUI Development Using JFrame
17: GUI Development Using JApplet
Appendix A
Appendix B
Appendix C
Index
Table of contents
- Cover (1/2)
- Cover (2/2)
- Brief Contents
- Contents (1/3)
- Contents (2/3)
- Contents (3/3)
- Pedagogical Features
- Preface
- Part I Java Basics
- Chapter 1: Java Data Types,Operators and Console I/O Statements
- Chapter 2: Java Conditional and Looping Statements
-
Chapter 3: Arrays in Java
- 3.1 Introduction
- 3.2 Declaring and Initializing Arrays
- 3.3 Accessing Array Elements
- 3.4 Problem: Sequential Search for a Key
- 3.5 Problem: Binary Search for a Key
- 3.6 The For-Each Statement
- 3.7 Problem: Finding Euclidean Distance Between Two Vectors
- 3.8 Problem: Reverse an Array Without Copying
- 3.9 Multidimensional Arrays
- 3.10 Problem: Transpose of a Matrix
- 3.11 Summary
- Key Terms
- Review Questions
- Exercises
-
Chapter 4: Methods in Java
- 4.1 Introduction
- 4.2 Defining a Method
- 4.3 Calling a Method
- 4.4 Problem: Nested Method Calls
- 4.5 Problem: Calculate Area of Geometric Objects
- 4.6 Problem: Generate Prime Numbers
- 4.7 Recursion: Power and Pitfalls
- 4.8 Method Overloading
- 4.9 Passing One-Dimensional Arrays to Methods
- 4.10 Problem: Method to Sort Names
- 4.11 Passing Two-Dimensional Arrays to Methods
- 4.12 Variable Length Argument Lists
- 4.13 Summary
- Key Terms
- Review Questions
- Exercises
- Part II Object Oriented Java Programming
-
Chapter 5: Classes and Objects
- 5.1 Introduction
- 5.2 Object-Oriented Programming Paradigm
- 5.3 Creating a Class
- 5.4 Problem: Designing Object-Oriented College Aplication
- 5.5 Creating Data Members
- 5.6 Creating Member Functions
- 5.7 Static Data and Methods
- 5.8 Array of Objects
- 5.9 Objects as Arguments to Methods
- 5.10 Summary
- Key Terms
- Review Questions
- Exercises
-
Chapter 6: Inheritance and Polymorphism
- 6.1 Introduction
- 6.2 Constructors
- 6.3 Default Constructor
- 6.4 Parameterized Constructor
- 6.5 Constructor Overloading
- 6.6 Essential Java.lang Classes
- 6.7 Inheritance
- 6.8 Calling Base Class Constructor
- 6.9 Calling Base Class Data Member with Super
- 6.10 Overriding and Polymorphism
- 6.11 Aggregation Versus Inheritance
- 6.12 Object and Object Cloning
- 6.13 Checking Object’s Class Type
- 6.14 Preventing Inheritance and Overriding
- 6.15 Visibility of Members of a Class
- 6.16 Inner Classes
- 6.17 Summary
- Key Terms
- Review Questions
- Exercises
- Chapter 7: More on Objects and Exceptions
- Part III Java Containers for Holding Objects
- Chapter 8: Sequence Containers
- Chapter 9: Map Containers
- Chapter 10: Set Containers
-
Chapter 11: Sorting and Searching
- 11.1 Introduction
- 11.2 Sorting and Searching Using Arrays Class
- 11.3 Filling and Copying Arrays
- 11.4 Comparing Arrays
- 11.5 Sorting Primitive Arrays
- 11.6 Sorting String Objects
- 11.7 Array Sorting Using Comparable
- 11.8 Array Sorting Using Comparator
- 11.9 Searching Sorted Arrays
- 11.10 Sorting and Searching Using Collections Class
- 11.11 Sorting Lists Using Comparable
- 11.12 Sorting Lists Using Comparator
- 11.13 Summary
- Key Terms
- Review Questions
- Exercises
- Part IV Java Threads and IO Streams
-
Chapter 12: Concurrency Using Threads
- 12.1 Introduction
- 12.2 Multithreading Using Thread Class
- 12.3 Making Threads to Sleep
- 12.4 Yielding Control to Other Threads
- 12.5 Problem: Multithreaded Adder
- 12.6 Suspending Caller Thread
- 12.7 Daemon Threads
- 12.8 Thread Priority
- 12.9 Multithreading Using Runnable
- 12.10 Thread Synchronization for Resource Sharing
- 12.11 Synchronized Methods
- 12.12 Synchronized Block
- 12.13 Cordination Among Threads
- 12.14 Problem: Car Dealer Application
- 12.15 Threads Life
- 12.16 Concurrent Programming Packages
- 12.17 The Concurrent Package
- 12.18 The Concurrent.Atomic Package
- 12.19 Problem: Random Strings Generator
- 12.20 The Concurrent.locks Package
- 12.21 Summary
- Key Terms
- Review Questions
- Exercises
-
Chapter 13: Processing Byte and Object Streams
- 13.1 Introduction
- 13.2 The File Class
- 13.3 Filtering File Names
- 13.4 Filtering Absolute File Paths
- 13.5 Types of Input Streams
- 13.6 Types of Output Streams
- 13.7 Problem: Copy Files as Bytes
- 13.8 Processing Primitive Data Types
- 13.9 Problem: Generating Students Mark List
- 13.10 Serializing Objects
- 13.11 Problem: Generating Students’ MarkList – Revisited
- 13.12 Transient Variables
- 13.13 Summary
- Key Terms
- Review Questions (1/2)
- Review Questions (2/2)
- Exercises
-
Chapter 14: Processing Character Streams and NIO
- 14.1 Introduction
- 14.2 Types of Readers
- 14.3 Types of Writers
- 14.4 Writing to and Reading from Pipes
- 14.5 Formatted Printing
- 14.6 Random Access File
- 14.7 Converting Bytes to Characters
- 14.8 File Processing Using NIO
- 14.9 Reading Data from Buffer
- 14.10 Writing Data to Buffer
- 14.11 Copying Files
- 14.12 Locking Files
- 14.13 Summary
- Key Terms
- Review Questions
- Exercises
- Part V Java GUI Programming
-
Chapter 15: Graphics Programming
- 15.1 Introduction
- 15.2 Swing Components and Containers: Overview
- 15.3 Frames and Panels
- 15.4 Drawing Shapes Using Graphics Context
- 15.5 Drawing Strings and Lines
- 15.6 Problem: Multiline Generation
- 15.7 Drawing Rectangles
- 15.8 Problem: Random Rectangle Generator
- 15.9 Drawing Circles and Ellipses
- 15.10 Drawing Arcs
- 15.11 Drawing Polygons and Polylines
- 15.12 Displaying Images
- 15.13 Problem: Threaded Blinking Balls
- 15.14 Painting Using JApplet
- 15.15 Java 2D Graphics
- 15.16 Drawing Lines and Curves
- 15.17 Drawing Rectangle, Ellipses and Arcs
- 15.18 Filling with Color, GradientPaint and TexturePaint
- 15.19 Drawing Arbitrary Shapes
- 15.20 Cordinate Transformations
- 15.21 2D Clipping
- 15.22 Affine Transformations on Images
- 15.23 Summary
- Key Terms
- Review Questions
- Exercises
-
Chapter 16: GUI Development Using JFrame
- 16.1 Introduction
- 16.2 Creating Labels and Buttons
- 16.3 Problem: Digital Clock as JLabel
- 16.4 Basics of Event Handling
- 16.5 Layout Managers
- 16.6 Event Handling Revisited
- 16.7 Problem: Color Label Aplication
- 16.8 Problem: Throw Ball Aplication
- 16.9 Creating Text Field and Text Area
- 16.10 Problem: File Lister
- 16.11 Problem: Numeric Text Field
- 16.12 Problem: Text Copy Cat
- 16.13 Creating CheckBox, RadioButton, ComboBox and List
- 16.14 Dialog Windows
- 16.15 Chosing File Names
- 16.16 Chosing Colors
- 16.17 Displaying Messages
- 16.18 Problem: Designing Course Registration Form (1/2)
- 16.18 Problem: Designing Course Registration Form (2/2)
- 16.19 Creating Editor Pane and Text Pane
- 16.20 Creating Slider
- 16.21 Designing Tabbed Pane
- 16.22 Handling Menu
- 16.23 Table Handling
- 16.24 Creating Custom Swing Components
- 16.25 Summary
- Key Terms
- Review Questions
- Exercises
-
Chapter 17: GUI Development Using JApplet
- 17.1 Introduction
- 17.2 Applet Advantages and Restrictions
- 17.3 Creating and Running Applets
- 17.4 Creating GUI Components inside Applets
- 17.5 Applet Input Parameters
- 17.6 Images in Applets
- 17.7 Timers Firing ActionEvent
- 17.8 Playing Audio Clips
- 17.9 Handling Mouse Event
- 17.10 Handling Hyperlink Event
- 17.11 Building Archives Using JAR
- 17.12 Signing Applets
- 17.13 Problem: Accessing Websites from WWW
- 17.14 Summary
- Key Terms
- Review Questions
- Exercises
- Appendix A
- Appendix B
- Appendix C
- Index (1/2)
- Index (2/2)
Product information
- Title: Java Programming, 1st Edition by Pearson
- Author(s):
- Release date: May 2024
- Publisher(s): Pearson India
- ISBN: 9789332517868
You might also like
book
Java Programming by Pearson
Book Contents – Chapter 1: Introduction to OOPs Chapter 2: Marching Towards Java and Java Bytecodes …
book
Object Oriented Programming Through Java by Pearson
This book offers contemporary, comprehensive and in-depth coverage of all the concepts of object-oriented technologies, with …
book
Core Java, Volume II: Advanced Features, 13th Edition
The Classic Guide to Advanced Java Programming: Fully Updated for Java 21 Core Java is the …
book
JavaScript Crash Course
JavaScript is the programming language of the internet—the secret sauce that makes websites dynamic, responsive, and …