Computer Science, asked by rosemol, 9 months ago

how to write a java program? ​

Answers

Answered by sumuboruah792
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 mastermaths55
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