Program :Step 1 - CodingCreate a text file FirstHello.java and copy below contents./** * A program that prints 'Hello Java' string at standard output console * Java training example source code developed by SunilOS. * * Copyright (c) 2008 SunilOS * @version 1.0 * */ public class FirstHello { public static void main(String[] args) { System.out.println("Hello Java"); } } Step 2 - Deployment
Step 3 - Testing
OutputIt will show a message. Hello java... TroubleshootingError : C:\sunilos>javac FirstHello.java 'javac' is not recognized as an internal or external command, Resolution : Check your PATH environment variable. JAVA_HOME is not in PATH. Set path byoperable program or batch file. SET PATH=%JAVA_HOME%/bin;%PATH% Video<<Previous | Next>> |