Just Do Study - IGNOU Assignments Site: Java
Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Thursday, 11 October 2012

History of JAVA

Java is a programming language and a platform independent.

Let's see some points that describes the history of java.

* James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.
* Originally designed for small, embedded systems in electronic appliances like set-top boxes.
* Initially called Oak and was developed as a part of the Green Project.
* In 1995, Oak was renamed as "Java". Java is just a name not an acronym.
* Originally developed by James Gosling at Sun MIcrosystems(which is now a subsidiary of Oracle 
    Corporation) and released in 1995.
* JDK 1.0 released in January 23, 1996.

Procedure of Software Developing


Let's take an Example

Step -1
An Architect in an Building Development, It first create Prototype
(Dummy Model).

Same in Software Company having an Architect who develop the skeleton
of the Software (Dummy Model) , by using
Interfaces.

Step - 2

Saturday, 6 October 2012

Java Tutorials: Finalize and Garbage Collector Example

class TT extends Object
{
 TT()
 {
 System.out.println("TT Class Default Constructor ");
 }
 protected void finalize()
 {
 System.out.println("TT Object Going to Dead....");
 }
}
 public class SystemClassDemo3 {
 public static void main(String args[])
 {
 TT obj = new TT(); // Strong Reference
 System.gc();
 System.out.println("Now I am Going to Null the Obj ");
 obj = null;
 System.gc();
 System.runFinalization();
 }
}

Friday, 5 October 2012

Java Tutorials: Example of Co-variant return type


package project1;
class Fuel
{
int power;
int smoothness;
int roots;
}

class Hydrogon extends Fuel
{
int gasUnit;
}

class Car
{
Fuel run()
{
return new Fuel();
}
}

class FutureCar extends Car
{
Hydrogon run()
{
return new Hydrogon();
}
}

public class Class4
{
public Class4()
{
}

public static void main(String[] args)
{
FutureCar futureCar = new FutureCar();
futureCar.run();
}
}

Thursday, 20 September 2012

JAVA Tutorials : What is Java?


ü   Object Oriented Programming
ü   WORA( Write Once Run any where)
ü   The Java language was created by  James Gosling in June 1991.
ü   Java Provides development and deployment environment.
ü   It is similar in syntax to C++
ü   It is robust provides exception handling , automatic   garbage collection.
ü   Designed for the distributed environment.
ü   Supports Multithreading
ü   Secure ( No Pointer and  Byte Code Verifier)
ü   Architectural Neutral  - If a company develops new hardware , it doesn’t have to make a new software , only JRE needs to be replace for New platform).
ü   Portable (WORA ) Write Once Run any-where
ü   High Performance (JITc)