/Java_Notes_and_Programs

Notes and Programs on Java

Primary LanguageJava

Java_Notes_and_Programs

Java Java Logo


Java is a programming language and a platform.

Java is a high level, robust, object-oriented and secure programming language.

Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has a runtime environment (JRE) and API, it is called a platform.


Application


Desktop Applications such as acrobat reader, media player, antivirus, etc.
Web Applications such as irctc.co.in, javatpoint.com, etc.
Enterprise Applications such as banking applications.
Mobile
Embedded System
Smart Card
Robotics
Games, etc.

Types of Java Applications

There are mainly 4 types of applications that can be created using Java programming:

1) Standalone Application

Standalone applications are also known as desktop applications or window-based applications. These are traditional software that we need to install on every machine. Examples of standalone application are Media player, antivirus, etc. AWT and Swing are used in Java for creating standalone applications.

2) Web Application

An application that runs on the server side and creates a dynamic page is called a web application. Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used for creating web applications in Java.

3) Enterprise Application

An application that is distributed in nature, such as banking applications, etc. is called enterprise application. It has advantages of the high-level security, load balancing, and clustering. In Java, EJB is used for creating enterprise applications.

4) Mobile Application

An application which is created for mobile devices is called a mobile application. Currently, Android and Java ME are used for creating mobile applications.


Java Platforms / Editions


There are 4 platforms or editions of Java:

1) Java SE (Java Standard Edition)

It is a Java programming platform. It includes Java programming APIs such as java.lang, java.io, java.net, java.util, java.sql, java.math etc. It includes core topics like OOPs, String, Regex, Exception, Inner classes, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection, etc.

2) Java EE (Java Enterprise Edition)

It is an enterprise platform which is mainly used to develop web and enterprise applications. It is built on the top of the Java SE platform. It includes topics like Servlet, JSP, Web Services, EJB, JPA, etc.

3) Java ME (Java Micro Edition)

It is a micro platform which is mainly used to develop mobile applications.

4) JavaFX

It is used to develop rich internet applications. It uses a light-weight user interface API.


Contents

Contents
History Of Java
Features of Java
Difference Between C++ and Java
Internal of Program
JVM,JRE,JDK
Variables
Data Types
Operators
Keywords
Control Statement
Simple if
If-Else
Ternary Operator
If else if Ladder
Switch
Iterative Statements
Oops Concept
Naming Convenction
Object and Classes
Constructors
Static KeyWord
this keyword
Inheritance
Polymorphism
Method Overloading
Method Overriding
Super
Final keyword
Dynamic Binding
Abstract
Interface
Difference Between Abstract and Interface
Java Encapsulation
Packages
Access Modifiers
Encapsulation
Arrays in Java
String in Java
Enum
Exception Handling
Java Regex
Java Inner Class
Member Inner Class
Anonymous Inner CLass
Local Inner Class
MultiThreading
Life Cycle of Thread
Create Thread
Thread Sleep
run() Method
Join
Naming a thread
Priority Thread
Daemon Thread
Swings
Collections
ArrayList
LinkedList
HashSet
TreeSet
HashMap
TreeMap