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. Super is the predefined

  • Keyword
  • Method
  • Keyword and Method
  • None of above

2. Can we declare abstract static method

  • Yes
  • No

3. Which keyword is used while using interface

  • extend
  • implements
  • throw
  • throws

4. The Externizable interface extends the serializable interface

  • True
  • False

5. Which driver is efficient and always preferable for using JDBC applications

  • Type-4 driver
  • Type-3 driver
  • Type-2 driver
  • Type-1 driver
Read more from - Java Objective Questions Answers -Chapter 1