Java Programming and Technical Programming Definition

Q. What is HashMap and Map?

A. Map is Interface and Hashmap is class that implements that.

Read Solution (Total 1)

Java Other Question

Q. What is nested class?

A. If all the methods of a inner class is static then it is a nested class
Q. What are different types of access modifiers?

A. public: Any thing declared as public can be accessed from anywhere. private: Any thing declared as private can't be seen outside of its class. protected: Any thing declared as protected can be accessed by classes in the same package and sub classes in the other packages. default modifier : Can be accessed only to classes in the same package.