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:
- Save the program in a folder. The file name and the class name are case-sensitive and must be the same.
- From command prompt window, change to the folder that contains the java file you just saved.
- 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:
- Type cmd in the search box near shutdown button (Windows 7) to open the prompt window
- When the command prompt window is active, type D: to change to the D drive
- Then type cd myprogram to enter the myprogram folder
- 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.
- Type java HelloWorld to run the program.
![]() |
compile and run Java program |
Appreciation for nice Updates, I found something new and folks can get useful info about BEST ONLINE TRAINING
ReplyDeleteGreat Article
DeleteProject Centers in Chennai
Final Year Projects for CSE
This is cool thanks
ReplyDeleteThe 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
ReplyDeleteThanks 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
ReplyDeleteInteresting Article
ReplyDeleteJava Training in Chennai | Core Java Training in Chennai
Online Java Training | Java EE Training Institute in Chennai
Good post. I like it, Thanks for sharing.
ReplyDeletedigital marketing training courses in chennai
Very nice post, Keep sharing such a informative post.
ReplyDeletephp training in chennai
This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharng this information,this is useful to me...
ReplyDeleteAndroid training in chennai
ReplyDeleteThis 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
thank you me projects in chennai embedded projects in chennai internship in chennai seo company in chennai
ReplyDeleteGreat share!
ReplyDeletebulk ieee projects in chennai, ieee bulk projects in chennai, bulk projects in chennai
ece projects in chennai, ece projects centers in chennai
Robotics projects in chennai, robotics projects centers in chennai
dotnet training in chennai
final year project centers in bangalore, best project centers in bangalore, project centers in bangalore for ece, project centre in bangalore, engineering project centres in bangalore, project institutes in vijayanagar, best project institutes in bangalore, ece projects in bangalore, cs projects in bangalore
Thank you !! Amazing Write Up !!
ReplyDeleteRobotics training in chennai
Php training in chennai
Digital marketing company in chennai
Chennai to Tirupati Package cheap and best travels
Chennai car rental outstation
Thank you !! Very usefull !!
ReplyDeletedot net training in chennai
matlab training in chennai
embedded system training in chennai
Yes this the best way to learn Java programming language fast is by learning from example programs and building your own programs.
ReplyDeleteOne Day Tirupati Packages from Chennai | Tirupati Balaji Darshan Package from Chennai
Nice post.Thanks for sharing.
ReplyDeleteDigital Marketing Course In Chennai
SEO Training In Chennai
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.
ReplyDeleteThanks & Regards,
VRIT Professionals,
Web Designing Training Institute in Chennai.
image processing applications projects in chennai
ReplyDeletegood share !!
ReplyDeleteieee final year projects
Great share !!
ReplyDeleteieee final year projects in chennai
Robotics projects in chennai
Arduino projects in chennai
Great share !!!
ReplyDeleteieee final year projects in chennai
IOT projects in chennai
Raspberry pi projects in chennai
Excellent post. I learned a lot from this blog and I suggest my friends to visit your blog to learn new concept about technology.
ReplyDeleteAngularJS Training in Chennai
AngularJS course in Chennai
ReactJS Training in Chennai
R Programming Training in Chennai
Data Science Course in Chennai
Big Data Analytics Courses in Chennai
AngularJS Training in Anna Nagar
AngularJS Training in T Nagar
Norton customer service
ReplyDeleteMcafee customer service number
Great share !!!
ReplyDeleteluxury homes in chennai
premium apartments in chennai
luxury villas in chennai for sale
Nice Article !!! Great Share
ReplyDeleteuber luxury homes in chennai
luxury properties for sale in chennai
buy luxury properties in chennai
Nice Article !!! Great Share
ReplyDeleteuber luxury homes in chennai
luxury properties for sale in chennai
buy luxury property in chennai
Nice Article !!! Great Share
ReplyDeleteextreme luxury homes in chennai
luxury homes in chennai
buy luxury properties in chennai
Nice Article !!! Great Share
ReplyDeleteLand for Sale
property for sale
best real estate in chennai
very nice post, thank you
ReplyDeleteone day package from chennai to tirupati
one day tour package from chennai to tirupati
chennai to tirupati package by car
tirupati package from chennai
chennai to tirupati car package
chennai to tirupati packages
one day tirupati package
best tirupati packages from chennai
tirupati one day trip from chennai
chennai to tirupati travels
tirupati package from chennai by car
chennai to tirupati one day package by car
good information
ReplyDeletechennai to tirupati car packages
Nice Article !!! Great Share
ReplyDeletecommercial property for rent in chennai
residential apartments for rent in chennai
independent house for rent in chennai
Great share ! Good Article !
ReplyDeleteapartment for rent
high end apartments for rent
prime office space for rent in chennai
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
ReplyDeleteDo 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.
ReplyDeleteseo consultant singapore
Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your site? My blog site is in the exact same area of interest as yours and my users would genuinely benefit from some of the information you provide here. Please let me know if this ok with you. Thank you!
ReplyDeletehomestay singapore foreign student
And you can buy a Z-helms/ Elemental wands for 1 messo. If by any chance you don't get a skill build the first time , you can try again.
ReplyDeletegood web hosting service
If he comes back and says he owns 50% of it because he built half of it, you can then decide on a course of action.
ReplyDeleteblog marketing
Howdy! This is kind of off topic but I need some guidance from an established blog. Is it very hard to set up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking about making my own but I'm not sure where to start. Do you have any tips or suggestions? With thanks social media marketing tactics
ReplyDeleteMarketing information systems are tactical level information systems, which is used to support the middle level management working at marketing department.
ReplyDeletetitle tags
Hello! I'm at work surfing around your blog from my new apple iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the superb work!bridal packages in chennai
ReplyDeleteHi there, You've done an incredible job. I’ll definitely digg it and personally recommend to my friends. I'm confident they'll be benefited from this web site. customized mobile case
ReplyDeleteexcellent post as always i like it thank you for sharing
ReplyDeleteคาสิโนออนไลน์ที่น่าเชื่อถือและมีความเป็นมืออาชีพที่สุดในตอนนี้
โปรโมชั่นGclub ของทางทีมงานตอนนี้แจกฟรีโบนัส 50%
เพียงแค่คุณสมัคร สล็อตออนไลน์ กับทางทีมงานของเราเพียงเท่านั้น
ร่วมมาเป็นส่วนหนึ่งกับเว็บไซต์คาสิโนออนไลน์ของเราได้เลยค่ะ
สมัครสล็อตออนไลน์ >>> Goldenslot
สนใจร่วมสนุกกับ คาสิโนออนไลน์ คลิ๊กได้เลย
มีทั้งคาสิโนออนไลน์ หวยออนไลน์ ฟุตบอลออนไลน์ สล็อตออนไลน์ และอื่นๆอีกมากมาย
Hi there! This is kind of off topic but I need some advice from an established blog. Is it difficult to set up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking about creating my own but I'm not sure where to start. Do you have any points or suggestions? Cheers Make Your Website SEO-Friendly
ReplyDeleteI am curious to find out what blog platform you are using? I'm experiencing some minor security problems with my latest blog and I'd like to find something more risk-free. Do you have any suggestions?hire a website designer
ReplyDeleteToday, I went to the beach with my children. I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is completely off topic but I had to tell someone! digital marketing jobs singapore
ReplyDeleteMy developer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the costs. But he's tryiong none the less. I've been using Movable-type on various websites for about a year and am anxious about switching to another platform. I have heard good things about blogengine.net. Is there a way I can transfer all my wordpress content into it? Any help would be really appreciated! marketing online
ReplyDeletethanks for your information really good and very nice web design company in velachery
ReplyDelete
ReplyDeleteawesome blog it's very nice and useful i got many more information it's really nice i like your blog styleweb design company in velachery
Good Share!
ReplyDeleteLand for rent in chennai
Warehouse for sale in chennai
Shed for rent in chennai
Great Share!
ReplyDeleteWarehouse for Rent In Chennai
Warehouse for Sale In Chennai
Factory Shed for Rent In Chennai