Is public a method in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Is public a method in java

Publi class question

6th Jun 2019, 10:52 AM
Great Pyramids 🏜
Great Pyramids 🏜 - avatar
2 Answers
+ 1
Public is access modificator. Just like private, default and protected. This keyword is used before name of method to make method accessible everywhere in program
6th Jun 2019, 11:30 AM
DolphieDude
DolphieDude - avatar
0
No! "Public" keyword is an access specifier, but not any funtion or method!
9th Aug 2019, 10:15 PM
Rahim Samnani
Rahim Samnani - avatar