Learn Java Programming in 24 Hours
By Publishdrive
()
About this ebook
This book will help you learn the basics of Java programming in an easy way. This Edition is a comprehensive guide for beginners to learn the most popular programming languages worldwide.
It will familiarize you with various JAVA coding concepts like decisions, loops, arrays, methods, variables, lambda expressions, etc. As well as a brief introduction to various framework it supports like Java SE8, Java Swing, Java Oracle, Java Eclipse, etc.
The book explains thoroughly on how to encounter the programming challenges and how to align different code together to make it work. The book also links to additional resources, guidance, and tutorials for further reference.
Each chapter in the book comprised of several “items” presented in the form of a short, standalone essay for Java Web Development. It provides specific insight into Java platform subtleties, like Java Virtual Machines, servlets, applets, JavaBeans, etc. It also involves comprehensive libraries and tools that can help you in developing your own programs.
The detailed descriptions and explanations for each item illuminate what to do, what not to do, and why.
Getting proficient in these areas will help you to become an expert in Java programming. After reading this book, you will have mid-level skills and a basic understanding of Java programing. The new edition has been updated to align with Java 8, and includes new options for the latest tools and techniques.
Bear in mind that reading this book is just the beginning of your journey towards learning Java
Table of Contents
Introduction:
Chapter 1: Introduction
What is Java Platform ?
Working of Java Virtual Machine(JVM) & its Architecture
How to install Java JDK 8 and Java 8 download
Creating Your First Java Program
Chapter 2: OOPS
Easily understand concept of Object Oriented Programming(OOP's)
What is Abstraction in OOPS ?
Learn Java Encapsulation in 10 Minutes
Java Inheritance & Polymorphism
Chapter 3 Data Type
Java Variables and Data Types
Objects and Classes in Java
Java Array
Java String Tutorial
How to Split a String in Java
How to convert a Java String to Integer?
Working with HashMap in Java
How to use Java Arraylist
Chapter 4 Must Know Stuff!
Java "THIS" Keyword
Java Command Line Arguments
Chapter 5 Java Inheritance
Java Abstract Class and Methods
Concept of Inheritance Java and Java Polymorphism
Chapter 6 Memory
Java Stack and Heap
Java Static Methods and Variables
How "Garbage Collection" Works in Java?
Chapter 7 Conditional Loops
How to Loop/Iterate an array in Java
Java Switch Case Tutorial
Chapter 8 Exception Handling
Java Exception Handling
Guide to Java Exception Hierarchy
Create User Defined Exception in Java
How to use "throws" keyword in Java Exception
Chapter 9 Math
Java Math Class Tutorial
Chapter 10 Important Stuff
Multithreading in Java
How to use Date in Java
How to use Java Timer and Example
Related to Learn Java Programming in 24 Hours
Related ebooks
Core Java Professional: For First Time Learner's. Rating: 0 out of 5 stars0 ratingsJava: Advanced Guide to Programming Code with Java: Java Computer Programming, #4 Rating: 0 out of 5 stars0 ratingsCore Java: Made Simple: A popular language for Android smart phone application, favoured for edge device and Rating: 0 out of 5 stars0 ratingsJava 9 Data Structures and Algorithms Rating: 0 out of 5 stars0 ratingsJAVA: Java Programming for beginners teaching you basic to advanced JAVA programming skills! Rating: 0 out of 5 stars0 ratingsJava: Best Practices to Programming Code with Java Rating: 0 out of 5 stars0 ratingsJava Coding Problems: Improve your Java Programming skills by solving real-world coding challenges Rating: 0 out of 5 stars0 ratingsJAVA for Beginner's Crash Course: Java for Beginners Guide to Program Java, jQuery, & Java Programming Rating: 4 out of 5 stars4/5Java: Tips and Tricks to Programming Code with Java: Java Computer Programming, #2 Rating: 0 out of 5 stars0 ratingsJAVA Programming for Beginners: The Simple Guide to Learning JAVA Programming fast! Rating: 0 out of 5 stars0 ratingsMastering JAVA Programming for Beginners Rating: 0 out of 5 stars0 ratingsJava: Best Practices to Programming Code with Java: Java Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsJava and Java EE Interview Preparations Rating: 0 out of 5 stars0 ratingsCore Java Programming Rating: 4 out of 5 stars4/5Learn Java 12 Programming: A step-by-step guide to learning essential concepts in Java SE 10, 11, and 12 Rating: 0 out of 5 stars0 ratingsJava 8 Programmer II Study Guide: Exam 1Z0-809 Rating: 4 out of 5 stars4/5Java: Beginner's Guide to Programming Code with Java: Java Computer Programming Rating: 0 out of 5 stars0 ratingsJava: Tips and Tricks to Programming Code with Java Rating: 0 out of 5 stars0 ratingsOCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide: Exam 1Z0-809 Rating: 5 out of 5 stars5/5Amazing Java: Learn Java Quickly Rating: 0 out of 5 stars0 ratingsJava Core Interview Questions and Answers. Tech interviewer’s notes Rating: 1 out of 5 stars1/5Advanced JAVA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsThe Java Workshop: Learn object-oriented programming and kickstart your career in software development Rating: 0 out of 5 stars0 ratingsOCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808 Rating: 3 out of 5 stars3/5Java 9 Programming By Example Rating: 4 out of 5 stars4/5Visualizing Data Structures Rating: 0 out of 5 stars0 ratingsJava Programming Rating: 0 out of 5 stars0 ratingsCrystal Clear Java: 1St Edition Rating: 0 out of 5 stars0 ratings(Part 1) Absolute Beginner: Java 4 Selenium WebDriver: Come Learn How To Program For Automation Testing Rating: 0 out of 5 stars0 ratings
Programming For You
Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsPython Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Algorithms For Dummies Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Foundations): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5PYTHON PROGRAMMING Rating: 4 out of 5 stars4/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5Learn NodeJS in 1 Day: Complete Node JS Guide with Examples Rating: 3 out of 5 stars3/5Python Data Structures and Algorithms Rating: 5 out of 5 stars5/5
Reviews for Learn Java Programming in 24 Hours
0 ratings0 reviews
Book preview
Learn Java Programming in 24 Hours - Publishdrive
Learn Java Programming in 24 Hours
Learn with Complete Bible
By Alex Nordeen
Copyright 2021- All Rights Reserved – Alex Nordeen,
ALL RIGHTS RESERVED. No part of this publication may be reproduced or transmitted in any form whatsoever, electronic, or mechanical, including photocopying, recording, or by any informational storage or retrieval system without express written, dated and signed permission from the author.
Table of Contents
Introduction:
Chapter 1: Introduction
What is Java Platform ?
Working of Java Virtual Machine(JVM) & its Architecture
How to install Java JDK 8 and Java 8 download
Creating Your First Java Program
Chapter 2: OOPS
Easily understand concept of Object Oriented Programming(OOP's)
What is Abstraction in OOPS ?
Learn Java Encapsulation in 10 Minutes
Java Inheritance & Polymorphism
Chapter 3 Data Type
Java Variables and Data Types
Objects and Classes in Java
Java Array
Java String Tutorial
How to Split a String in Java
How to convert a Java String to Integer?
Working with HashMap in Java
How to use Java Arraylist
Chapter 4 Must Know Stuff!
Java THIS
Keyword
Java Command Line Arguments
Chapter 5 Java Inheritance
Java Abstract Class and Methods
Concept of Inheritance Java and Java Polymorphism
Chapter 6 Memory
Java Stack and Heap
Java Static Methods and Variables
How Garbage Collection
Works in Java?
Chapter 7 Conditional Loops
How to Loop/Iterate an array in Java
Java Switch Case Tutorial
Chapter 8 Exception Handling
Java Exception Handling
Guide to Java Exception Hierarchy
Create User Defined Exception in Java
How to use throws
keyword in Java Exception
Chapter 9 Math
Java Math Class Tutorial
Chapter 10 Important Stuff
Multithreading in Java
How to use Date in Java
How to use Java Timer and Example
Chapter 1: Introduction
What is Java Platform ?
To understand JAVA programming language, we need to understand some basic concept of how a computer program can run a command and execute the action.
Java is a programming language as well as a Platform
How about recollecting some basic concept of computing?
What is PC?
A computer is an electronic device capable of performing computations, and we all know that it composed of a monitor, keyboard, mouse and memory to store information. But the most important component of the computer is a PROCESSOR. Which does all thinking of computer, but the question is how the computer does this thinking? How does it understand text, images, videos, etc.?
The computer is an electronic device, and it can only understand electronic signals or binary signals. For example, the 5-volt electronic signal may represent binary number 1 while 0 volts may represent binary number 0. So your PC is continuously bombarded with these signals.
Eight bits of such signals are group together to interpret Text, numerical and symbols.
For example, the # symbol is identified by computer by 10101010. Similarly, the pattern for adding a function is represented by 10000011.
This is known as 8-bit computing. Current day processor is capable of decoding 64 bit time. But what is the relation of this concept with the programming language JAVA. Let understand these with an example.
Suppose if you want to tell the computer to add two number (1+2) which is represented by some binary numbers (10000011), how are you going to tell the computer? Yes, we going to use assembly language to get our code executed.
Assembly Language is the most elementary form of software development languages.
We are going to give the command to a computer in this format as shown below. Your code to add two numbers in this language would be in this order
Store number 1 at memory location say A
Store number 2 at memory location say B
Add contents of Location A & B
Store results
But how are we going to do this? Back in 1950's when computers were huge and consumed great deal of power, you would convert your assembly code into corresponding machine code to 1 and 0’s using mapping sheets. Later these code will be punched into the machine cards and feed to the computer. The computer will read these code and execute the program. These would be a long process then until ASSEMBLER came to help.
What are Assembler and Compiler?
With the advancement in technology i/o devices were invented you could directly type your program into the PC using a program called ASSEMBLER. It converts it into corresponding machine code (110001..) and feed to your processor. So coming back to our example addition of (1+2), the assembler will convert this code into machine code and give the output.
That apart, you will also have to make calls to create Operating System provided functions to display the output of the code.
But alone assembler is not involved in this whole process, it also requires the compiler to compile the long code into a small chunk of codes. With advancement in software development languages, this entire assembly code could shrink into just one line print f 1+2 A with the help of software called COMPILER. It is used to convert your c language code into assembly code, and the assembler converts it into corresponding machine code, and this machine code will be transmitted to the processor. The most common processor used in PC or Computers are Intel processor.
Though present day compilers come bundled with assembler can directly convert your higher language code into machine code.
Now, suppose Windows operating system is running on this Intel processor, a combination of Operating System plus the processor is called the PLATFORM. The most common platform in the world is the Windows and Intel called the Wintel Platform. The other popular platforms are AMD and Linux , Power PC, and Mac OS X.
Now, with a change in processor, the assembly instructions will also change. For example the
Add instruction in Intel may be called ADDITION for AMD
OR Math ADD for Power PC
And obviously with a change in Operating System, the level and nature of O.S level calls will also change.
As a developer, I want my software program to work on all platforms available, to maximize my revenues. So I would have to buy separate compilers which