100 Problems in Java
100 Problems in Java
Minimum price
Suggested price
100 Problems in Java

This book is 60% complete

Last updated on 2019-12-08

About the Book

Yet another Java book.

Nor it is the breaking news, neither we need a break from learning traditional way. There are plenty of good books on Java, written in a traditional way.

However, this book breaks some typical patterns of any other Java book written so far.

It will not exhibit the same characteristics that start with a distinctive introduction to Java, principles of object oriented programming, Values and Data types, Operators, Input in Java, Library methods, etc. Instead it presents problems for learners to solve and learn from them.

This book will empower computer science and programming students to build their applications in Java. It is for the first time that a book with a "problems-solutions-explanations" approach will help you develop logical and analytical thinking so that you can easily solve interactive problems, not only in Java, but also in any programming language.


Because, we feel a programming language is more relevant to practice, not to theory.

Only practice makes you perfect in computer science and programming.

We are learning Java to solve problems and build applications, right? To do that, we better start writing code first. If you cannot take a short swim in the pool, you cannot learn swimming.

Let us start with small programs, the result follows and since it is caused by some phenomenon, we will learn the theory thereafter.

We will study the problem first, then we solve it and practice some more relevant problems. After that we will discuss theory.

After all, we want to build an application, which is concrete and reality.

Although the Abstraction stays behind the curtain, we will learn them with the help of our problems.

As we progress, through the eyes of 100 problems, we will learn the following topics:

1) What is a High Level Language? Why we need to know about the concepts regarding memory allocation, heap and stack. Problems and Solutions.

2) Which code editor we need to learn and practice Java code? What else we need to run our code successfully?

3) Difference between Procedural and Object Oriented Programming (OOP). How Java programming is written within a class. The role of compiler and interpreter. Problems and Solutions.

4) Variables and Primitive Data Types in Java. What are the roles of Primitive data types in saving Memory. Problems and Solutions.

5) More about Variables, Reference variables that represent State of an Object. Problems and Solutions.

6) What are the key concepts of OOP, such as Data Abstraction, Inheritance, Polymorphism, Encapsulation? Problems and Solutions.

7) Mathematical Library methods and their implications. Problems and Solutions.

8) Conditional Constructs in Java. How menu driven programs work. Problems and Solutions.

9) Iterative Constructs in Java. Variations in looping and Jump statements. Problems and Solutions.

10) Nested for loops. Various patterns. Problems and Solutions.

And many more about Date-time API, Deployment and other core concepts.

About the Author

Sanjib Sinha
Sanjib Sinha

Author of six books; Sanjib Sinha has written Beginning Ethical Hacking with Python, Beginning Laravel (Two Editions), Beginning Ethical Hacking with Kali Linux, Bug Bounty Hunting for Web Security, and A Quick Start Guide to Dart Programming for Apress/Springer. As a .NET developer, he won Microsoft's Community Contributor Award in 2011.

Table of Contents

  • Chapter One: Java, a High Level Language
    • A Short Note on the Book
  • About this Book
  • Java is a High Level Language
    • High Level to Machine Language
    • Memory allocation, heap and stack
  • Chapter Two: Java Standard Edition Development Kit and IDE
    • Java SE Development kit
    • IntelliJ IDEA 2018.2.4 Community Edition
  • Chapter Three: How Java Programming Works
    • Difference between POP and OOP
    • Java program is written within a class
  • Chapter Four: Objects and Data Types
    • Objects Share Two Characteristics
    • Variables or Fields in Java
    • Primitive Data Types and more
  • Chapter Five: Variables, the Name of a Field
    • Difference between Variables
  • Chapter Six: Array the Container Object
    • An Array in Disarray
    • What is an Array
    • Apache Commons Lang
    • Java ANT Application
  • Chapter Seven: Operators and Conditional Statements
    • Arithmetic and Unary Operators
    • Equality, and Relational Operators
    • Conditional Operators
    • InstanceOf Operators
    • Control Flow – Part One

Causes Supported

Amazon Watch

Supporting Indigenous Peoples. Protecting the Amazon.

Amazon Watch is a nonprofit organization founded in 1996 to protect the rainforest and advance the rights of indigenous peoples in the Amazon Basin. We partner with indigenous and environmental organizations in campaigns for human rights, corporate accountability and the preservation of the Amazon's ecological systems.

We envision a world that honors and values cultural and biological diversity and the critical contribution of tropical rainforests to our planet's life support system. We believe that indigenous self-determination is paramount, and see that indigenous knowledge, cultures and traditional practices contribute greatly to sustainable and equitable stewardship of the Earth. We strive for a world in which governments, corporations and civil society respect the collective rights of indigenous peoples to free, prior and informed consent over any activity affecting their territories and resources. We commit, in the spirit of partnership and mutual respect, to support our indigenous allies in their efforts to protect life, land, and culture in accordance with their aspirations and needs.

Authors have earned$8,253,093writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

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

See full terms

Free Updates. Free App. 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), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). 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. It really is that easy.

Learn more about writing on Leanpub