1.

Static methods can’t be made abstract in java.(a) True(b) FalseThe question was asked in an internship interview.This key question is from Abstract Function in portion Member Functions & its Types of Object Oriented Programming

Answer»

Correct option is (a) True

Explanation: The abstract functions can’t be made static in a PROGRAM. If those are made static then the function will be a PROPERTY of class RATHER than each object. In TURN ever object or derived class must use the common definition given in the base class. But abstract functions can’t be defined in the base class. Hence not possible.



Discussion

No Comment Found

Related InterviewSolutions