Java Quiz (Set 7) Java Quiz (Set 7) 1 / 10 What is NullPointerException? A NullPointerException is thrown when calling the instance method of a null object or modifying/accessing field of a null object. A NullPointerException is thrown when object is set as null. A NullPointerException is thrown when object property is set as null. None of the above. 2 / 10 What is true about a final class? class declard final is a final class. Final classes are created so the methods implemented by that class cannot be overridden. It can't be inherited. All of the above. 3 / 10 Method Overriding is an example of Static Binding. Dynamic Binding. Both of the above. None of the above. 4 / 10 Dynamic binding uses which information for binding? type. object. Both of the above. None of the above. 5 / 10 Static binding uses which information for binding? type. object. Both of the above. None of the above. 6 / 10 Method Overloading is an example of Static Binding. Dynamic Binding. Both of the above. None of the above. 7 / 10 When static binding occurs? Static binding occurs during Compile time. Static binding occurs during load time. Static binding occurs during runtime. None of the above. 8 / 10 What is function overriding? If a subclass uses a method that is already provided by its parent class, it is known as Method Overriding. If a subclass provides a specific implementation of a method that is already provided by its parent class, it is known as Method Overriding. Both of the above. None of the above. 9 / 10 What is function overloading? Methods with same name but different parameters. Methods with same name but different return types. Methods with same name, same parameter types but different parameter names. None of the above. 10 / 10 What is composition? Composition is a data structure. Composition is a way to create an object. Holding the reference of the other class within some other class is known as composition. None of the above. Your score isThe average score is 0% 0% Restart quiz