Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Friday, October 22, 2010

Java advantages and Disadvantages

Java is the famous programming language used world wide. Java is the hot property of SUN MICROSYSTEMS. JAVA is much similar to C++ and both dependent indirectly on the C. Because of it's simplicity Java is popular round the world. Java is ruling the computer world with it's features. Thanks to the god fathers of Java James Gosling, Patrick Naughton, Chris Warth, Ed Frank.



Advantages:
Java is simple: Java is simple because writing code, compiling, running, debugging,and even learning is also simple. A reason why Java is simple is automatic allocation/de-allocation of memory & garbage collection . where as in other languages like C++ programmer has to take care of allocating memory and also collecting the garbage . Java really made the programmers life simpler.

Java is object-oriented: An object is a software bundle of related state and behavior. Java is object oriented because every thing is achieved on creating objects, manipulating objects and inter communication with objects. We can make our work done by these.

Java is platform-independent: The most significant feature of Java is to move simply from one system to other and able to run. It is important for application to run on every machine in case of world wide applications. This is achieved by Java with Platform-independence. compiled code can run on any of the systems which consists of Java Runtime Environment.Java is platform independent both in source and binary levels.

Java is distributed: Distributed computing has changed the entire computer world. Java supports full fledge to Distributed environment. It designed to made distributed computing easy.

Java is Secure: The first language in the world which developed considering security as the part of it's development.The Java compiler catches more compile-time errors; other languages (like C++) will compile programs that produce unpredictable results.
Java does not allocate direct pointers to memory. This makes it impossible to accidentally reference memory that belongs to other programs or the kernel.Java's security model is focused on protecting users from programs downloaded from sources across a network.

Java is compiled and interpreted: Yes. Java is both compiled and interpreted. first the Java code is compiled with Javac compiler and so called .class or Byte Code is generated. This Byte Code is platform independent means can run on any Operating System. when Java application is started then the pre-compiled Java Byte Code interpreted using Java Virtual Machine.

Java is Robust: Java is robust which mean reliable . Java puts lot of emphasis on early checking for errors. In other way Java is highly supported language, mean we can't crash our system by writing bad programs like c. more over it is robust because of its Automatic memory allocation and garbage collection, and strong type checking also help to Java being robust.

Java is Multi threaded: Java supports multi threading. which means to perform different tasks in single program. A single program has capable of executing multiple threads(small sub code)simultaneously and continuously. which is necessary in gaming,network programming.

Dis-advantages:
performance: The main dis advantage of Java is it's performance. when compared to C or C++ Java may be simple, secure, robust but it is poor in performance because programs run in Virtual Machine. Java apps take not only more memory and also significantly time consuming. It feels slower on today's fast computers.

platform specific features: Because Java program has to run on variety of systems across the world, features specific to one OS are not often implemented into Java programs, also the 'look and feel' of Java apps is completely different with default native systems apps of particular OS.

Click here to know How to install Java and set the path
Click here to download JAVA (JSE)
Share/Bookmark

Wednesday, February 24, 2010

How to install JDK on windows based system

HOW TO INSTALL JDK 1.4 ON WINDOWS PLOTFORM

Hi.....friends..........
In this post i want to make you clear how to install jdk(java development kit)1.4 ...we often work on JAVA ...but most of us having confusion how to install JDK. Here i want to tell show you how to install it.

Here i wanna discuss some basic things about JDK.. for novice programmers....
  • JDK stands for Java Development Kit which is a piece of software developed by SUN MICROSYSTEMS.
  • JDK is software which provides enverolment to Develop JAVA programms.
  • JDK =JVM+JRE

(I will discuss much more about terms like JDK , JRE, JVM, JSE in my next post which are seems to be bit confusing for the novice programmer )


STEPS TO INSTALL JDK 1.4:


1. Download jdk here download jdk .

2.Double click on downloaded .exe file. let the exe file to install....

3.Now the steps begin to set path to java directory. go to Desktop->
Mycomputer->right click->select properties.

4. Select “Advanced” tab and then Environment variables. 
 
5    Set class path in “system variables”   .....for that.......






click new button........
 




6. Type  below as it is in corrosponding Fields.....


Variable name: classpath
     Value: <java directory>\lib\tools.jar; \lib\dt.jar;.;

     Example: If my java is installed in C:\java1.4
     My Value: will be C:\java1.5\lib\tools.jar;C:\java1.4\lib\dt.jar;.;

Press OK....
7.    Repeat STEP 5 and Type below as it is in corrosponding Fields.....


Variable name: path
     Value : <java directory>\bin;

     Example: java1.4\bin;

8. Repeat STEP 5 and enter below as it is in the corrosponding fields.....

Variable name: JAVA_HOME
     Value : <java directory>

     Example: C:\j2sdk1.4.0_01;

Hit OK... then again  OK......


THAT'S ALL....... YOUR DONE....


  • TO CHECK WHETHER JDK IS INSTALLED PROPERLY OR NOT.........JUST FOLLOW THE BELOW STEPS.........
 STEP:1   START-> RUN-> type CMD-> ENTER

STEP2: AT THE PROMPT ENTER JAVAC....IT WILL SHOW SOME POSSIBLE OPTIONS SCREEN EXACTLY LIKE BELOW.....WHICH MEANS JAVA IS INSTALLED PROPERLY..........
 


Hope ..now you now perfectly how to install JDK1.4 ..The same method is applicable to all the versions of the JDK....

think it is use ful to you....plz comment on post...whether it is use ful or not....if u have any doughts plz write in comment field ......-u r's HARI
Share/Bookmark