EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

Java Tutorial

Home Software Development Software Development Tutorials Java Tutorial

Basic

What is Java?

What is JNDI in Java?

What is JNI in Java?

What is Java Interface?

What is Java SE?

What is JavaBeans?

TreeSet in Java

Tree traversal Java

Install JDK

Java Programming Language Features

Applications of Java

Versions of Java

Java Virtual Machine

Pagination in Java

Circular queue Java

Java Microservices

Java Micro Edition

compareTo Java

Java GUI Framework

Unboxing in Java

Java Method References

JSP Usebean

Java Listiterator

Java async

Java dumps

Java async await

Circular linked list in java

Java Packages

Java Package Example

Default Package in Java

Variables in Java

Instance Variable in Java

Object in Java

Java Commands

Iterator in Java

Multiple Catch Block in Java

Java Booleans

Conversion in Java

Type Conversion in Java

Servlet Architecture

String in Java

Java String Trim

Java String to Lowercase

StringTokenizer in Java

What is JDK?

What is JVM?

What is J2EE?

J2EE Technologies

JSF Converters

Java heap dump

Linear search in Java

ATM Program in Java

Observable in Java

Coupling in Java

Java Literals

Composition and Aggregation in Java

Duck Number in Java

Data Types in Java

Primitive Data Types in Java

Non-Primitive Data Types in java

Java User-defined Data Types

Enumset in Java

Cheat Sheet Java

IntelliJ Cheat Sheet

Frameworks

Best Java Compilers

Java XML Parser

Frameworks In Java

Servlet RequestDispatcher

Testing Frameworks for Java

Java Monitoring Tool

Best Java IDE

Java Compilers

Java Tools

Java Deployment Tools

Types of Memory in Java

Memory Allocation in Java

Java References

Java Type Inference

Java Boolean to String

Java String to Float

java.net Package

Java Formatter

sprintf Java

Java Identifiers

Operators

Java Operators

Arithmetic Operators in Java

Unary Operators in Java

Logical Operators in Java

Comparison Operators in Java

Assignment Operators in Java

Java String Operators

Conditional Operator in Java

Boolean Operators in Java

Keywords

Java Keywords

this Keyword in Java

Static Keyword in Java

Native keyword in Java

Throw Keyword in Java

Throws Keyword in Java

What is public in Java?

Private in Java

Protected Keyword in Java

Final Keyword in Java

Control statements

Control Statement in Java

Else-If Statement in Java

Nested if Statements in Java

Continue Statement in Java

Break Statement in Java

Case Statement in Java

Loops

Loops in Java Programming

For Loop in Java

While Loop in Java

do-while loop in Java

For-Each loop in Java

Nested Loop in Java

Inheritance

Inheritance in Java

Single Inheritance in Java

Multilevel Inheritance in Java

Hierarchical Inheritance in Java

Hybrid Inheritance in Java

Constructor and destructor

Constructor and Destructor in Java

Constructor in Java

Destructor in Java

Copy Constructor In Java

Static Constructor in Java

Private Constructor in Java

Array

Arrays in Java Programming

2D Arrays in Java

2D ArrayList in Java

3D Arrays in Java

2D Array Sorting in Java

Multidimensional Array in Java

Array Methods in Java

Print 2D Array in Java

Print Array in Java

String Array in Java

Associative Array in Java

Dynamic Array in Java

Java Array Iterator

Java array.push

Sort String Array in Java

Radix Sort Java

Sorting

Sorting in Java

Sorting Algorithms in Java

DFS Algorithm in Java

Merge Sorting Algorithms in Java

Java Vector Sort

Quick Sorting Algorithms in Java

Selection Sort In Java

Heap Sort In Java

Bubble Sort in Java

Bucket Sort in Java

Merge Sort In Java

Quick Sort in Java

Insertion Sort in Java

Sort String in Java

Program for Merge Sort in Java

Shell sort in java

Functions

