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
Give us the name of the list layoutmanagers in java?
Describe string intern() methodology
Describe what happens when an object is created in java ?
Which sorting is best in java?
What is difference between path and classpath?
Can You Have Virtual Functions In Java?
What is identifier give example?
How java enabled high performance?
Why for each loop is used?
Explain about anonymous inner classes ?
What is difference between equals and hashcode method?
What do you mean by hashing?
What is the r character?
What are the benefits of operations in java?
List some oops concepts in java?