![]() You will be able to see ' Hello World ' printed on the window.Ībout Java programs, it is very important to keep in mind the following points.Ĭase Sensitivity − Java is case sensitive, which means identifier Hello and hello would have different meaning in Java.Ĭlass Names − For all class names the first letter should be in Upper Case. Now, type ' java MyFirstJavaProgram ' to run your program. If there are no errors in your code, the command prompt will take you to the next line (Assumption : The path variable is set). Type 'javac MyFirstJavaProgram.java' and press enter to compile your code. Open a command prompt window and go to the directory where you saved the class. Save the file as: MyFirstJavaProgram.java. ![]() Let's look at how to save the file, compile, and run the program. * This will print 'Hello World' as the output
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |