Question:
What modifiers are allowed for methods in an Interface?
Answer:
Only public and abstract modifiers are allowed for methods in interfaces. Source: CoolInterview.com
in my point of view by default all the methods in a interface are public and abstract and all the variables are public static and and final. so only public and abstract modifiers are allowed for methods in interfaces. Source: CoolInterview.com
Answered by: satish | Date: 12/11/2009
| Contact satish
the abstract variable is that constant that can not change the value of your assingning the value. that can be import all the assigning and declarative part of the program Source: CoolInterview.com
Answered by: vishal | Date: 1/9/2010
| Contact vishal
Interface can have methods and member variables. Below are the access specifiers that we can use in Interface.
Interface methods should be PUBLIC
Interface Variables should be PUBLIC, Static and FINAL. Source: CoolInterview.com
Answered by: Venu | Date: 1/10/2010
| Contact Venu
Interface can have variable and methods .
Interface methods should PUBLIC ,ABSTRACT
Interface Variables Should be PUBLIC ,STATIC,FINAL. Source: CoolInterview.com
Answered by: kalyan | Date: 7/5/2010
| Contact kalyan
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|