Minimum price
Suggested price


About the Book


JAVA is Object Oriented Programming Language.

JAVA home page is at https://www.oracle.com/java/index.html.


Book content

This book is collection of standalone tutorials.

This means that each tutorial contains minimum amount of code needed to explain specific functionality.

This is in contrast to building a single application where each new functionality is added on top of already explained ones.

Each tutorial has minimum amount of supporting text making emphasis on the code example to do the explaining.


How to use this book

This book can be used as an introduction to JAVA programming language covering all of the basic core functionalities.

Book is also intended as Just In Time Support so that user can learn what it needs when it needs it.

This is why tutorials are standalone and minimalistic focusing only at one problem at the time.

About the Author

Ivor Online
Ivor Online


"Things are only as complicated as they are badly explained" 

Proper documentation is essential to avoid struggle and frustration when working with simple things that only seem complicated by not being properly documented and explained. 



"Working example is worth thousand words"

Just like the picture is worth thousand words the same goes for the working example. Documentation in the form of working examples is proved to be the fastest and the most effective way of transferring knowledge. Sometimes an example is all you need to get the things done. And if there are some accompanying comments that explain what is going on even better. This approach is used in this book. This results in fast learning and the ability to apply tutorials when you need them in the spirit of Just In Time Support. 

I wish you rapid learning!




Table of Contents

1. Introduction


1.1      About JAVA

1.2      Install

1.2.1        Automatically

1.2.2        Manually

1.3      Create Application

1.3.1        Console

1.3.2        Applet

1.4      Support

1.4.1        javac.exe

1.4.2        java.exe


2. Basic Syntax



2.1.1        Single Line

2.1.2        Multi Line

2.2      Operators

2.2.1        Comparison

2.2.2        Arithmetic

2.2.3        Assignment

2.2.4        Bitwise

2.2.5        Logical

2.3      Statements

2.3.1        Conditional         Branching      if      else      else if      switch      ? :         Looping      for      while      do ... while

2.3.2        Jumping         break         continue

2.4      Data types

2.4.1        Scalar         null         bool         byte         short         int         long         float         double         char

2.4.2        Compound         String         array         Class

2.5      Literals

2.5.1        Null

2.5.2        Boolean

2.5.3        Integer         Decimal Notation         Octal Notation         Hexadecimal Notation

2.5.4        Long         Decimal Notation         Octal Notation         Hexadecimal Notation

2.5.5        Float         Basic Notation         Scientific Notation

2.5.6        Double         Basic Notation         Scientific Notation

2.5.7        Character

2.5.8        String

2.5.9        Array


3. Object Oriented Syntax


3.1      Classes

3.1.1        Inheritance

3.1.2        Reflection

3.1.3        ClassLoader

3.2      Interface

3.3      Objects

3.3.1        Create

3.3.2        Upcasting

3.3.3        Downcasting

3.4      Exceptions

3.5      Methods

3.5.1        Create

3.5.2        Parameters Scope

3.5.3        Overloading

3.5.4        Overriding


4. Advanced Syntax


4.1      Generic

4.1.1        Class

4.1.2        Method

4.1.3        Type inference

4.1.4        Type parameters

4.1.5        Wildcards


5. Built in functionalities


5.1      Directories

5.1.1        Attributes

5.1.2        Create

5.1.3        Rename

5.1.4        Move

5.1.5        Copy

5.1.6        Read

5.1.7        Delete

5.2      Files

5.2.1        Common Procedures         Attributes         Delete         Copy         Move         Rename         Write simultaneously

5.2.2        Text         Read          FileReader          BufferedReader         Write          FileWriter          BufferedWritter          PrintWriter          fileWriter

5.2.3        Binary         Write          FileOutputStream          DataOutputStream         Read          FileInputStream          DataInputStream

5.2.4        Properties         Create         Read         Edit

5.2.5        Image         Create         Edit         Display         Display Multiple Images

5.3      HTTP Request

5.3.1        GET

5.3.2        POST

5.4      Collections

5.4.1        HashMap

5.4.2        Vectors

5.4.3        Iterator

5.4.4        Hashtables

5.4.5        Enumerator

5.4.6        Date/Time

5.5      Serialization


6. Appendix


6.1      ASCII Table

6.2      Cheat Sheets

6.2.1        bool

6.2.2        byte

6.2.3        short

6.2.4        int

6.2.5        long

6.2.6        float

6.2.7        double

6.2.8        char

6.2.9        String

6.2.10      array      Single dimensional      Multi Dimensional

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub