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
Is there a way to increase the size of an array after its declaration?
What do you mean by platform independence of Java?
What are keywords in java?
Is map sorted in java?
What is a conditional statement explain with example?
Explain about oops concepts.
how does the run() method in runnable work? : Java thread
What is application system?
What is stringjoiner ?
What are methods in java?
What is string data?
In the below example, how many string objects are created?
What do you mean by pointer value and address?
What is callable java?
What about member inner classes?