Hi Rintu,
Fields in an interface are implicitly are public, static and final no need to declare as public, static and final.If you declare using these keywords or simply without these keywords there will be no problem means there is no need to declare explicitly these keywords same with the methods declaration(as it is implicitly declared).That's why you are not getting errors.
If you have still any doubt please send your program code with your query.
Thanks.
Java Teacher
Sep 10, 2010