javascript
Brief description  about Online courses   join in Online courses
View Rintu  M  A 's Profile

Got output on violating interface rules

violation of
1. Fields in an interface must be implicitly public, static, and final
4. All methods are implicitly public and abstract
I got no errors
Asked by Rintu M A | Sep 8, 2010 |  Reply now
Replies (2)
View rintu m--a 's Profile
thank you sir....
Sep 11, 2010
View arun kumar das 's Profile
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