Java 2D and 3D Array

In Java, it is also possible to create an array of arrays known as multidimensional array. For example, we can declare and initialize a 2D array like bellow: int[][] twoDArray = new int[3][4]; In above example, there is 3 Rows and 2 columns. Look at...

What is Generics?

Generics is one type of facility of the generic programming and in 2004, it was added to the Java programming language in the java official release version J2SE 5.0

In 1998, Gilad Bracha, David Stoutamire, Martin Odersky and Philip Wadler created Generic Java as an extension to the Java language to support generic types. Generic Java was merged in Java with the addition of wildcards.