answersLogoWhite

0


Best Answer

Compile: either use the "javac" command or - more conveniently - look for the "compile" command in some of the menus of your IDE.

Run: after compiling, use the "java" command or - more conveniently - look for a "run" command in your IDE.

The exact commands in the IDE will vary, depending will vary depending on the chosen IDE.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the command to compile and execute a factorial program in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you compile and execute Java program in which we find the highest of any five numbers?

In the same way as you would compile and execute any other Java program. Compile: use the "javac" command. Or use the built-in "compile" command in your favorite IDE. Execute: Use the "java" command. Or use the built-in "run" command in your favorite IDE.


How do you compile and execute a 16 bit compiler program from a command prompt?

Compiler-dependent. If you have Turbo C, it will be command TCC


How do you compile and execute programs using command line in DOS?

ad1: install a compiler ad2: just enter the program's name at the prompt


How do you compile and execute a C program from a command prompt in turboc compiler in 32 bit XP?

C:> TCC.EXE foobar.c C:> foobar.exe


How a c program execute?

Compile and link it into an executable.


How do you use c program?

Compile, link and execute them.


How is C program portable?

Your program is portable if you can compile and execute it on different platforms.


What is the command to compile a java program named Greetingsjava?

The command to compile a Java program is "javac", followed by the class name (file name).


What is the command to compile jre6 program?

It is 'Java program' to be precise, and the command is: 'javac sourcefilename.java'


How do you run c programm with add two numbers?

1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt


How do you compile and execute a java program which finds out the highest of any five numbers?

it will be destroyed.


What is Commands for the compiler that are needed to compile and run your program?

javac is the command that is used to compile Java source files.