Java Programming and Technical

Q. What are the access modifiers in Java?

A. There are 3 access modifiers. Public, protected and private, and the default one if no identifier is specified is called friendly, but programmer cannot specify the friendly identifier explicitly.

Read Solution (Total 1)

Java Other Question

Q. What is the base class of all classes?

A. java.lang.Object
Q. What is are packages?

A. A package is a collection of related classes and interfaces providing access protection and namespace management