Posts

Showing posts with the label Following




Which of the Following Is Not True About Static Methods

Image
Mark for Review 1 Points True False Correct 41. Static methods can be called using an object reference to an object of the class in which this method is defined. Pin On Salesforce Com Unit Testing 2Static methods are not specific to any object. . The Files class provides a instance method that creates a new BufferedReader. 4Static methods can be directly called with the help of a class object. Question 9 1 pts Which of the following is not true about static methods. A static methods can call other static methods only. They are created by placing the key word static after the access specifier in the method header. Which of the following is not true about a static inner class. They are called directly from the class. 3We can create utility functions with the help of static methods. 1Static methods can be invoked without instantiating the class. The static method cannot be overridden because ...