I was learning how to use the interface thing in java. I have couple of questions.Firstly, i really like the Interface thing because it helps me to declare methods and i can use those methods in different classes with different functionality. That's the cool part. Ok, this idea of declaring a method in the interface and then using it in different classes in different ways..isn't this polymorphism? Also, i was thinking it would be really easy if i can declare variables in the interface and then use those variables in my other classes but the problem is , whenever i try to reinitialize the value of the variables, it gives me the error called variable declared as final(Can't be modified). Is there no way i can use the variables declared in the interface in my other classes?
I am still new in java and so if my questions sounds stupid, I am sorry! .Thanks