gs gs128 Java Generics - Java Generic Methods - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 8 multiple choice questions (MCQs) to prepare and belongs to topic Java Generics. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: What are generic methods?
Generic methods are the methods defined in a generic class
Generic methods are the methods that extend generic class methods
Generic methods are methods that introduce their own type parameters
Generic methods are methods that take void parameters
Question 4: Which of these is an correct way of defining generic method?
<T1, T2, …, Tn> name(T1, T2, …, Tn) { /* … */ }
public <T1, T2, …, Tn> name<T1, T2, …, Tn> { /* … */ }
class <T1, T2, …, Tn> name[T1, T2, …, Tn] { /* … */ }
<T1, T2, …, Tn> name{T1, T2, …, Tn} { /* … */ }
Question 5: Which of the following allows us to call generic methods as a normal method?
Type Interface
Interface
Inner class
All of the mentioned