176. What Is The Difference Between The Size & Capacity Of A Vector? Answer: The size is the number of elements actually stored in the vector, while capacity is the maximum number of elements it can store at a given instance of time. 177. Can A Vector Contain Heterogenous Objects? Answer: Yes a Vector can contain heterogenous objects. Because a Vector stores everything in terms of Object. 178. What Is An Enumeration? Answer: An enumeration is an interface containing methods for accessing the underlying data structure from which the enumeration is obtained. It allows sequential access to all the elements stored in the collection. 179. What Is Difference Between Path & Classpath? Answer: Path and Classpath are operating system level environment variables. Path is defines where the system can find the executables. exe files and classpath is used to specify the location of .class files. 180. Can A Class Declared As Private Be Accessed Outside It's Pack...
All HR and Technical interview questions with answers for freshers and experienced professional. It helps job seekers who are about to attend interviews.