Question: | What if the main method is declared as private? |
Question: | What if the static modifier is removed from the signature of the main method? |
Question: | What if I write static public void instead of public static void? |
Question: | What if I do not provide the String array as the argument to the method? |
Question: | What is the first argument of the String array in main method? |
Question: | If I do not provide any arguments on the command line, then the String array of Main method will be empty or null? |
Question: | How can one prove that the array is not null but empty using one line of code? |
Question: | What environment variables do I need to set on my machine in order to be able to run Java programs? |
Question: | Can an application have multiple classes having main method? |
Question: | Can I have multiple main methods in the same class? |
Question: | Do I need to import java.lang package any time? Why ? |
Question: | Can I import same package/class twice? Will the JVM load the package twice at runtime? |
Question: | What are Checked and UnChecked Exception? |
Question: | What is Overriding? |
Question: | What are different types of inner classes? |
No comments:
Post a Comment