- Learning about java programming
- Learning about java programming
- Trails Covering the Basics
- Creating Graphical User Interfaces
- Specialized Trails and Lessons
- Java Tutorial for Beginners
- Download Java
- Java Introduction
- Java Flow Control
- Arrays in Java
- Java OOPs
- Java Exception Handling
- Collections Framework
- Java References
- Java Programs
- Additional Topics
- What is Java?
- Why learn Java?
- Hello World Program
- Official Documentation
- Comments
Learning about java programming
- Introduction to Java
- The complete History of Java Programming Language
- C++ vs Java vs Python
- How to Download and Install Java for 64 bit machine?
- Setting up the environment in Java
- How to Download and Install Eclipse on Windows?
- JDK in Java
- How JVM Works – JVM Architecture?
- Differences between JDK, JRE and JVM
- Just In Time Compiler
- Difference between JIT and JVM in Java
- Difference between Byte Code and Machine Code
- How is Java platform independent?
- Decision Making in Java (if, if-else, switch, break, continue, jump)
- Java if statement with Examples
- Java if-else
- Java if-else-if ladder with Examples
- Loops in Java
- For Loop in Java
- Java while loop with Examples
- Java do-while loop with Examples
- For-each loop in Java
- Continue Statement in Java
- Break statement in Java
- Usage of Break keyword in Java
- return keyword in Java
- Object Oriented Programming (OOPs) Concept in Java
- Why Java is not a purely Object-Oriented Language?
- Classes and Objects in Java
- Naming Conventions in Java
- Java Methods
- Access Modifiers in Java
- Java Constructors
- Four Main Object Oriented Programming Concepts of Java
- Inheritance in Java
- Abstraction in Java
- Encapsulation in Java
- Polymorphism in Java
- Interfaces in Java
- ‘this’ reference in Java
Learning about java programming
The Java Tutorials have been written for JDK 8. Examples and practices described in this page don’t take advantage of improvements introduced in later releases and might use technology no longer available.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.
The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into «trails».
Trails Covering the Basics
- Getting Started — An introduction to Java technology and lessons on installing Java development software and using it to create a simple program.
- Learning the Java Language — Lessons describing the essential concepts and features of the Java Programming Language.
- Essential Java Classes — Lessons on exceptions, basic input/output, concurrency, regular expressions, and the platform environment.
- Collections — Lessons on using and extending the Java Collections Framework.
- Date-Time APIs — How to use the java.time pages to write date and time code.
- Deployment — How to package applications and applets using JAR files, and deploy them using Java Web Start and Java Plug-in.
- Preparation for Java Programming Language Certification — List of available training and tutorial resources.
Creating Graphical User Interfaces
- Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform.
- Creating a JavaFX GUI — A collection of JavaFX tutorials.
Specialized Trails and Lessons
These trails and lessons are only available as web pages.
- Custom Networking — An introduction to the Java platform’s powerful networking features.
- The Extension Mechanism — How to make custom APIs available to all applications running on the Java platform.
- Full-Screen Exclusive Mode API — How to write applications that more fully utilize the user’s graphics hardware.
- Generics — An enhancement to the type system that supports operations on objects of various types while providing compile-time type safety. Note that this lesson is for advanced users. The Java Language trail contains a Generics lesson that is suitable for beginners.
- Internationalization — An introduction to designing software so that it can be easily adapted (localized) to various languages and regions.
- JavaBeans — The Java platform’s component technology.
- JAXB — Introduces the Java architecture for XML Binding (JAXB) technology.
- JAXP — Introduces the Java API for XML Processing (JAXP) technology.
- JDBC Database Access — Introduces an API for connectivity between the Java applications and a wide range of databases and data sources.
- JMX— Java Management Extensions provides a standard way of managing resources such as applications, devices, and services.
- JNDI— Java Naming and Directory Interface enables accessing the Naming and Directory Service such as DNS and LDAP.
- Reflection — An API that represents («reflects») the classes, interfaces, and objects in the current Java Virtual Machine.
- RMI — The Remote Method Invocation API allows an object to invoke methods of an object running on another Java Virtual Machine.
- Security — Java platform features that help protect applications from malicious software.
- Sockets Direct Protocol — How to enable the Sockets Direct Protocol to take advantage of InfiniBand.
- Sound — An API for playing sound data from applications.
- 2D Graphics — How to display and print 2D graphics in applications.
Java Tutorial for Beginners
This java tutorial would help you learn Java like a pro. I have shared 1000+ tutorials on various topics of Java, including core java and advanced Java concepts along with several Java programming examples to help you understand better.
All the tutorials are provided in a easy to follow systematic manner. It is for everyone, whether you are a college student looking for learning Java programming for free, or a company employee looking for a particular code snippet while building an application in Java, this Java tutorial would definitely be useful for you. Happy learning!
Download Java
Download Java from official website: link
Java Introduction
- Introduction to Java
- History of Java
- Features of Java
- C++ vs Java
- JDK vs JRE vs JVM
- Java Virtual Machine(JVM) Basics
- First Java Program
- Variables in Java
- Java Data Types
- Java TypeCasting
- Java Operators
Java Flow Control
Arrays in Java
Java OOPs
- OOPs Concepts
- Constructor in Java
- Java String
- Java StringBuffer
- Java StringBuilder
- Java Inheritance with example
- Method overloading in Java
- Method overriding in Java
- Method Overloading vs Method Overriding
- Polymorphism in Java
- Aggregation in Java
- Association in Java
Java Exception Handling
Collections Framework
Java References
Includes collection of guides on various java classes and methods with examples.
Java Programs
Additional Topics
- Java Varargs
- Java Scanner
- Java I/O
- Java Enum
- Java Annotations
- Java Regex
- Java Multithreading
- Java Serialization
- Java AWT Tutorial
- Java Swing Tutorial
- Java autoboxing and unboxing
- Java 8
- Java 9
What is Java?
Java is an object oriented programming language developed by Sun Microsystems in early 1990 by developers James Gosling, Mike Sheridan and Patrick Naughton.
In 1991 James Gosling and his friends formed a team called Green Team to further work on this project. The original idea was to develop this programming language for digital devices such as television, set-top box, remote etc. Later this idea was dropped and Java is developed for internet programming.
Why learn Java?
Java Programming language has several features which other programming languages don’t have. Java receives updates regularly which makes it more robust and future proof. Lots of new features are added on every Java release. There are several features of Java, some of them are:
- Platform independent: Java doesn’t depend on the operating system. For example, a program written on Mac OS can run on Windows and vice versa.
- Easy to learn: Syntax is easy and there are lot of tutorials available online including the one which you are currently reading.
- Performance: Java is significantly faster than other traditional interpreted programming languages. Compiled java code which is known as byte code is like a machine code, that allows a faster execution. Java uses Just in Time compiler which can execute the code on demand, this allows to execute only the method that is being called, which makes it faster and efficient.