Answer Posted / shekhar suchak
private:it can be access within the block or we can aslo say that within the class.
public:"every where,any where" just one line ans.
protected:it can be access within package and outside of package.but there should be inheritense.
default:it will be access within the package.
class can not be private and protected.its only default and public.we dont have to mention 'default' keywords it always be there,but invisible.
Thanks & Regards
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can an integer be a string?
What is the difference between method and means?
How do I find and replace in word?
how to one war file class to another war file class?
What is thread pool in java with example?
Can size_t be negative?
what is meant by Byte code concept in Java?
Can we serialize static variables in java?
What is bufferedreader in java?
What restrictions are placed on method overloading in java programming?
Explain about the dynamic behavior of core java?
What is a programming object?
How do you calculate roots in java?
What are selection structures?
What is a void method java?