28. Which of the following modifiers is a must for static field of a Java class? ( ) A. final B. statio C. public D. vol
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
28. Which of the following modifiers is a must for static field of a Java class? ( ) A. final B. statio C. public D. vol
statement is wrong? ( ) A. Base base new Child(): B. Base base new Base(); C. Child child-new Child(); D. Child child-new Base(); 30. To construct an instance of the ArrayList class, which implements the List interface. Which of the following statements is correct? ( ) A. ArrayList myList-new Object( B. List myList new ArrayList(): C. ArrayList myList-new List(); D. List myList new List ();
28. Which of the following modifiers is a must for static field of a Java class? ( ) A. final B. statio C. public D. volatile 29. Assuming that the Child class is a subclass of the Base class, which of the following creates an object