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 6782How 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 4113
When should I use stringbuffer?
What are untrusted applets?
What is extension method in java?
What are exception handling keywords in java?
What's the base class of all exception classes?
What is default constructors?
How to instantiate member inner class?
What are inner classes or non static nested classes in java?
What is parsing a string?
What are strings in physics?
Which java ide is used the most?
Name few java 8 annotations ?
How do you initialize an arraylist in java?
Can a main method be overloaded?
How objects of a class are created if no constructor is defined in the class?