String Functions in java

Math Functions in Java

Hashing Function in Java

Regular Expressions in Java

Recursion in Java

Java Callback Function

Java Call by Value

Java Call by Reference

HashMap in Java

Java String Concatenation

Java String Equals

Compare two Strings in Java

Virtual Function in Java

Java newInstance()

enumeration() in Java

split() Function in Java

trim() Function in Java

Replace() Function in Java

substring() Function in Java

Strictfp in Java

String Reverse Function in Java

Java String getBytes

Java Replace Char in String

Shuffle() in Java

addAll() in Java

File Handling in Java

FileReader in Java

FileWriter in Java

Java Stream Filter

Java FileInputStream

replaceAll() in Java

repaint in Java

copy() in Java

Java max()

Java min()

Java Timestamp

Java URLConnection

Java StringJoiner

Java KeyStore

Java InetAddress

Java getMethod()

swap() in Java

Deadlock in Java

Range in Java

Java Repository

Java Dictionary

Calculator in Java

Mutable String in Java

Mutable vs Immutable Java

Native Methods in Java

Internationalization in Java

settimeout Java

StringBuffer Class in Java

Java ArrayList Class

Properties Class in Java

String Class in Java

Java URL Class

Java Vector Class

Polymorphism

What is Polymorphism?

Polymorphism in Java

Runtime Polymorphism in Java

Overloading and Overriding in Java

Overloading in Java

Method Overloading in Java

Function Overloading in Java

Overriding in Java

Method Overriding in Java

Final Keyword in Java

Super Keyword in Java

instanceOf in Java

Java Authenticator

Java Alias

Collections

What is TreeMap in Java?

Sorting in Collection

Java Garbage Collection

Java Collections Class

Java collection map

Java Collection reverse

Java Collection Methods

Java Collection Generics

Java Collection Framework

Java Collection Stream

Hashtable in Java

Java EnumMap

Java LinkedHashMap

Reverse Linked List in Java

LinkedList in Java

Skip List Java

Java Collection Types

Java Collection Sort

Java Collection to List

Date Time

java.util.Date

Java Clock

Java Instant

Java LocalTime

Local Variable in Java

Java ZoneId

Java ZoneOffset

Java varargs

Java LocalDate

Java OffsetDateTime

Java LocalDateTime

Java Duration

Java DayOfWeek

Java Period

Timer in Java

Java Countdown Timer

Java TimeZone

Java Date Picker

Advanced

Java 9 Modules

Java Enum

Java Garbage Collectors Types

Servlet Life Cycle Methods

Sending Email Attachments in Java

Text File in Java

Methods in Java

Java Testing

Java Unit Testing

Java Integration Testing

Java Testing JUnit

Java for Automation Testing

Java Sending Email

Forwarding Email in Java

Deleting Email in Java

Receiving Email in Java

Inner Class in Java

Cohesion in Java

Abstraction in Java

Java Pop

Java Static Import

Graphics Class in Java

Reflection in JAVA

Autoboxing in Java

Java 10 Features

Java Coroutines

Java Predicate

Anonymous Inner Class in Java

Counting sort in java

Authentication Java

Java Stack Methods

Java Static Nested Class

Synchronized Block in Java

Static Synchronization in Java

Abstract Class in Java

Access Modifiers in Java

Non Access Modifiers in Java

Bit Manipulation in Java

Encapsulation in Java

Singleton Class in Java

Wrapper Class in Java

Nested Class in Java

Java Matcher

Java Pattern Class

Java File Class

Final Class in Java

Stack Class in Java

Anonymous Class in Java

StringBuilder Class in Java

StringBuffer in Java

Java Directories

JSON in Java

Object Class in Java

What is Multithreading in java

Java Thread Priority

Java thread dump

Daemon Thread in Java

Java Thread Pool

Java ThreadLocal

Association in Java

Queue in Java

Deque in Java

Functional Programming in Java

