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 6636How 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 3978
Which package is used for pattern matching with regular expressions?
What access modifiers can be used for variables?
What is double checked locking in singleton?
Is array primitive data type in java?
What is difference between iterator access and index access?
What happens if a constructor is declared private?
What is variable length arguments in java?
Why do we declare a class static?
Is java util list serializable?
Write a function for palindrome and factorial and explain?
What is difference between == equals () and compareto () method?
Can constructor be static or final?
What is classpath?
What’s the difference between constructors and other methods?
Why is sizeof not a function?