download Mastguru Android App

Question Detail

Why we use array as a parameter of main method

  • it is syntax
  • Can store multiple values
  • Both of above
  • None of above
Similar Questions :

1. Which of the following statements about arrays is syntactically wrong

  • arrayName[] p = new arrayName[5];
  • arrayName p[5];
  • arrayName[] p [];
  • arrayName p[][] = new arrayName[2][];

2. If nested try is possible

  • Yes
  • No

3. All collection classes are available in

  • java.io package
  • java.lang package
  • java.awt package
  • java.util package

4. Converting a primitive type data into its corresponding wrapper class object instance is called

  • boxing
  • wrapping
  • instantiation
  • autoboxing

5. Which is the predefined package

  • Lang package
  • io package
  • util package
  • All of above
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment