DEVFYI - Developer Resource - FYI

What is the difference between a public and a non-public class?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

342. What is the difference between a public and a non-public class?

A public class may be accessed outside of its package. A non-public class may not be accessed outside of its package.

(Continued on next question...)

Other Interview Questions