Friday, March 29, 2013

Best website to learn java.

There are many website to learn java.but everyone want sure website.
        Following sure website for study java .

1)    http://www.javatpoint.com
2)    http://www.java2s.com
3)   http;//www.tutorialspoint.com
4)    javaedutech.blogspot.com

Thursday, March 21, 2013

How To Run a Java Applet

          To run a Java Applet using command prompt, we need to   create a HTML file and link it to our applet.

To do so, follow these steps:

  1. Write your java applet code in a text editor and save it as YourClassName.java ( eg. MyAppet.java for this program)
  2. Write the following html code in a text editor, replace the YourClassName.class with the name of your class and save it as YourClassName.html (eg. MyApplet.html for this program
  3. To compile use ‘javac YourClassName.java’
  4. To Run use 'appletviewer YourClassName.html'

   You can also refer from Link

Wednesday, March 20, 2013

Platform Independent ?

                Platform Independent


                The platform defines a standard around which a system can be developed. Once the platform has been defined,software developers can produce appropriate software and managers can purchase appropriate hardware and applications. The term is often used as a synonym of operating system.

              The term cross-platform refers to applications, formats, or devices that work on different platforms.For example, a cross-platform programming environment enables a programmer to develop programs for many platforms at once.

          Java is Platform Independent ?


           Yes, first of all JAVA is platform independent because in JAVA we are having JVM complier it will convert source code into BYTE CODE. so, this byte code will be understandable to any type of OS. so only JAVA is said to be PLATFORM INDEPENDENT.      In C/C++ be don't have that type of special compiler so, only it is said to be PLATFORM DEPENDENT . 
 

Thursday, March 14, 2013

How to set path in java ?

How to set path in java ?
Ans :
1) First download java setup from  
      Link " www.oracle.com/technetwork/java/javase/downloads  /index.html "
2) Install jdk 1.6 in your System.
3) Actual Settinges .
            Right click on My Computer>>Properties>Advanced>>Environment variable

 4) In " User Variable for admin "
      click on new, then set as following
     

 Variable name: PATH
 Variable value: C:\Program Files\Java\jdk1.6.0\bin
Then  Press ok.

And then again click on new then set as following
                                                                                                                                                                   
                                                
                
 Variable name: CLASS
 Variable value: C:\Program Files\Java\jdk1.6.0\lib.;
       
5) Now your java path  have been set.