28. Which of the following modifiers is a must for static field of a Java class? ( ) A. final B. statio C. public D. vol
Posted: Tue May 24, 2022 8:02 am
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