import static java.lang.System.out; /* imports static 'out' variable */
import static java.lang.Math.*; /* imports all the static methods of 'Math' class */
public class ImportStatic
{
public static void main(
String[] args)
{
out.println("sqrt "+sqrt(2.0));
out.println("tan "+tan(60));
}
}
while we import 'static' members, is there any possibility of naming confliction?
If there any,then how the compiler resolves it?