Home / MCQ Bank / Computer
Computer Constructors And Methods

Which of the following statements regarding static methods are correct? 1. Static methods are difficult to maintain, because you can not change their implementation. 2. Static methods can be called using an object reference to an object of the class in which this method is defined. 3. Static methods are always public, because they are defined at class-level. 4. Static methods do not have direct access to non-static methods which are defined inside the same class.

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • 2 and 4

Related Computer Questions

A person wants to visit some places. He starts from a vertex and then wants to visit every vertex till it finishes from one vertex, backtracks and then explore other vertex from same vertex. What algorithm he should use? What does the "bang" (!) operator do when appended to a method name in Ruby? An operating system version designed for use with a media center PC is Microsoft Windows XP What is true about a break? Which type of binary search tree or algorithm does tango tree use?