Just to be safe

Submitted By: admin on February 20, 2018

6

0

3176

Just to be safe Source: www.reddit.com

Consider having the next classes:

java.Class1

java.Class2

java.pkg1.Class3

java.pkg2.Class4

If you write "import*;", it will import nothing (if it compiles).

If you write "import java.*;", it will import Class1 and Class2.

If you write "import java.pkg1.*;", it will import Class3

- gr1n3lack

Site Comments (0)

Please Signin or Signup to add a comment