This is expected in java programming language. Java Programming 2-3: Generics Pr
ID: 3850410 • Letter: T
Question
This is expected in java programming language.
Java Programming 2-3: Generics Practice Activities Lesson objectives: Create a custom generic class Use the type interface diamond to create an object Use generic methods Use wildcards Use enumerated types Vocabulary: Identify the vocabulary word for each definition below This is a special type of class that associates one or more non-specified Java types. A type interface diamond is what 2 characters A datatype that contains a fixed set of constantsExplanation / Answer
1) Answer for first task
a. A generic class is a type of class that associates one or more non-specific Java types with it. The types are determined when an object of that class is created.
b.It allows you to create a generic method as you would an ordinary method, without specifying a type between angle brackets.It is represented by the angle brackets
c. Enum in java is a data type that contains fixed set of constants.
It can be used for days of the week (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY and SATURDAY) , directions (NORTH, SOUTH, EAST and WEST).
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.