|
|
What is Java all about? |
|
|
Programming with Java |
|
|
Including Java Applets
on Your Web Pages |
|
|
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.
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. |
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);
}
}
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.
|
|