Friday, 10 July 2015

creating Applet in Java
Applet is one of the most Important Feature of Java. As because of introduction of java the functionality of Web Browser is Increases
and servlet increases the Functionality of server this is the main difference between Applet and Servlet...
The Applet viewer is the window in which we see the output of the Applet Program

PROGRAM IN APPLET


package javaapplication20;
import java.applet.*; 
import java.awt.*;
import java.io.*;
public class JavaApplication20  extends Applet
{                                                                         
public void paint(Graphics g)
{
    g.drawRect(200, 100, 400, 200);
    g.fillRect(200, 100, 400, 200);
    Font f=new Font("arial",Font.BOLD|Font.ITALIC,18);
    g.setFont(f);
    g.setColor(Color.white);
    g.drawString("WELCOME TO THE WORLD OF JAVA!!!", 250, 200);
}

                                            OUTPUT


 

Sunday, 1 March 2015

write once run anywhere!!

Java can run on many different operating systems. This make Java platform independent.
Java does this by making the Java compiler turn code into Java bytecode instead of machine code. This means that when the program is executed, the Java Virtual Machine interprets the bytecode and translates it into machine code.
This capability of being able to develop software on one platform and running it on other platforms is called "cross-platform capability".
write once run anywhere!!

Saturday, 28 February 2015

Programming in java

In Java programs .....class name and the name of programme remains the same .
Hello.java
Output using command prompt

Friday, 27 February 2015

About Java

Java is a general-purpose computer programming language that is concurrent, class- based, object-oriented.
● Java is a programming language. It was first developed by James Gosling at Sun Microsystems , which is now a part of  Oracle  Corporation.
●It was released in 1995 as a part of Sun Microsystems Java platform. 
●The language has developed much of its syntax from C and C++.
Java logo

●Java was originally called OAK, and was designed for handheld devices and set-top boxes.
●A Oak was unsuccessful so in 1995 Sun changed the name to Java and  modified the language to take advantage of the burgeoning World Wide Web.