Shared Flashcard Set

Details

Java Part 2
Java Part 2
13
Computer Science
Undergraduate 4
05/21/2012

Additional Computer Science Flashcards

 


 

Cards

Term
What if the main method is declared as private?
Definition
Term
What if the static modifier is removed from the signature of the main method?
Definition
Term
What if I write static public void instead of public static void?
Definition
Term
What if I do not provide the String array as the argument to the method?
Definition
Term
If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?
Definition
Term
What is the first argument of the String array in main method?
Definition
Term
How can one prove that the array is not null but empty using one line of code?
Definition
Term
What environment variables do I need to set on my machine in order to be able to run Java programs?
Definition
Term
Can an application have multiple classes having main method?
Definition
Term
Can I have multiple main methods in the same class?
Definition
Term
Do I need to import java.lang package any time? Why ?
Definition
Term
Can I import same package/class twice? Will the JVM load the package twice at runtime?
Definition
Term
What is Overriding?
Definition
Supporting users have an ad free experience!