1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))
1 6715How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }
1 4043
What about main thread in java?
Why map is used in java?
Does java have extension methods?
What is the purpose of extern variable?
Why java is secure? Explain.
What is super constructor?
Define jre i.e. Java runtime environment?
What is a default constructor and also define copy contrucyor?
Why can't we make a class private in java?
what is a thread pool in java and why is it used?
what is the use of bean managed and container managed with example?
Give the hierarchy of inputstream and outputstream classes.
Explain the features of java?
Why is the main method static?
Can we override the static method?