a) Generics provide type safety by shifting more type checking responsibilities to the compiler b) Generics and parameterized types eliminate the need for down casts when using Java Collections c) When designing your own collections class (say, a ...
Gkbix Latest Questions
a) class name(T1, T2, …, Tn) { /* … */ } b) class name<T1, T2, …, Tn> { /* … */ } c) class name[T1, T2, …, Tn] { /* … */ } d) class name{T1, T2, …, ...
a) Generics make code more fast b) Generics make code more optimised and readable c) Generics add stability to your code by making more of your bugs detectable at compile time d) Generics add stability to your code ...
import java.lang.reflect.*; class Additional_packages { public static void main(String args[]) { try { ...
import java.awt.*; import java.applet.*; public class myapplet extends Applet { Graphic g; g.drawString("A ...
import java.lang.reflect.*; class Additional_packages { public static void main(String args[]) { try ...
import java.lang.reflect.*; class Additional_packages { public static void main(String args[]) { ...
a) java.rmi b) java.awt c) java.util d) java.applet