ClassLoader in Java

Interface in Java

Functional Interface in Java

Java Queue Interface

PriorityQueue in Java

Collection Interface in Java

Object Cloning in Java

Java.net URI

Java Assertion

Vector in Java

Applets in Java

Template in Java

Java Shutdown Hook

2D Graphics in Java

Autoboxing and Unboxing in Java

Comparable in Java Example

Java Annotations

Java User Input

Serialization in Java

Dynamic Binding in Java

Java Parse String

Java Adapter Classes

Immutable Class in Java

String Initialization in Java

String Manipulation in Java

ThreadGroup in Java

Java Iterate Map

Java IO

Java OutputStreamWriter

DataInputStream in Java

Java BufferedReader

Java BufferedWriter

Java BufferedInputStream

Java ByteArrayInputStream

Java ByteArrayOutputStream

Java RandomAcessFile

Java PrintStream

Java PrintWriter

Java URLEncoder

Java Scanner Class

Java Console

Java Runtime class

Java Base64

Java Base64 Encoding

Java Base64 Decode

Finalize in Java

Java Parallel Stream

Java Getter Setter

Set Interface in Java

How to Connect Database in Java?

How to Create Webservice in Java?

Java Web Service Example

Composition in Java

BinarySearch() in Java

Exception Handling in Java

Types of Exception in Java

Java NullPointerException

Java NoSuchElementException

Java ConcurrentModificationException

Java ArithmeticException

Java IOException

Java RuntimeException

NumberFormatException in Java

Java ArrayIndexOutOfBoundsException

Java ClassNotFoundException

Java FileNotFoundException

Java InterruptedException

Java User Defined Exception

Event Handling in Java

Finally in Java

Java Default Method

Java Locale

Tuples in Java

Java ServerSocket

Java Lambda Expressions

Java DatagramSocket

DataSet Java

Java Animation

Static Method in Java

AVL tree java

Avro

Avro Tools

Avro File

Avro Schema Registry

MISc

What is Synchronization in Java?

Concurrency in Java

What is Design Pattern in Java?

What is Generics in Java?

What is API in Java?

Binary Tree in Java

Data Structures in Java

Trie Data Structure in Java

Binary Search Tree in Java

AWT Components in Java

AWT Controls in Java

Volatile Keyword in java

Struts in Java

What is Java Garbage Collector?

What is Java Inheritance?

Thread Life cycle in Java

Object Oriented Programming in Java

Java App Development

Java Naming Conventions

Java hashCode()

HashSet in Java

Java Transient

JSTL In Java

Comparable in Java 

Aggregation in Java

Java Email Validation

Java Email

EJB in Java

@deprecated in Java

Java @Inherited

@SuppressWarnings in Java

Java @Override

Inorder Traversal Java

Java Doubly Linked List

Java Testing Tools

Java Testing Private Methods

Metadata in Java

Servlet in Java

Servlet Methods

Servlet Container in Java

Programs

Patterns in Java

Star Patterns in Java

Number Patterns in Java

Swapping in Java

Factorial in Java

Fibonacci Series in Java

Reverse Number in Java

Palindrome in Java

Armstrong Number in Java

Squares in Java

Square Root in Java

Special Number in Java

Anagram Program in Java

Strong Number in Java

Random Number Generator in Java

Matrix Multiplication in Java

Socket Programming in Java

Prime Numbers in Java

String Comparison in Java

Leap Year Program in Java

Weka in Java

Perfect Number in Java

Smith Number in Java

Reverse String in Java

Design Patterns in Java

IntelliJ Version

Happy Numbers in Java

TimeStamp to Date in Java

Interview Questions

Java Interview Questions

Java Inheritance Interview Questions

Java EE Interview Questions

Java Developer Interview Questions

Java Collection Interview Questions

Java Interview Question on Multithreading

Java String Interview Questions

Java Testing Interview Questions

Java Multi-threading Interview Questions

