JAVA

Inbuilt Classes in Java

Built-In Classes of Primitive Types   Introduction To provide an enhanced support for primitive types, a class was created for each of them. Character Values To support characters, a...

Basics of Java

Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems’ Java platform (Java 1.0...

Multithreaded programming in java

Multithreading is the concept of “doing many task at a time”. In java, multithreading is mainly used in networking, where two or more nodes share the same resource and...

The Applet CLASS

Every applet is an extension of the java.applet.Applet class. The base Applet class provides methods that a derived Applet class may call to obtain information and services from the...

A "Hello, World" Applet

The following is a simple applet named HelloWorldApplet.java: import java.applet.*; import java.awt.*; public class HelloWorldApplet extends Applet { public void paint (Graphics g) { g.drawString ("Hello World", 25, 50);...

A “Hello, World” Applet

The following is a simple applet named HelloWorldApplet.java: import java.applet.*; import java.awt.*; public class HelloWorldApplet extends Applet { public void paint (Graphics g) { g.drawString ("Hello World", 25, 50);...

Life Cycle of an Applet

Four methods in the Applet class give you the framework on which you build any serious applet: init: This method is intended for whatever initialization is needed for your...

Applet Basics

An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java application because it has the entire Java API at...

Dynamic method Dispatch

We know that polymorphism is the feature of object oriented programming. In c++, there was a concept of virtual function and pure virtual function through which we can gain...

String Buffer class in java

String is immutable. To¬† overcome this issue, java supports a unique class i.e. StringBuffer class:   Unlike Strings objects of type StringBuffer can be modified over and over again...