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 6789How 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 4115
Are true and false keywords?
What is string made of?
What is the difference between keyword and identifier?
how to split string in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
What are encapsulation, inheritance and polymorphism?
What is the difference between processes and threads?
What language is pass by reference?
What do you understand by private, protected and public?
What is a type parameter in java?
What are the topics in core java?
How do you override a method?
Explain the JDB in depth & command line.
Is .net better than java?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?