posted 15 years ago
Hello Folks,
Can somebody please confirm if this summarized list correct. The list is incomplete too with lots of question marks. Please help me complete the list. Thanks in advance.
Access Modifiers for methods
1. Public method
2. Private method
3. Protected method
4. Default method
Non-access Modifiers for methods
1. Final method
2. Abstract method
3. Static method
4. Synchronized method
5. Native method
6. Strictfp method
Combination of ACCESS + NONACCESS modifiers for methods1. final + abstract --> not allowed
2. final + static -----> allowed
3. final + synchronized --> ?
4. final + native --> ?
5. final + strictfp -->
6. abstract + static --> ?
7. abstract + synchronized --> ?
8. abstract + native --> ?
9. abstract + strictfp --> ?
10. static + synchronized --> ?
11. static + native --> ?
12. static + strictfp --> ?
13. synchronized + native --> ?
14. synchronized + strictfp --> ?
15. native + strictfp --> ?
16. final + with {coderanch, private, default, protected} --> allowed
17. abstract + with {only public } --> allowed
18. static + with {coderanch, private, default, protected} --> allowed?
19. synchronized + with {coderanch, private, default, protected } --> allowed
20. native + with { coderanch, private, default, protected} --> allowed?
21. strictfp + with {coderanch, private, default, protected} --> allowed?