Do you need help in finding the best teacher matching your requirements?
Post your requirement nowCore Java Lessons
Ask a Question
Post a LessonAnswered on 13/12/2024 Learn IT Courses/Java/Core Java
Sana
I am online Quran teacher 7 years
In Core Java, there are two categories of modifiers: Access Modifiers and Non-Access Modifiers.
Access Modifiers (4)
1. *public*: Accessible from anywhere.
2. *private*: Accessible only within the same class.
3. *protected*: Accessible within the same class and subclasses.
4. *default* (no modifier): Accessible within the same package.
Non-Access Modifiers (6)
1. *static*: Belongs to the class, rather than an instance.
2. *final*: Cannot be modified or overridden.
3. *abstract*: Declares a method or class that must be implemented or extended.
4. *synchronized*: Used for thread synchronization.
5. *volatile*: Indicates that a variable may change asynchronously.
6. *transient*: Excludes a variable from serialization.
In total, there are 10 modifiers defined in Core Java: 4 Access Modifiers and 6 Non-Access Modifiers.
read lessAnswered on 13/12/2024 Learn IT Courses/Java/Core Java
Sana
I am online Quran teacher 7 years
Answered on 14/12/2024 Learn IT Courses/Java/Core Java
Rajesh Kumar N
"Rajesh Kumar N: Guiding Young Minds from 1 to 12 with Expertise and Care"
Answered on 14/12/2024 Learn IT Courses/Java/Core Java
Rajesh Kumar N
"Rajesh Kumar N: Guiding Young Minds from 1 to 12 with Expertise and Care"
Answered on 14/12/2024 Learn IT Courses/Java/Core Java
Rajesh Kumar N
"Rajesh Kumar N: Guiding Young Minds from 1 to 12 with Expertise and Care"
Ask a Question