Ask Question
9 April, 15:48

Assume the availability of class named Date Manager that provides a static method, print Todays Date, that accepts no arguments and returns no value. Write a statement that calls print Todays Date?

+5
Answers (1)
  1. 9 April, 15:59
    0
    DateManager. printTodaysDate ();

    Explanation:

    As class named "DateManager" which will call the "printTodaysDate () " static function. Static method are those who are accessed by the classname not by the object.

    As printTodaysDate (); is a static method it means it cannot hold non static data. It hold only the static data, We cannot used super keyword in the printTodaysDate (); function. So the statement DateManager. printTodaysDate (); calls print Todays Date.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assume the availability of class named Date Manager that provides a static method, print Todays Date, that accepts no arguments and returns ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers