- The static modifier for creating class methods and variables
- The final modifier for finalizing the implementations of classes, methods, and variables.
- The abstract modifier for creating abstract classes and methods.
- The synchronized and volatile modifiers, which are used for threads.
C#'s equivalent:
1. Static (same)
2. Sealed (not same) . the
final
keyword using in Java is used to define an entity(including classes, methods) which cannot later be changed. Using Sealed in C# only apply for classes.3. abstract(same)
4. (I don't know. I'm gonna update later)
0 comments:
Post a Comment