1

What is the difference between the following two import Statements :-

  1. import java.lang.Math.*;
  2. import java.lang.Math;

As per my knowledge, normal import (not static import) imports all the classes of a package or a specific class but then what statement 1 (above) means.

Note: both statements compile.

assylias
  • 310,138
  • 72
  • 642
  • 762

0 Answers0