Monday 13 February 2012

Why Dot class file name and name of the class should be same?
  
   ANS : When JVM searches for class it will look at the file name of the Dot class file , it will not look in to the byte code of the Dot class file . 

      So if  we are searching for a particular class let us say "House" class in a particular JAR file ,  there is a House class in that  JAR File but the file name[byte code file] of that  House class is Apple then ,JVM cannot able to figure out House class , so inorder to avoid that confusion Dot class file name and class name should be same.

See the below image to understand how it works....


[Any Doubt please  , Feel free to ask i will try my level best to clear your doubt]

1 comment:

  1. Casinos near Casinos in Maryland
    Best Casinos Near Casinos 광주 출장안마 in Maryland. Discover casinos in Maryland, 제천 출장안마 with reviews, list of Casinos & the best slots in What 김제 출장안마 is there to do near Casinos 경상남도 출장안마 in Maryland?Can I use 전주 출장샵 my email address for picking up a ride to a Casino near me?

    ReplyDelete