Java Quiz (Set 4) Java Quiz (Set 4) 1 / 10 What is polymorphism? Polymorphism is a technique to define different objects of same type. Polymorphism is the ability of an object to take on many forms. Polymorphism is a technique to define different methods of same type. None of the above. 2 / 10 Which of the following is true about String? String is mutable. String is immutable. String is a data type. None of the above. 3 / 10 Which of the following is false about String? String is immutable. String can be created using new operator. String is a primary data type. None of the above. 4 / 10 Which of the following stands true about default modifier of class members? By default, variables, methods and constructors can be accessed by subclass only. By default, variables, methods and constructors can be accessed by any class lying in any package. By default, variables, methods and constructors can be accessed by any class lying in the same package. None of the above. 5 / 10 Which of the following is true about super class? Variables, methods and constructors which are declared private can be accessed only by the members of the super class. Variables, methods and constructors which are declared protected can be accessed by any subclass of the super class. Variables, methods and constructors which are declared public in the superclass can be accessed by any class. All of the above. 6 / 10 Which of the following is true about private access modifier? Variables, methods and constructors which are declared private can be accessed only by the members of the same class. Variables, methods and constructors which are declared private can be accessed by any class lying in same package. Variables, methods and constructors which are declared private in the superclass can be accessed only by its child class. None of the above. 7 / 10 Which of the following is true about protected access modifier? Variables, methods and constructors which are declared protected can be accessed by any class. Variables, methods and constructors which are declared protected can be accessed by any class lying in same package. Variables, methods and constructors which are declared protected in the superclass can be accessed only by its child class. None of the above. 8 / 10 Which of the following is true about public access modifier? Variables, methods and constructors which are declared public can be accessed by any class lying in same package. Variables, methods and constructors which are declared public in the superclass can be accessed only by its child class. Variables, methods and constructors which are declared public can be accessed by any class. None of the above. 9 / 10 What is the default value of Boolean variable? true false null not defined 10 / 10 What is the default value of Object variable? undefined 0 null not defined Your score isThe average score is 0% 0% Restart quiz