Core Java: An Integrated Approach: Covers Concepts, programs and Interview Questions w/CD

Front Cover
The book is written in such a way that learners without any background in programming are able to follow and understand it entirely. It discusses the concepts of Java in a simple and straightforward language with a clear cut explanation, without beating around the bush.On reading the book, readers are able to write simple programs on their own, as this is the first requirement to become a Java Programmer. The book provides ample solved programs which could be used by the students not only in their examinations but also to remove the fear of programming from their minds.After reading the book, the students gain the confidence to apply for a software development company, face the interview board and come out successful. The book covers sample interview questions which were asked in various interviews. It helps students to prepare for their future careers.

From inside the book

Contents

Core Java An Integrated Approach Chapter 1 All about Networks
1
Introduction to Java
7
First Step Towards Java Programming
15
Formatting the Output
23
Naming Conventions and Data Types
27
Operators in Java
33
Control Statements in Java
47
continue Statement
60
The Collection framework
297
LinkedHashSet Class
303
ArrayList Class
310
Hashtable Class
318
Using Comparator to Sort an Array
324
Streams and Files
333
Reading Data from a File using FileInputStream
340
Zipping and Unzipping Files
344

Input and Output
65
Reading Input with java util Scanner Class
78
Arrays
81
arrayname length
91
Strings
95
String Class Methods
96
Immutability of Strings
103
StringBuffer and String Builder
107
StringBuilder Class
112
Introduction to OOPs
115
Classes and Objects
123
Access Specifiers
129
Methods in Java
139
Static Methods
145
The keyword this
151
Passing Arrays to Methods
158
Factory Methods
164
Relationship Between Objects
169
Inner Class
174
Inheritance
183
The Protected Specifier
192
Polymorphism
197
Polymorphism using Methods
198
Polymorphism with Private Methods
204
Type Casting
209
Casting Primitive Data Types
210
The Object Class
217
Abstract Classes
223
Interfaces
233
Multiple Inheritance using Interfaces
240
Packages
245
Different Types of Packages
246
The JAR Files
253
Creating API Document
261
Exception Handling
265
Rethrowing an Exception
279
Wrapper Classes
283
Float Class
292
Counting Number of Characters in a File
351
Networking in Java
357
Creating a Server That Sends Data
364
Retrieving a file at server
370
Threads
375
Single Tasking
376
Single Tasking Using a Thread
382
Thread Class Methods
389
Thread Priorities
399
Thread Life Cycle
406
Graphics Programming using AWT
409
Creating a Frame
411
Uses of a Frame
418
Displaying Dots
426
Component Class Methods
432
Listeners and Listener Methods
438
TextField
444
Scrollbar Class
452
Graphics Programming using Swing
459
Displaying Text in Frame
466
Creating a Push Button with All Features
475
Setting the Look and Feel of Components
482
JTabbedPane Class
489
JComboBox Class
497
JMenu Class
502
JColorChooser Class
516
Graphics Programming Layout Managers
523
Using a Layout Inside Another Layout
529
Applets
545
Applet Parameters
559
Generic Types
563
Java Database Connectivity
571
Database Clients
572
Using jdbcodbc Bridge Driver to Connect to Oracle Database
586
Question Index
621
Program Index
629
Copyright

Common terms and phrases

Bibliographic information