File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Why we can't decare doPost() as default access specifier?
Soumya Ranjan Mohanty
Joined: Mar 07, 2010
Mar 18, 2010 00:43:28
Why We declare the
class as Public and
as public or protected??
Joined: Jan 28, 2008
Mar 18, 2010 02:27:06
You cant reduce the visibility of doPost in Subclass .it is one of the Override rule.
also public servlet class is visible to other packages also.
I agree. Here's the link:
subject: Why we can't decare doPost() as default access specifier?
dopost() and doget() methods
doGet(), doPost() implementation
Why Not Overload Service Method.
doGet and doPost
[IMP]Whydoes it give 403 Method not found exception..??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015