what is the difference between the "protected and default"
modifiers?
Answer Posted / naveen
default is accessble with in package only, protectd is also
same but if any class out side the package extends the
protected class then it is also accesesible means all sub
classes(what ever the package) of protechted class can
access the protected class what ever the package
i know this answer if any one has another one or if it is
not correct answer than post a correct answer
| Is This Answer Correct ? | 64 Yes | 7 No |
Post New Answer View All Answers
Can I override protected method in java?
Does collectionutils isempty check for null?
What is merge sort in java?
What are anonymous inner classes?
Explain about narrowing conversion in java?
What is use of static in java?
Can you explain the final method modifier?
What is use of set in java?
What is dot operator?
How many decimal digits is 64 bit?
What is java in detail?
Explain the reason behind ending a program with a system.exit(0)?
How many bytes are a float?
Why we use multi threading instead of multiprocessing?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview