हिंदी

Write steps required to code a java program on the computer.

Advertisements

प्रश्न

Write steps required to code a java program on the computer.

विस्तार में उत्तर
Advertisements

उत्तर

  1. Install Java Development Kit (JDK): Install the JDK on the computer to compile and execute Java programs.
  2. Open a Text Editor: Open a text editor such as Notepad or a Java IDE to write the program.
  3. Write the Java Program: Type the Java program using proper syntax, class declaration and the main() method.
  4. Save the Program: Save the program with the .java extension. The filename should match the public class name, if one is declared.
  5. Compile the Program: Open Command Prompt and type javac Filename.java to compile the program and check for errors.
  6. Correct the Errors: If compilation errors occur, correct them and compile the program again.
  7. Execute the Program: Type java ClassName in Command Prompt to run the compiled program.
  8. Check the Output: Observe the output displayed on the screen and verify the results.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Programming in Java (Review of Class XI Sections B and C) - EXERCISE [पृष्ठ ९८]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 3 Programming in Java (Review of Class XI Sections B and C)
EXERCISE | Q 18. | पृष्ठ ९८
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×