Java for Beginners
Java for Beginners
Learn How to Cook your Java Code with a Recipe, History and Reference
About the Book
There are several problems that haunt us as Java developers; especially it haunts the beginners, as well as the experienced ones when they are asked the same questions in the interviews.
What do these terms, fields, states, variables, parameters mean? Is everything in Java object? What are the primitive data types and what is the range of their values? What is reference type? What are access modifiers and how should we use it? How we can use external libraries to manipulate an array? What are the golden rules of the truth table?
How do we find PalPrime or Twisted prime numbers? How we can change decimal value to binary? What are fixed and unfixed iterations? How could we distinguish between Exit and Entry controlled loops? How do we use them to solve many different types of mathematical problems?
How to test whether a number is prime or special? How to find the frequency of digit? How we can set elements of an array in an ascending order? How we can find the sum of prime divisors of any number? How to find the sum of first ten Fibonacci numbers? How to check whether a number is Duck Number or not? Finding Armstrong numbers based on user's input is really easy when you know how to use loops. The same way, reversing any number is also very easy.
This book is all about these common problems that haunt us as Java developers. In that sense, this book breaks some typical patterns.
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.
Table of Contents
Chapter One: Java, a High Level Language
- A Short Note on the Book
- About this Book
Why 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
Chapter Eight: Iterative Constructs, Entry and Exit Controlled Loops
- Entry Controlled loop: Fixed and Unfixed Iteration
- For or While, it Depends
- Chapter Nine: Basic Input and Output in Java
Chapter Ten: Classes and Objects, A Brief Introduction
- Polymorphism in Java
- Chapter Eleven: Interface and Abstraction
Chapter Twelve: Exception Handling
- A Brief Note on Exception Handling
Chapter Thirteen: Data Structure, A Brief Introduction
- What Next
Supporting Indigenous Peoples. Protecting the Amazon.http://amazonwatch.org
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.
Other books by this author
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.
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 $12 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