12. Constants in Java
1. What is constant in java?
2. Ways to create constance.
3. What is enum?
4. Why was ENUM introduced in Java? Benefits of using.
5. ‘Classical’ constants vs enums.
6. Best practice to create, keep constances.
7. Constants in interfaces ? (YH)
13. Constructors and methods
1. What is a constructor?
2. Rules to define a constructor.
3. Default constructor.
4. Constructor chaining.
5. Constructor and method comparison.
6. A method signature, rules, best practice.
7. Overloading and overriding methods comparison, rules, best practice.
8. Exception handling in overloading and overriding.
14. Final keyword
1. Final class usage in java. Best practice.
2. Final vs Abstract class.
3. Final method rules, best practice.
4. Abstract method vs final method.
5. Final variable.
6. Does a final variable require initialization?
7. Blank final field.
8. Final parameters: when to use, best practice.
9. Final local variables rules, best practice.
Dostları ilə paylaş: