how to write a java program?
Answers
Answered by
3
Explanation:
The basic steps to create the Hello World program are: write the program in Java, compile the source code, and run the program.
Write the Java Source Code. ...
Save the File. ...
Open a Terminal Window. ...
The Java Compiler. ...
Change the Directory. ...
Compile Your Program. ...
Run the Program.
Answered by
0
Explanation:
class rect
{
public static void main(string [ ] args)
{
//variable declaration and initialisation
int l = 60 , b = 40, a = 0
a = l * b;
system. out. println( " Area " + a) ;
}
}
Similar questions
Math,
8 months ago
CBSE BOARD XII,
8 months ago
Math,
8 months ago
CBSE BOARD XII,
1 year ago
History,
1 year ago
History,
1 year ago