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 5858How 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 3303
Why java is used everywhere?
Explain the selection sort algorithm?
What's the base class in java from which all classes are derived?
Is heap stored in ram?
How many bytes are a float?
what is the constructor and how many types of constructors are used in java?
What is the main functionality of the remote reference layer?
What happens when I use / and % with a negative numerator?
What is the default execution method in java?
What is an example of declaration?
Can we write method inside a method in java?
Can you call a method in a method?
Differentiate between stringbuffer and string?
What package is math in java?
Explain the different forms of polymorphism?