Androidberry logo
AndroidBerry Home
  • Learn Java
  • Java Programs
  • Androidberry Facebook connect
  • Androidberry twitter connect
  • Androidberry Google Plus connect

Java Tutorials


Basic Introduction

What is Java?
Java Features
Java vs Other Languages
Java on Internet
Java Components
Java First Program
Java Commandline argument
Java Constants
Java Variables
Java Types of Variables
Java Datatypes
Java Getting Input from User
Java Typecasting
Java Operators
Java Math Functions

Decision Making

Java if statement
Java if-else statement
Java nested if-else
Java else-if ladder
Java Switch case statement
Java Nested Switch Case
Java Ternary/Conditional operator

Looping

Java while loop
Java do-while loop
Java for loop
Java Enhanced loop/for each loop
Java Labelled for loop
Java Nesting of loops
Java Break and Continue

Classes and Objects

Inheritance

Interfaces

Packages

Exception Handling

Multithreading

Java Applets

Graphics Programming

More on Java

Java Programs
Java Keywords Dictionary
Java Interview Questions

Java on Internet


Java on Internet Networking

Why java is so popular on the internet?

The evolution of internet helped to make a java as leading programming language.

Over the network there are two categories of objects that are transmitted between the server and client computers:

Active Ojects :

A self-executing program is dynamic data. This data is called as active agent on the client computer.
Active type of object can be transmitted to your computer: a dynamic, self-executing program.

Passive Objects :

these objects are in the form of information and active programs. When an email is viewed it is viewing the passive data. A downloaded program until it is executed is called as passive data.

Ex-when you read your e-mail, you are viewing passive data. Even when you download a program, the program's code is still only passive data until you execute it.

Java has best performance on internet because of

  1. Applets
  2. Security
  3. Portablity

Java Applets

A Java applet is a small dynamic Java program that can be transferred via the Internet and run by a Java-compatible Web browser.

in the early days of the web, applets were used to deliver the kind of rich browser functionality now done via Flash, JavaScript, or HTML5.

Example of Applet

What is the purpose of using java applets?

  1. Drawing the shapes on applet.
  2. Creating animated shapes
  3. Playing audio and video files
  4. Making HTML user forms

Security

Java is protecting users from programs downloaded from sources across a network.

The Java compiler catches more compile-time errors than other languages (like C++) because it will compile programs that produce unpredictable results.

In java compiler translates the source code into byte code, no any virus will infect the byte code. Even if the virus entered into byte code the JVM doesn't understand it, so JVM keeps these instructions as it is.


Portablity

Portability means Write Once and Run Anywhere(WORA).Portability enables an application to be run of any platform/OS without changing the code.

When we compile a java program a .class file is generated .This is known as byte code. We can run this .class file in any System with JVM.


<< Previous Next >>

See Also

All Java Programs
Java Keywords
Java Interview Questions

AndroidBerry Support

About us
Contact us
Suggest us
Questions?

Follow us

Androidberry FacebookFacebook
Androidberry TwitterTwitter
Androidberry GooglePlusGoogle+
Back to top
Androidberry Name Logo