Fully Qualified Name in Java  | Core Java Online Training

This Core Java Online Training “Fully Qualified Name in Java” explains clearly when we use complete package name while accessing class in java and what are the dis-advantages of import statement.


Fully Qualified Name:

  • Writing complete package name while using any class.
  • We can replace ‘import’ statement with ‘Fully qualified name’.

Fully Qualified Name



  • The main advantage of packages is, ‘Avoiding collisions between class names’.
  • We can define 2 classes with the same name using different packages.
  • We can access duplicate classes from different packages using ‘Fully Qualified Name’.

Accessing Duplicate classes of Different Packages



Share this