What are access modifiers in Java ?

Answer Posted / ravikiran(aptech mumbai)

Access modifiers species the scope of the access of a
particular variable or method
1).public
2).protected
3).private
4).default

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java util function?

508


Why do you canvas?

601


What is the range of a character variable?

537


Is array a class in java?

499


Are variables stored in ram?

549






what state does a thread enter when it terminates its processing? : Java thread

590


Is int primitive data type?

501


What does sprintf mean?

525


design an lru cache in java?

538


What is string manipulation?

486


What do you mean by object?

538


How does a for loop work java?

535


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

534


Can we declare a class as abstract without having any abstract method?

547


What is split return?

486