posted 22 years ago
Question 196)
Read the code below carefully.
import com.abhilash.abhilash;
public class One
{
public static void main()
{
abhilash a = new abhilash();
}
}
The code will fail to compile. The class com.abhilash.abhilash can never be imported.
The code will compile. Runtime error occurs if one of the class in the import does not exist and is referenced.
The code will compile and run with out any problem.
the ans is 1st. why? the first abhilash is package,the second is class, is there anything wrong with it?