Java View all facts Glossary Help |
| syntactic unit > keyword > access modifier > public |
| public comparison table | |||||||
| Subject | declare | has definition | modify | is a synonym of | is a kind of | is partitioned into | is an instance of |
|---|---|---|---|---|---|---|---|
| access modifier | A keyword that specifies how restricted the access is to a class or interface or variable or method | visibility modifier | keyword | private, protected, public | |||
| public | a public class, public method or public variable | A keyword that indicates that a method, class or variable may be accessed by any object | methods, classes, and variables | access modifier |
Next access modifier: access modifier of an overriding method Up: access modifier Previous access modifier: protected