1) Final, Static and Interface keywords. (a) Briefly discuss how final prefix is used on attribute, method, and class in order to build a library of security related functions. (b) Discuss the two (2) differences between an interface method and an abstract method, and provide example of an interface with a single method using Java code segment. (c) Briefly discuss how static prefix is used on attribute, method, and class in order to build a library of mathematics functions.
1) Final, Static and Interface keywords.
(a) Briefly discuss how final prefix is used on attribute, method, and class in order to build a library of security related functions.
(b) Discuss the two (2) differences between an interface method and an abstract method, and provide example of an interface with a single method using Java code segment.
(c) Briefly discuss how static prefix is used on attribute, method, and class in order to build a library of mathematics functions.
2. Generics, Exceptions and Parameters.
(a) Create a simple Java program to demonstrate the use of exception handling in Java OOP
(b) Briefly discuss the use of generic type in Java.
(c) Briefly discuss the differences between argument “pass by value” and “pass by reference” parameter. Create a simple Java program to demonstrate pass by value argument.
Step by step
Solved in 3 steps