
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples

Java Tutorial
Java Tutorial
Java is popular high-level, class-based object oriented programming language 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. Java is used to develop numerious types of software applications like Mobile apps, Web apps, Desktop 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.
Our Java Tutorial has been prepared by well experienced Java Programmers to help the Software Engineers understand the basic to advanced concepts of Java Programming Language. After completing this tutorial, you will find yourself at a moderate level of expertise in Java, from where you can take yourself to the next levels.
Java Online Compiler
This tutorial provides enough number of examples to explain to concepts. To compile and execute your examaples in your browser itself, we have provided Java Online Compiler. You can Edit and Execute almost all the examples directly from your browser. Try to click the icon to run the following Java code to print conventional "Hello, World!".
Below code box allows you to change the value of the code. Try to change the value inside println() and run it again to verify the result.
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 } }
Why to Learn Java?
Java is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Software Development Domain. If you will conduct a servey about the best programming language, Java is sure to come up.
Java is fairly easy to learn, so if you are starting to learn any programming language then Java could be your great choice. Thereâs also plenty of Java tools that make it easy for developers and beginners to use. There are many other good reasons which makes Java as the first choice of any programmer:
- Java is Open Source which means its available free of cost.
- Java is simple and so easy to learn
- Java is much in demand and ensures high salary
- Java has a large vibrant community
- Java has powerful development tools
- Java is platform independent
Java Applications
The latest release of the Java Standard Edition is Java SE 18. With the advancement of Java and its widespread popularity, multiple configurations were built to suit various types of platforms. For example: J2EE for Enterprise Applications, J2ME for Mobile Applications.
The new J2 versions were renamed as Java SE, Java EE, and Java ME respectively. Java is guaranteed to be Write Once, Run Anywhere.
- Multithreaded − With Java's multithreaded feature it is possible to write programs that can perform many tasks simultaneously. This design feature allows the developers to construct interactive applications that can run smoothly.
- Interpreted − Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light-weight process.
- High Performance − With the use of Just-In-Time compilers, Java enables high performance.
- Distributed − Java is designed for the distributed environment of the internet.
- Dynamic − Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.
Java Online Quizzes
This Java tutorial helps you prepare for technical interviews and certification exams. We have provided various quizzes and assignments to check your learning level. Given quizzes have multiple choice type of questions and their answers with short explanation.
Following is a sample quiz, try to attempt any of the given answers:
Q 1 - The Java programming language was developed by which of the following :
Answer : C
Explanation
Java was developed by James Gosling at Sun Microsystems and it was released in May 1995 as a core component of Sun Microsystems' Java platform.
Start your online quiz Start Java Quiz.
Java Jobs & Opportunities
Java is very high in demand and all the major companies are recruiting Java Programmers to develop their Desktop, Web and Mobile applications.
Today a Java Programmer with 3-5 years of experience is asking for around $120,000 annual package and this is the most demanding programming language in America. Though it can vary depending on the location of the Job. Following are the great companies who are using Java and they need good Java Programmers:
- Microsoft
- IBM
- Amazon
- Netflix
- Uber
- JetBrains
- Many more...
So, you could be the next potential employee for any of these major companies. We have developed a great learning material for Java which will help you prepare for the technical interviews and certification exams based on Java. So, start learning Java using this simple and effective tutorial from anywhere and anytime absolutely at your pace.
Who Should Learn Java
This Java tutorial will help both students as well as working professionals who want to develop applications using Java technologies like banking systems, support systems, information systems, web websites, mobile apps or personal blogs etc. We recommend reading this tutorial, in the sequence listed in the left side menu.
Today, Java is one of the most demanding programming language and so it becomes essential language to learn for anyone involved in the software applicatipon development process including Software Developers, Software Designers, and Project Managers etc.
Prerequisites to Learn Java
Though we have tried our best to present the Core Java concepts in a simple and easy way, still before you start learning Java, it is assumed that the readers have a reasonable exposure to any programming environment and knowledge of basic concepts such as variables, commands, syntax, etc.
Frequently Asked Questions about Java
There are some very Frequently Asked Questions(FAQ) about Java, this section tries to answer them briefly.
Java supports abstraction, encapsulation, polymorphism, and inheritance.. These are 4 major theoretical principles of object-oriented programming. But Java also works with three further OOP concepts: association, aggregation, and composition.
(a) Java is free and open source (b) Java is community driven and has expert leadership (c) Java is fast and high-performance. (d) Java is easy to learn. (e) Java is statically typed (f) Java is object-oriented. (g) Java supports functional programming.
Learning style, and dedication to the amount of time you can spend each day affect a lot. However, on average, it takes around 6 to 12 months to learn Java programming.
The Java language is easily extensible because it is based on an object model. Platform-dependent. Unlike many other programming languages, Java is compiled, not into a platform-dependent machine, but into platform-independent byte code.
Python and Java are two of the most popular programming languages among software programmers. Java is generally faster and more efficient than Python because it is a compiled language where as Python is an interpreted language and has simpler, more concise syntax than Java.
Here are the summarized list of tips which you can follow to start learning Java.
- First and the most important is to make your mind to learn Java.
- Install Java Virtual Machine and Java Compilers on your computer system.
- Follow our tutorial step by step starting from very begining.
- Read more articles, watch online courses or buy a book on Java to enhance your knowledge in Java.
- Try to develop a small software using Java and other technologies like MySQL if you want to make use of a database.
Java provides following technologies to help Web Development
- Java Servlet API.
- JavaServer Pages Standard Tag Library.
- JavaServer Faces Technology.
- Java Message Service API.
- JDBC API.
- Java Persistence API.
- Java Naming and Directory Interface.
- NetBeans IDE.
You can use our simple and the best Java tutorial to learn Java and Advanced Java. We have removed all the unnecessary complexity while teaching you Java concepts. You can start learning it now Start Learning Java.
Java Questions & Answers
You can explore a set of Java Questions and Answers at Java Questions & Answers