answersLogoWhite

0

no

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Can java program can be written without main?

No, main() class is required to execute the program as that's the starting point of the program.


How do you execute a Java program?

You can run a Java application from the command line using "java <name of the class>"


What is the name of the command to run a java program?

javausage: java path\FooBar will execute path\FooBar.class


What mean by multithreaded program?

A multithreaded program is one that has multiple threads in execution. They may execute parallel to one another or totally without relation to one another. In Java you can create multithreaded programs using Java threads.


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 create and execute a java program?

You can create a Java program by writing it in any text editor - for example Notepad, or Notepad++. You can compile it with the "javac" command, and, if it compiles without errors, run it with the "java" command. Or better, simplify your life by installing an IDE (integrated development environment), such as Netbeans or Eclipse.


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

it will be destroyed.


What is the default program to open a jar file to execute a program?

You can open jar files with command prompt, Winrar or java.


How do you write and execute java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.


How do you write and execute the java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.


Differentiate Java applet and Java servlet?

Java Applet is an application designed to transmit on internet to execute on java compatible browsers. Java Servlet is a server side program used to provide services to clients.


In java public static voidmain function denotes what?

Java's main function denotes the entry point into the execution of your program.


Why it is not possible to execute java program on machine which does not have JVM installed on it?

when a java program is compiled it is converted into a non executable code which is byte code, and this byte code can only be interpreted by JVM. so a java program can't be executed on a machine which doesn't have JVM installed on it.


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


How to write java program without using main method?

Java program without mainWe need a main method for executing a program.But YES we can write a program without using main() method.TRICK 1 of 2 :: while writing applets in java we don't use main... we use init() method instead.TRICK 2 of 2 :: using 'static' we can write a program whic will execute successfully and output the desired message on screen. Here it is :: class Mohit{ static { System.out.println("This java program has run without the main method"); System.exit(0); } } -->save the program as Mohit.java to compile::javac Mohit.java (in command prompt) to run ::java Mohit(command prompt) output will be ::This java program has run without the main methodWhoa!!!!! we are done.;)


Can you run java program without applying main method?

yes we can run java program without using main. we can run program by declaring the variable static..


What is the name of the function which must be defined in a Java program?

The main function. Every program must have a main function and it must be declared static.


Where can one get the program Java?

The program Java can be downloaded from the official Java website on the internet. The program is free for personal use, so it can be downloaded without any cost by anyone.


What is the difference between exe and class files?

in .exe file it contains machine understandable code. but in .class file it contain only byte code which is not understadable by the microprocessor it will understud by the jvm only . we con't execute .class file without jvm . but we can execute .exe file without c-compiler .


What is the providence of US?

The JRE refers to Java Runtime Environment... JRE is an implementation of the Java Virtual Machine which actually executes Java programs. Without the JRE we cannot execute our Java programs.