Knowee
Questions
Features
Study Tools

What is the syntax for defining a generic class in Java?Select one:a. class MyGen<T>b. class <MyGen>[<T>]c. class <MyGen>d. class <MyGen>(T)

Question

What is the syntax for defining a generic class in Java?Select one:a. class MyGen<T>b. class <MyGen>[<T>]c. class <MyGen>d. class <MyGen>(T)

🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct syntax for defining a generic class in Java is:

a. class MyGen<T>

Similar Questions

0/0

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.