• ( 1 ) A package is a group of similar types of?

    • 1) Interfaces
    • 2) Classes
    • 3) Sub-packages
    • 4) All of the above
    • Discussion in forum
      Answer : 4) All of the above
      Solution :








      discussion


      Answer : 4) All of the above

    • ( 2 ) Which is used to separate the hierarchy of the class while declaring an import statement?

    • 1) Package
    • 2) Applet
    • 3) Browser
    • 4) Both 1 & 2
    • Discussion in forum
      Answer : 1) Package
      Solution :








      discussion


      Answer : 1) Package

    • ( 3 ) A package is a collection of

    • 1) classes
    • 2) interfaces
    • 3) editing tools
    • 4) classes and interfaces
    • Discussion in forum
      Answer : 4) classes and interfaces
      Solution :








      discussion


      Answer : 4) classes and interfaces

    • ( 4 ) Thread class is available in ?

    • 1) java.io package
    • 2) java.lang package
    • 3) java.awt package
    • 4) java.util package
    • Discussion in forum
      Answer : 2) java.lang package
      Solution :








      discussion


      Answer : 2) java.lang package

    • ( 5 ) Math class belongs to the package

    • 1) java.math
    • 2) java.lang
    • 3) java.util
    • 4) None of these
    • Discussion in forum
      Answer : 2) java.lang
      Solution : java.lang package contain math class. This class contain basic methods to perform mathematical operations.








      discussion


      Answer : 2) java.lang

    • ( 6 ) A package is a collection of related Java entities such as ?

    • 1) classes,interfaces,exceptions
    • 2) errors and enums
    • 3) Both 1 & 2
    • 4) None of these
    • Discussion in forum
      Answer : 3) Both 1 & 2
      Solution :








      discussion


      Answer : 3) Both 1 & 2

    • ( 8 ) Which of the package is used to enable interaction with garbage collector?

    • 1) java.lang.ref
    • 2) java.lang.reflect
    • 3) java.lang
    • 4) java.awt
    • Discussion in forum
      Answer : 1) java.lang.ref
      Solution :








      discussion


      Answer : 1) java.lang.ref

    • ( 9 ) Which of these is a mechanism for naming and visibility control of a class and its content?

    • 1) Object
    • 2) Packages
    • 3) Interfaces
    • 4) None of these
    • Discussion in forum
      Answer : 2) Packages
      Solution : Packages are both naming and visibility control mechanism. We can define a class inside a package which is not accessible by code outside the package.








      discussion


      Answer : 2) Packages

    • ( 10 ) Which of these package is used for all the text related modifications?

    • 1) java.text
    • 2) java.awt
    • 3) java.lang.text
    • 4) java.text.mofify
    • Discussion in forum
      Answer : 1) java.text
      Solution : java.text provides capabilities for formatting, searching and manipulating text.








      discussion


      Answer : 1) java.text





Top