Pages

Saturday 3 September 2016

How to run a java program from the command line ?

Let's say your file is in E:\Java Np

Lets write a simple program in this path and save as MyFirstProgram.java (pic-1).

pic-1

Run command prompt as pic-2.

pic-2






No comments:

Post a Comment

Code Review

 SOLID Principles S – Single Responsibility Principle There should never be more than one reason for a class to change. O – Open-Closed Prin...