We 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 method
Whoa!!!!! we are done.
;)
How to write a program for secant method by mathematica
sdfdg
This is not a question.
When you start your xxxx.class it will execute its 'public static void main (String args[])' method. Any other main methods won't be executed, only if your program explicitly calls them.
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
How to write a program for secant method by mathematica
i need this answer
sdfdg
This is not a question.
Technically yes, practically no.
not possible dude
To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;
a=a^b; b=a^b; a=a^b;
When you start your xxxx.class it will execute its 'public static void main (String args[])' method. Any other main methods won't be executed, only if your program explicitly calls them.
Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.
write a sample program using asp.net explaining all the syntax and semantics of the program
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
Yes, you can write a "hello world" program without an operating system using bare metal programming. This involves directly interfacing with the hardware of a computer system without an intermediary operating system. The program can be written to access and output text to a display device without the need for an OS.
write a vb program to find the magic square
The question is malformed and incomprehensible.
Yes. int a, b; a= 2; b= 3; a= a+b;
Write and run a client and a server program in C-language using UDP
Yes you can write a C program without using turbo C IDE. All you need is a text editor like notepad where you can write your codes and after writting them save the file with .c extension. But for compilling and running the code you will be needing turbo C IDE.
Write a simple program in finding roots x^3-6x^2+11x-6.1=0
use strcat, strncpy, stpcpy, sprintf, strlen+memcpy, etc