Tuesday, April 2, 2013

How to learn Java?

The best way to learn Java programming language fast is by learning from example programs and building your own programs. The javatheprogram.blogspot.com can be used to achieve this objective. The javatheprogram.blogspot.com site tries to provide you useful programs as many as possible that can help you learn Java fast and then you can build your own programs. You will find link to each program from the right navigation bar.

Compile and Run Java program

To compile and Run a Java program. You need to install JDK. The latest JDK version is 7. You can   download and install JDK from http://java.sun.com website. When you successfully install, you will have    javac command to compile and java command to run the program. Below are steps that may help you   compile and run Java program:

  1. Save the program in a folder. The file name and the class name are case-sensitive and must be the same.
  2. From command prompt window, change to the folder that contains the java file you just saved.
  3. Type javac filename (extension java) to compile the program. If any error is shown, read it and correct the source code and to run the program type java filename (without extension).

For example, The Java file name HelloWorld.java is saved in the D:\myprogram folder. To compile and   run the HelloWorld program in that folder, follow the steps below:

  1.  Type cmd in the search box near shutdown button (Windows 7) to open the prompt window
  2.  When the command prompt window is active, type D: to change to the D drive
  3. Then type cd myprogram to enter the myprogram folder
  4. When you are in myprogram, type javac HelloWorld.java to compile the program. When you  successfully compiled the program the HelloWorld.class file is created in the same folder.
  5. Type java HelloWorld to run the program.

compile and run Java program


  1. Appreciation for nice Updates, I found something new and folks can get useful info about BEST ONLINE TRAINING

  2. The future of automation testing tool is on the positive tool. As the demand of quality web application keeps on increasing, the tool like Selenium IDE is getting very popular all over the world. Thus, taking Selenium Training in Chennai will help you to enter software testing industry. Best Selenium training institute in Chennai

  3. Thanks for your informative article on software testing. Your post helped me to understand the future and career prospects in software testing. Keep on updating your blog with such awesome article. Best software testing training institute in Chennai | Software Testing Training in Chennai | Software testing course in Chennai

  4. Very nice post, Keep sharing such a informative post.

    php training in chennai

  5. This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharng this information,this is useful to me...
    Android training in chennai


  6. This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Ios training in chennai

  7. Yes this the best way to learn Java programming language fast is by learning from example programs and building your own programs.

    One Day Tirupati Packages from Chennai | Tirupati Balaji Darshan Package from Chennai

  8. Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
    Thanks & Regards,
    VRIT Professionals,
    Web Designing Training Institute in Chennai.

  9. I know this if off topic but I'm looking into starting my own blog and was curious what all is required to get set up? I'm assuming having a blog like yours would cost a pretty penny? I'm not very web smart so I'm not 100% sure. Any suggestions or advice would be greatly appreciated. Thanks content management system

  10. Do you have a spam issue on this website; I also am a blogger, and I was curious about your situation; we have created some nice methods and we are looking to swap techniques with other folks, why not shoot me an e-mail if interested.
    seo consultant singapore