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 keyword is used while using interface

  • extend
  • implements
  • throw
  • throws

2. Why we use array as a parameter of main method

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

3. JAR file contains the compressed version of

  • .java file
  • .class file
  • .jsp file
  • None of above

4. Which metrhods are utilized to control the access to an object in multi threaded programming

  • Asynchronized methods
  • Synchronized methods
  • Serialized methods
  • None of above

5. Suspend thread can be revived by using

  • start() method
  • Suspend() method
  • resume() method
  • yield() method
Read more from - Java Objective Questions Answers -Chapter 1