Home / MCQ Bank / Computer
Computer Generics In Java Difficulty: Medium

What is the primary advantage of using generics in Java?

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using namespace std; template<class T> class A { T a; public: A(){} ~A(){} }; int main(int argc, char const *argv[]) { A <char>a1; A <int>a2; A <double>a3; cout<<sizeof(a1)<<endl; cout<<sizeof(a2)<<endl; cout<<sizeof(a3)<<endl; return 0; } What will be the output of the following C# code? class Program { static void Main(string[] args) { try { Console.WriteLine("csharp" + " " + 1/0); } finally { Console.WriteLine("Java"); } Console.ReadLine(); } } A(n) _______________ query locates data from one or more tables. BMP stands for ________? Servers are computers that provide resources to other computers connected to a___________?