Does Importing A Package Imports The Subpackages As Well Example: Does Importing Com.MyTest.* Also Import Com.MyTest.UnitTests.*

Does Importing A Package Imports The Subpackages As Well Example: Does Importing Com.MyTest.* Also Import Com.MyTest.UnitTests.*


  • 29 Dec, 2011

    No you will have to import the subpackages explicitly. Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class in any of it's subpackage.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.