EDUCBA

EDUCBA

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

Java Technology Tutorial

Home » Software Development » Software Development Tutorials » Java Technology Tutorial

Java servlet

What is Servlet?

Svelte Components

java collection cheat sheet

java collection hierarchy

java collection api

Servlet Life Cycle

Servlet Filter

Session in Servlet

Session Bean

Entity Beans

Entity Framework Insert

JDB

Java Servlet Interview Questions

Servlet Types

Servlet Interview Questions

JSP

JSP Page

JSP if else

JSP property

JSP request

JSP format

What is JSP?

JSP in Java

JSP Life Cycle

JSP Architecture

JSP Objects

Custom Tags in JSP

JSP Tag Library

JSP Directives

JSP Scripting Elements

JSP foreach

JSP Checkbox

JSP Include

JSP Taglib

JSP Scriptlet

JSP Declaration

JSP Redirect

JSP Forward

JSP Filters

JSP Formatter

JSP Expression

JSP File

Cookies in JSP

JSP Login Page

JSP Error Page

JSP Alert

JSP Implicit Objects

JSP Interview Questions

EJB

What is EJB?

EJB Architecture

EJB Interview Questions

Java awt

What is AWT in Java?

Java ActionListener

Java AWT Controls

Java MouseListener

Cron Scheduler in Java

JavaMail Api

Robot Framework with Java

Java Mail Properties

Java collection set

Java WindowListener

Java KeyListener

Java ItemListener

ScrollBar in Java

JSF

What is JSF?

JSF Life Cycle

JSF Components

JSF Validation

JSF Interview Questions

JMeter

What is JMeter?

Install JMeter

JMeter Testing

JMeter Thread Group

JMeter Assertion

JMeter Loop Count

JMeter Distributed Testing

JMeter BeanShell

JMeter Response Assertion

JMeter WebSocket

JMeter User-Defined Variables

JMeter Aggregate Report

JMeter Version

JMeter Variables

Timers in JMeter

JMeter Interview Questions

Java 7, Java 8 and Java 9

Java 7 Features

What's New in Java 8?

Java 8 Features

How to Install Java 8

Java 8 Collections

Java 8 Collectors

Optional Class in Java 8

Java 8 Stream

Java 8 Interview Questions

Java 9 Features

Maven

What is Maven?

Maven Life Cycle

What is Maven Plugins?

javax mail maven

Maven Assembly Plugin

Maven Jar Plugin

Maven Plugins

Maven exec plugin

How to Install Maven?

Maven Commands

JUnit Maven Dependency

Maven Dependency Scope

Maven Exclude Dependency

Maven POM File

Maven Repository

Maven Shade Plugin

Maven Eclipse Plugin

Maven Deploy

Maven Skip Test

Maven Archetype

Maven Phases

Maven Surefire

Jetty Maven plugin

Maven Repository Spring

Maven Central Repository

Maven Interview Questions

JUnit

JUnit Annotations 

JUnit Jupiter

JUnit assertEquals

JUnit Fail

JUnit Disable Test

JUnit Assert

JUnit in Maven

JUnit 5 Gradle

JUnit XML

JUnit XML Format

JUnit Eclipse

JSP getParameter

JUnit Test Suite

JUnit Parameterized Test

JUnit assert exception

JUnit Code Coverage

JUnit Jupiter

JUnit Rule

JUnit version

Junit Interview Questions

JPA

What is JPA?

Java Persistence API

JPA Annotations

JAX-RS

What is ORM?

JPQL

JSTL

JSTL

JSTL Tags

JSTL replace

J2EE

What is JEE?

J2EE Framework

J2EE Architecture

Struct

What is Struts?

Struts Framework

Struts Architecture

Ant

Apache Ant

RESTful Services

Applet Life Cycle

Apache POI Dependency

ES6

ES6 Arrow Function

ES6 filter

ES6 Generators

ES6 Object Destructuring

ES6 Default Parameters

ES6 Cheat Sheet

ES6 Template Strings

ES6 Destructuring

ES6 reduce

ES6 Set

ES6 New Features

JDBC

JDBC Insert

JDBC PreparedStatement

JDBC MySQL Driver

JFreeChart

JDBC Update

JDBC template

JDBC transaction

JDBC Types

JDBC Batch Insert

JDBC getConnection

JDBC Connector

JDBC datasource

JDBC fetch size

JDBC resultset

JDBC Statement

Java Technology Tutorial

A high-level programming language developed in 1995 by Sun Microsystems is Java. Java is supported by a wide variety of platforms such as the Mac operating system, Windows operating system, different versions of Unix, etc. The source code in a java programming language is written in text files and the text files end with the .java extension.

Then the javac compiler compiles the source files into .class files. The .class files contain codes in bytecodes. The machine language of java virtual machine is bytecodes. The application is then run by the java launcher with an instance of a java virtual machine. Java is a simple language, object-oriented and dynamic.

The necessity to learn Java

The main reasons to learn java are:

1. Object-Oriented: Java is based on an object model and it can be easily extended. Everything is an object in Java.

2. Platform independent: When the source code is compiled by the java compiler, the compilation is not done into a platform-specific machine-like in other programming languages such as C, C++, etc. But it is compiled into bytecodes which is independent of the platform. Regardless of the platform java is being run on, the bytecode is interpreted by the Java Virtual Machine (JVM) after it is distributed over the web.

3. It is a simple language: Java programming language is designed in such a way that it is easy to learn.

4. Java is secure: Java programming language has a security feature through which tamper-free, virus-free systems are developed.

5. Java has a neutral architecture: The object file format generated by the java compiler is architecture-neutral because of which the compiled code can be executed on many processors.

6. Java is portable: Because java is architecture-neutral and the specification does not contain aspects that are implementation-dependent making java portable.

7. Java is robust: The compile-time errors and run-time errors are checked by java to eliminate error-prone situations.

Applications of Java

The applications of Java are:

1. Java is the multithreaded programming language: Programs can be written to perform the tasks simultaneously using a multithreaded feature in java. The developers use a multithreaded feature of java to construct interactive applications.

2. Java is interpreted language: The bytecode in java is not stored anywhere and it is translated into machine instructions. The linking is a lightweight and incremental process; hence the development process is faster and analytical.

3. Java provides high performance: Java provides high performance because of the use of just in time compilers.

4. Java is distributed: The internet’s distributed environment is supported by java.

5. Java is dynamic: Java adapts to any environment even if it's evolving. Hence it is dynamic when compared to other programming languages like C, C++, etc.

Example

Java program to print “This is a java program”

public class program
{
public static void main(string []args)
{
System.out.println(“This is a java program”)
}
}

Prerequisites to learn Java

There are no prerequisites as such to learn java but a good understanding of computer programs and programming languages is necessary.

Target Audience of this tutorial

Beginners can refer to this tutorial to understand the basics of Java. This tutorial is helpful for people who want to pursue a career in the field of Java. This tutorial is good learning for all other readers.

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

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

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
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.

Let’s Get Started

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.

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

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.

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