DO IT NOW PLZ , IT IS URGENT
Posted: Tue May 24, 2022 7:57 am
DO IT NOW PLZ , IT IS URGENT
Part III: true-false questions (2 points * 10) 1. An inner class object cannot access the members of the outer class object that created it, including private members. () 2. Overloads can be distinguished by their return type. ( ) 3. A class can only extend a single class, so a class can only implement a single interface. ( ) 4. All classes in Java language contain toString() method. ( ) 5. When calling a method with variable parameters, only multiple parameters can be passed in, not arrays. ( ) 6. Interface method is abstract method in essence, and interface is a special form of abstract class. ( ) 7. HashSet is an unordered collection that rejects duplicates. ( ) 8. The answer to the "System.out.println("abc"+1+2);" is "abc3". ( ) 9. Map stores key-value pairs, which cannot contain duplicate values. ( ) 10. There must be a main method for each Java class. ()
Part III: true-false questions (2 points * 10) 1. An inner class object cannot access the members of the outer class object that created it, including private members. () 2. Overloads can be distinguished by their return type. ( ) 3. A class can only extend a single class, so a class can only implement a single interface. ( ) 4. All classes in Java language contain toString() method. ( ) 5. When calling a method with variable parameters, only multiple parameters can be passed in, not arrays. ( ) 6. Interface method is abstract method in essence, and interface is a special form of abstract class. ( ) 7. HashSet is an unordered collection that rejects duplicates. ( ) 8. The answer to the "System.out.println("abc"+1+2);" is "abc3". ( ) 9. Map stores key-value pairs, which cannot contain duplicate values. ( ) 10. There must be a main method for each Java class. ()