Generic Class in Java
A class that is declared generic type is called generic class in Java. It is type-safe and can act upon any data type. A generic class is also called “parameterized types” because it uses a parameter that determines which data…
A class that is declared generic type is called generic class in Java. It is type-safe and can act upon any data type. A generic class is also called “parameterized types” because it uses a parameter that determines which data…

Generics in Java is a mechanism that allows writing code for one type (say T) that is applicable for all types of data, instead of writing separate classes for each type. Let’s understand it with the help of an example.…

In this tutorial, we will learn how to create arrays of objects in Java with the help of example programs. So far, we have studied in the previous tutorial that an array in Java is an ordered, sequential group of…
Finalization in Java is an action that is automatically performed on an object before the memory occupied by the object is freed up by the garbage collector. The block of code that contains the action to be performed is called…

Garbage collection in Java is the process of automatically freeing heap memory by deleting unused objects that are no longer accessible in the program. In other simple words, the process of automatic reclamation of runtime unused memory is known as…
Creating your own annotation is called custom annotation or user-defined annotation in Java. It is very easy and more interesting to create your own annotation than using core java or third-party annotations. A custom annotation is declared by using the…
An annotation in Java is a kind of note (or documentation) in the application source code to instruct the Java compiler to do something. When the Java compiler sees annotation in a particular source code, it knows that it needs…
Here, we have listed the most important internet technology MCQ GK questions with the best possible answers. These internet MCQ questions can be asked in any competitive examinations like SSC CGL, IBPS (Clerk and PO), RRB, Group-D, etc. We have…

Sorting an array in Java means arranging elements of an array in a specific order, either in ascending or descending order. Sorting, like searching, is the most common task in computer programming. It is the process of arranging a list…