Leak Society - The Home Of Nulled Resources.
Forum Beta v1 Now Live!
Begin & Compilation of Java Prgram
Thead Owner : 756dk, Category : Technology and Devices, 0 Comment, 35 Read
Viewers: 1 Guest(s)
Junior Member
**
46
Messages
24
Threads
0
Rep
4 Years of Service
02-24-2014, 04:25 PM
#1
Firstly you have to install the jvm & jre on your computer system...

Write your JAVA program in Editor--> Notepad++
& then save the file by the name of the class(name) & with extenstion .java

example--- class abc
abc.java

Basic step for compilation of a program...
in cmd prompt

1) javac then enter

2)set location of the drive in which you save the java file
example-- you save your file in D: drive
write -- d: then enter

3) if you save the file in folder exit in drive
example-- D: drive ---> foldername -- example
write -- cd example (^foldername) then enter

4) if you want to come out of the folder
write -- cd.. then enter

5) to compile your file-- >>> javac abc.java then enter
now you find a new file generate abc.class

6) then to compile the byte code generated
write -- java abc then enter



## knowledge of Syntax

S <--Capital in case of

System.out.println("hello ");

public stati c void main(String args[])


to get the input from the user in the java program we need to use--

import java.util.Scanner;


Forum Jump: