JAVA TUTORIAL

Java Intro Java Features Java vs C++ Java Simple Program Java Applet vs Application JVM,JDK or JRE Java Keywords Java Variables Java Literals Java Separators Java Datatypes Java Operators Java Statements Java Array Java String

CONTROL STATEMENTS

Java If-else Java While Loop Java Do-While Loop Java For Loop Java For-each Loop Java Switch Java Break/Continue

JAVA METHODS

Java Method Java Overloading Java Overriding

JAVA CLASSES

Java OOPs Java Classes/Objects Java Inheritance Java Polymorphism Java Encapsulation Java Abstraction Java Modifiers Java Constructors Java Interface Java static keyword Java this keyword

Java Applet vs Application Program

In this page we will discuss what are the major difference between java applet and java application program

Java Applet

1. Applet can't be executed independtly it can be executed inside a java compitabel container such as a browser or appletviewer

2. It does't main method and does not hava a single point of entry for execution

3. Applet can be embedded in HTML page and download over the internet

4. Applet can't perform R/W to files in local System this is to provide security

Java Application Program

1. Java application program can be executed independtly. Application are executed as command line by java.exe

2. It is contain main method. It has a single point of entry for execution

3. Application hava no special support in HTML for embedding or downloading

4. Application hava no inherent security restrictions and can perform read write to file in local System