Untitled Document



 Introduction to HTML
 Structure of HTML
 Creating First HTML  Document
 Building Your HTML  Document
 Tables
 Frames
 Including Images into  Document
 Including Multimedia
 Developing HTML  FORMS
 Using Style Sheet
 Understanding URLs
 Using JavaScript
 Using Java
 What is Java?
   Using Java
   What is Java?
   The Java Language
 Java Applets
 Programming with Java
 
 Programming with  Java
 The Java  Development Kit
 Including Java Applets  on Your Web Pages
 
   The <APPLET> Tag
   The <PARAM> Tag
 Including Java  Applets on your Web  Pages

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




  Using Java > What is Java?

  Using Java

What is Java all about?
Programming with Java
Including Java Applets on Your Web Pages

  What is Java?

The Java Language
Java Applets

Java is a platform independent programming language, from Sun Microsystems. Java provides a powerful new set of tools, with which developers can create Internet and non- Internet based applications. Java has more features than any other programming language.

  The Java Language

Java is an object-oriented programming language (OOPS) similar to C++. Unlike C++, however, Java was designed with one unique capability. Java was designed so that you can write a program once and have it run on different computer platforms. Java programs are complied into a special form (called "bytecode"), which create cross-platform executable files.

Features of JAVA

Java is an Object Oriented language.
Java applications are portable across multiple platforms.
Java applications are robust. Since, Java run-time system manages memory for you.
Java run-time system has built-in protection against viruses and tampering.
Java provides a highly dynamic run time environment.
Java supports multi-threading concept.

  Java Applets

A Java applet is a program that can be included inside an HTML page. Much of Java's popularity has come because of Java capable World Wide Web (WWW) browsers and their support for applets. Applet is a small program that can reside in a Web page and can be used to create dynamic, interactive Web designs and it is used to extend capabilities of the web browser. Applets are written in Java language and it can be viewed in any browser that supports Java. Java applets are more security-conscious than Java applications. There are many restrictions on the behavior of applets. A Java applet requires a browser or applet viewer to run.

Example :

import java.awt.*;
import java.applet.*;

public class Firstapp extends Applet
{
public void paint(Graphics g)
{
    String s=getParameter("Employee Name");
    String s1=getParameter("Employee ID");
    g.drawString(empnm,5,40);
    g.drawString(empid,5,60);
}
}

Back Next


Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




17, Vadsarvala Nivas, 65-A, J. Nehru Road, Mulund (W), Mumbai - 400 080 INDIA
Tel : 91-22-21645588, 91-22-21640585 Fax : 91-22-21641545
Email : ionline@vsnl.com
© Image Online 2001-2003