Shivkant Pandey

Greenhorn
+ Follow
since May 07, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shivkant Pandey

Hi All,

I am new to this community. I have few questions in my mind taking Interface

1) Interface can have variables and internally makes it public static and final. If we talk design wise where exactly we may need these variables?

And also in case an interface I1 extends another interface I2 then if I2 has a variable
public static final int testValI2=12;
so design wise this variable is accessible to I1. When we will be this kind of situation? Inheritance is the property of classes not of Interface so what does it exactly means when an interface is exteding another interface?

2) if Class A implements Interface I1 and interace has a variable which by default will be static? So when this variable be loaded as this is static?

Thanks
Shivkant
13 years ago