Hey Guys...
Today I Discuss how to create or write programs in java and compile through command prompt and also run it.
Follow to writing the first program in java.
Open any editor and write code after that save the file extension with java like that -
The file name is Hello save the type Hello.java
Program Code Here:-
class Hello{
public static void main(String[] args)
{
System.out.print("Hello World !!");
}
}
After Compiling a New File Add on the Same Directory that is called Class file Hello.Class
Run Here:-
2 Comments
Gud work
ReplyDeleteSuperb
ReplyDeletethanks for your suggestion and improving quality of the content