What is a public void in Java?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at University of California, Irvine (UCI), Lives in Irvine, CA
The public is a keyword, which allows to control the visibility of class members. Member may be accessed by code outside the class by the public keyword. Static is a method which associated with the class, not a specific object of that class. Void means that the method has no return value.
2023-05-05 14:09:44
评论(499)
Helpful(122)
Helpful
Helpful(2)

Harper Collins
QuesHub.com delivers expert answers and knowledge to you.
The public is a keyword, which allows to control the visibility of class members. Member may be accessed by code outside the class by the public keyword. Static is a method which associated with the class, not a specific object of that class. Void means that the method has no return value.