This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am new to java and while I was going through it i read that all the members inside an interface should be public.
Can anyone please tell me why we cannot give any other access modifier other than public inside an interface to method or variable. and please don't write like it is the way java accepts i knew that but want to know why ?
wht's the logic behind that. Why cannot it be protected ?