Java: Java Programming For Beginners a simple Start To Java Programming (Written By a software Engineer)


Download 0.82 Mb.
Pdf ko'rish
bet19/95
Sana09.01.2022
Hajmi0.82 Mb.
#261112
1   ...   15   16   17   18   19   20   21   22   ...   95
Bog'liq
Java Programming For Beginners - A Simple Start to Java Programming ( PDFDrive )

Access Control Modifiers:
Java gives various access modifiers to set access levels for classes, variables, routines and
constructors. The four right to gain access are:
Private: visible to the class.
Default: visible to the bundle. No modifiers are required.
Secured: visible to all subclasses and package.
Public: visible to the world.
Non Access Modifiers:
Java gives various non-access modifiers to attain numerous other usefulness.
Static:
The static modifier for making class variables and methods.
Final
The final modifier for concluding the executions of classes, variables and methods.
Abstract
This modifier is used for for creating abstract methods and classes.
Volatile and Synchronized


These modifiers are typically used for threads.




Download 0.82 Mb.

Do'stlaringiz bilan baham:
1   ...   15   16   17   18   19   20   21   22   ...   95




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling