Archive for the ‘JAVA’ Category

Java Thread

Posted on November 12th, 2008, by Manoj Shah

A thread is a lightweight process which exist within a program and executed to perform a special task. Several threads of execution may be associated with a single process. Thus a process that has only one thread is referred to     read more…

Tags:

Threading in Java

Posted on November 12th, 2008, by Manoj Shah

Overview of Thread
Threading concept is very important in Java Programming language. A thread is a sequential path of code execution within a program. And each thread has its own local variables, program counter and lifetime.

Life Cycle of A Thread
Life Cycle     read more…

Tags: , , , , , , , , , ,

Multilevel Inheritance in Java

Posted on November 12th, 2008, by Manoj Shah

It is the enhancement of the concept of inheritance. When a subclass is derived from a derived class then this mechanism is known as the multilevel inheritance. The derived class is called the subclass or child class     read more…

Tags: ,

Java Simple Inheritance

Posted on November 12th, 2008, by Manoj Shah

When a  subclass is derived simply from it’s parent class then this mechanism is known as simple inheritance. In case of simple inheritance there is only a sub class and it’s parent class. It is also called     read more…

Tags: ,

OOPs Concepts in Java

Posted on November 12th, 2008, by Manoj Shah

Introduction to OOP
Object Oriented Programming or OOP is the technique to create programs based on the real world. Unlike procedural programming, here in the OOP programming model programs are organized around objects and data rather than actions     read more…

Tags: , , , , , , ,

Object Oriented Programmings in Java

Posted on November 12th, 2008, by Manoj Shah

Java is a object oriented programming and to understand the functionality of OOP in Java, we first need to understand several fundamentals related to objects. These include class, method, inheritance, encapsulation, abstraction, polymorphism etc.

Class – It is the central point     read more…

Tags: , , ,

JFrame Class

Posted on October 27th, 2008, by Manoj Shah

Frames are a powerful feature of swing. You can create a windows for your application by using the resizable border. To create a frame window. you use the constructor of the JFrame class. The constructor accepts the title of the     read more…

How to Take Input in Java ?

Posted on October 19th, 2008, by admin

import java.io.*;
class Add
{
public static void main(String[] args) throws IOException
{
int i,j;
BufferedReader br = new BufferedReader(new inputStreamReader(System.in));
System.out.println(“Enter First Number: “);
i = Integer.parseInt(br.readLine());
System.out.println(“Enter First Number: “);
j = Integer.parseInt(br.readLine());
System.out.println(i + ” + ” +     read more…

JAVA SOURCE CODE

Posted on October 19th, 2008, by admin

Java is an object-oriented programming language with a built-in application programming interface (API) that can handle graphics and user interfaces and that can be used to create applications or applets. Because of its rich set of API’s, similar to Macintosh     read more…