Multithreading Interview Questions in Java

Java Spring Interview Questions

Data Structure Java Interview Questions

Java Web Services Interview Questions

Java Tutorials

Java is a high-level programming language developed by the sun microsystem. First, it was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike in the year 1991. Initially, it was named “Oak,” and it was renamed “Java” in 1995. Java is a highly object-oriented, platform-independent, and secure programming language.

One of the most important factors in the java programming language is its Bytecode conversion. Byte codes in Java are a highly optimized set of instructions designed to be executed by Java Virtual Machine. JVM works as an interpreter for the byte code.

We require JDK (Java Development Kit) to use java programming language, including JRE (Java Runtime Environment).

Why do we need to learn Java?

In today’s modern technology of software development java programming language provides greater advantages. Following some features of Java, languages give some basic ideas about why to learn Java.

  • Simple: Java is designed in such a way that a programmer can easily learn and use it effectively. If a programmer is aware of some basics of Object-Oriented Programming, learning java will be easier.
  • Object-oriented: In Java, everything is an Object. Java was not designed to be source code compatible with any other languages. This benefits a clean, usable, and pragmatic approach to objects. It can easily extend since Java is based on the object model.
  • Platform independent: Unlike other programming languages, java code is not converted to platform-specific Machine language. Rather java code is converted into platform-independent Bytecode, and JVM interprets it.
  • Multithreaded: Java meets the requirement of creating interactive and networked programs. Java supports multithreaded programming that allows writing programs that perform various tasks simultaneously.
  • Robust: Running java program on multiplatform environment and executes reliably. Java has a strictly typed language. Therefore, it checks java code at compile time and runs time.
  • Architecture neutral: Java designer’s main goal was “write once, run anywhere, anytime. The changes in the Platform or in the machine do not affect the java code.
  • Distributed: Java is designed to run on a distributed environment or Internet because it handles TCP/IP protocol, and it also supports Remote Method Invocation.

Applications of Java

Java is used in various application developments following are some real-time applications of Java.

  • Desktop GUI applications: Java provides the facility to develop Graphical User Interface-based desktop applications by various means like AWT (Abstract Window Toolkit), Java Swings, and JavaFX. AWT consists of various components like menus, buttons, and text boxes. Etc…JavaFX is a media package that provides 3D graphics.
  • Mobile applications: Advanced java technology - Java 2 Micro Edition is a cross-platform technology that provides to develop of applications that run on any platform i.e., Java-supported devices like mobile phones or smartphones. And recent technology of android is also scripted in Java with other APIS.
  • Embedded System: Embedded electronic devices ranging from tiny chips to large electronic gadgets like refrigerators, TVs, and large electromechanical devices are coded in Java.
  • Enterprise Applications: Java Enterprise Edition supports to development of enterprise-level applications like banking. JEE provides APIs and a runtime environment for scripting.
  • Web Applications: Java Advance technologies like Servlets, JSP, and Struts support the development of web applications. Using these technologies, a programmer can develop highly secure web applications that are easy to code.

Simple Java Program

Code:

public class SimpleExample1
{
public static void main(String[] args)
{
int a = 10;
System.out.println("Hello……EDUCBA");
System.out.println("Value of a = "+ a);
}
}

Output:

Java Tutotrial

Prerequisite

To learn java programming language programmer should have prior basic knowledge of any programming language such as C. Since Java is a purely object-oriented language, basic knowledge of any object-oriented language like C++ is necessary, and it becomes easier to understand Java. The only programmer needs to understand the basic syntax and structure of the java programming language.

Target Audience

Starting from the java standard edition, it's a greater beginning for java programmers Standard Edition support to develop, ranging from Desktop applications to embedded systems. Advanced java version i.e. J2EE technologies, support to develop Enterprise level applications, web applications, gaming applications, etc….

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Special Offer - All in One Software Development Bundle (600+ Courses, 50+ projects) Learn More