01 Java Tutorial

This Java tutorial has been written for beginners to advanced programmers who are striving to learn Java programming. We have provided numerous practical examples to explain the concepts in simple and easy steps. This tutorial has been prepared and reviewed by experienced Java programmers at Tutorials Point, and the best effort has been put into making it useful for the students and Java developers.

After completing this tutorial, you will find yourself at a moderate level of expertise in Java programming, from where you can elevate yourself to the next levels.

What is Java?

Java is a popular high-level, object-oriented programming language that was originally developed by Sun Microsystems and released in 1995. Currently, Java is owned by Oracle, and more than 3 billion devices run Java. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. Today Java is being used to develop numerous types of software applications, including desktop apps, mobile apps, web apps, games, and much more.

Java is a general-purpose programming language intended to let programmers Write Once, Run Anywhere (WORA). This means that compiled Java code can run on all platforms that support Java without the need to recompile.

In this tutorial, you will learn everything about Java, starting from basics to advanced concepts such as overview, history, installations, basic input/output, conditional & control statements, arrays, classes, inheritances, method overloading & overriding, exception handling, and many more.

Java First Example

The first example in Java is to print "Hello, World!" on the screen. Let's have a quick look at the first examples in Java programming:

public class MyFirstJavaProgram { /* This is my first java program. * This will print 'Hello, World!' as the output */ public static void main(String []args) { System.out.println("Hello, World!"); // prints Hello, World! } }

Getting Started with Java

Explore the following chapters to get started learning Java programming:

  • Java - Home
  • Java - Overview
  • Java - History
  • Java - Features
  • Java Vs. C++
  • JVM - Java Virtual Machine
  • Java - JDK vs JRE vs JVM
  • Java - Hello World Program
  • Java - Environment Setup
  • Java - Basic Syntax

Java Basics

Explore the basic topics such as data types, operators, user input, etc.:

  • Java - Variable Types
  • Java - Data Types
  • Java - Type Casting
  • Java - Unicode System
  • Java - Basic Operators
  • Java - Comments
  • Java - User Input
  • Java - Date & Time

Java Conditional Statements

Furthermore, in Java, explore the conditional statements to implement the logic and to make decisions based on the conditions:

  • Java - Decision Making
  • Java - If-else
  • Java - Switch

Java Loops and Control Statements

Explore the loops and control statements to learn how to control the execution of the programming logics:

  • Java - Loop Control
  • Java - For Loops
  • Java - For-Each Loops
  • Java - While Loops
  • Java - do-while Loops
  • Java - Break
  • Java - Continue

Java String and Arrays

Explore the following strings and array-related chapters:

  • Java Strings and String Class
  • Java - Strings

Java OOPs

Explore the following chapters to learn the object-oriented programming approach in Java:

  • Java - OOPs Concepts
  • Java - Object & Classes
  • Java - Class Attributes
  • Java - Class Methods
  • Java - Methods
  • Java - Variables Scope
  • Java - Constructors
  • Java - Access Modifiers
  • Java - Inheritance
  • Java - Aggregation
  • Java - Polymorphism
  • Java - Overriding
  • Java - Method Overloading
  • Java - Dynamic Binding
  • Java - Static Binding
  • Java - Instance Initializer Block
  • Java - Abstraction
  • Java - Encapsulation

Java Collections and Interfaces

Explore Java interfaces and collections-related chapters:

  • Java - Interfaces
  • Java - List Interface
  • Java - Queue Interface
  • Java - Map Interface
  • Java - SortedMap Interface
  • Java - Set Interface
  • Java - SortedSet Interface
  • Java - Iterators
  • Java - Comparators
  • Java - Comparable Interface in Java
  • Java - Collections
  • Java - Collection Interface

Java Exceptional Handling

Explore the file handling chapters to learn how to create, write, read, and manipulate the files and directories:

  • Java - Files
  • Java - Create a File
  • Java - Write to File
  • Java - Read Files
  • Java - Delete Files
  • Java - Directories
  • Java - I/O Streams

Java Multithreading

Explore the threading-related chapters to learn to manage multiple threads in Java:

  • Java - Multithreading
  • Java - Thread Life Cycle
  • Java - Creating a Thread
  • Java - Starting a Thread
  • Java - Joining Threads
  • Java - Naming Thread
  • Java - Thread Scheduler
  • Java - Thread Pools
  • Java - Main Thread
  • Java - Thread Priority
  • Java - Daemon Threads
  • Java - Thread Group
  • Java - Shutdown Hook

Java Practices

  • Java Quick Guide
  • Java Interview Questions
  • Java 8 Interview Questions
  • Java Online Test
  • Java Mock Test

Java References

Here, you can find the package, class, and method references −

  • Java Scanner Class
  • Java Arrays Class
  • Java Strings Class
  • Java Date Class
  • Java ArrayList Class
  • Java Vector Class
  • Java Stack Class
  • Java PriorityQueue Class
  • Java LinkedList Class
  • Java ArrayDeque Class
  • Java HashMap Class
  • Java LinkedHashMap Class
  • Java WeakHashMap Class
  • Java EnumMap Class
  • Java TreeMap Class
  • Java IdentityHashMap Class
  • Java HashSet Class
  • Java EnumSet Class
  • Java LinkedHashSet Class
  • Java TreeSet Class
  • Java BitSet Class
  • Java Dictionary Class
  • Java Hashtable Class
  • Java Properties Class
  • Java Collection Class
  • Java Array Class

Comments

Popular posts from this blog

79 HTML - Tables