Which of the following method declarations is correct for a static method named displayFacts() if the method

Question:

Which of the following method declarations is correct for a static method named displayFacts() if the method receives an int argument?
a. Public static int displayFacts()
b. Public void displayFacts(int data)
c. Public static void displayFacts(int data)
d. Two of these are correct.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: