View Single Post
  #13 (permalink)  
Old 08-30-2008, 08:37 PM
j2vdk's Avatar
j2vdk j2vdk is offline
Member
 
Join Date: Aug 2008
Posts: 45
j2vdk is on a distinguished road
Quote:
Originally Posted by Norm View Post
That looks like an OS that is not case sensitive, like windows.
You can NOT have the files: c.class and C.class in the same folder!
u said-"tat looks like OS", cant underswtand this ...

if im giving names as c and C then it wont work, are u saying this??


suppose i give names cat & CAT as clas names- i get same error while executing,,,, but gets compiled...



TRY THIS::::: and tell me.... y im asking u is,i was asked this question an cant find the solution....anyway thanx for replying...

class cat{
cat(){
System.out.println("cat");
}
}
class CAT extends cat{
CAT(){
System.out.println("CAT");
}
}
class a{
public static void main(String ar[]){
new CAT();
}
}
Reply With Quote