1.

Which package contains the utility classes?(a) java.lang(b) java.utility(c) java.util(d) java.ioThis question was posed to me during an online interview.My doubt stems from Inbuilt Classes in section Inbuilt Classes of Object Oriented Programming

Answer»

Right OPTION is (C) java.util

Easiest explanation - The package java.util contains all the utility classes. This package also contains GENERIC data structures, date, time etc. These can be USED in any java program, you just have to include java.util package.



Discussion

No Comment Found

Related InterviewSolutions