Programming - Generic Types

You Are Here :: Home > JAVA > Generic Types - General Questions

 
1.

A ___________ class represents a class that is type-safe                        


A. generic B. non generic
C. both D. none




2.

Generic classes and generic interface are also known as __________                        


A. parameterized types B. non parameterized types
C. both D. none




3.

Is the programmer need to rewrite the class or interface,when a generic class or generic interfaces is written?                        


A. Yes B. no
C. Cant say D. none




4.

Generic type cannot work with _______________ datatypes                        


A. non primitive B. primitive
C. both D. none




5.

class Myclass { class code; } here is called as __________________________                        


A. class B. method
C. Generic parameter D. all the above




6.

Creating non-generic version of a generic type by the java compiler is called ________                        


A. object B. class
C. Methods D. erasure




1

2

3

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on