Question Detail

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][];
Similar Questions :

1. Which among following classes is not part of Java's collection framework

  • Queue
  • Array
  • Stack
  • Maps

2. Which keyword is used while using interface

  • extend
  • implements
  • throw
  • throws

3. javah stands for

  • java compiler
  • java interpreter
  • java dissasamebler
  • java header file

4. Interfaces helps in which type of inheritance

  • Multiple inheritance
  • Multilevel inheritance
  • Hierarchical inheritance
  • None of above

5. Super is the predefined

  • Keyword
  • Method
  • Keyword and Method
  • None of above
Read more from - Java Objective Questions Answers -Chapter 1