Java Programming
|
|
If you have questions related to Java, ask at the Q&As. However, if you are interested in editing this book, please see the Todo page for suggested changes. |
This book is an introduction to programming in Oracle’s Java™ programming language, a widely used programming language and software platform. This book serves as a comprehensive guide, complete with a series of tutorials to help users better understand the many ways one can program in Java. In its entirety, this book is meant to be both an introductory guide and a useful reference on Java and related technologies. As is the nature of this book, the content within the book is continuously being updated and revised. With every chapter within this book, the complexity of the context increases, building up on lessons learnt in the previous chapters. Beginners should therefore start from the beginning and proceed in a sequence throughout the material of the book.
Other special purpose books on Java, such as Java Enterprise Edition programming, Java Persistence, or Java Swing programming, with more details, would complement this book nicely.
Contents
Preface
Getting started
- Understanding systems
- The process of abstraction
- The process of encapsulation
- Exercise 1: Writing your first Java program
Language fundamentals
- Variables
- Arrays
- Basic arithmetic
- Flow control
- Methods
- Statements
- Types
- String
- Classes, objects and data types
- Syntax
- Keywords
- Packages
- Nested classes
- Access modifiers
- Data and variables
- Generics
- Java security
Classes and objects
- Defining classes
- Creating objects
- Interfaces
- Using static members
- Destroying objects
- Overloading methods and constructors
- Class loading
Collections
Exceptions
- Throwing and catching exceptions
- Stack trace
- Checked exceptions
- Unchecked exceptions
- Preventing NullPointerException
- Chained exceptions(Nesting Exceptions)
Annotations
Designing user interfaces
Swing programming
- First Example: Frames and Labels
- Events and Buttons
- A Responsive Application
- Layouts
- Building a calculator
Advanced topics
- Byte code
- Concurrent programming
- Networking
- Database programming
- Reflection
- JavaBeans
- Design patterns
- Libraries, extensions and frameworks
- 3D programming
- Threads
- Remote Method Invocation (RMI) and Internet Inter-Orb Protocol (IIOP)
- Profiling
- Monitoring
Associated reading references
- Overview of the Java programming language
- Compiling programs
- Running programs
- Anatomy of a Java program
- Java IDEs
Appendices
Related books
See also
- Java platform
- Java API
- Java virtual machine
- GNU compiler collection - gcc (includes a Java to machine language compiler)
- Comparison of Java and C++.
- Comparison of C# and Java
- Jini™ – building service oriented architectures in Java
- Eclipse IDE – Eclipse website
- NetBeans — (IDE, Platform) Official site
- Java Examples – Javawiki (in Portuguese).
- Java Programming — Java Programming

