What is Access Modifier in Java | Public, Private,Protected, Default | Most Asked Interview Question

preview_player
Показать описание
Access modifiers are keywords placed before attributes, methods, or classes to manage how they're accessed. They restrict which methods, classes, or packages can use the modified data.

Access modifiers are also sometimes referred to as visibility modifiers. This is an intuitive way of saying that they describe how visible certain parts of a program are to other components that may wish to access them.
Рекомендации по теме
Комментарии
Автор

it's really hard to give this amount of knowledge in a short video.
amazing man really appreciable. 👍

dipankarbarman
Автор

Make more such sort vedios...all the vedios are very helpful for me, instead of watching long vedios I preferred short ones. All my doubts were covered.. Do post more java vedios.. Thank you

madhaviingale
Автор

What is the difference between public and published?

johnymadrita
Автор

we knw what is access modifier but issue is when these modifier usess for specific way what the concept..

penchant
Автор

Speed thoda Kam kr dijiye bolne ki kuch samgh nhi aata

rajvardhansingh
Автор

when n how these are opted to use for specific need fro this access modifier ...and why? and you just defination the topic nor cleartiy provided just blabbering on short disgust its has

penchant