
without public static void main(string args[]) in java program it is possible or not?

Hi,
Here is simple example of Hello World in Java.
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
This is the first program in Java.
In Java The public static void main(String[] args) method is very important. This method is the entry point and JVM executes this method.
If this method is not present you program won't execute.
Without public static void main(String[] args) method you can write Java program and compile. The compiler will generate the class file, but you won't be able to execute from the command line.
Read at Hello world Program in Java.
Thanks