Category Archives

Array vs ArrayList in Java

In Java, following are two different ways to create an array. Array: Simple fixed sized arrays that we create...

Array vs ArrayList in Java

In Java, following are two different ways to create an array. Array: Simple fixed sized arrays that we create...

Jagged Array in Java

A jagged array is an array of arrays such that member arrays can be of different sizes, i.e., we...

Jagged Array in Java

A jagged array is an array of arrays such that member arrays can be of different sizes, i.e., we...

Final arrays in Java

Predict the output of following Java program. class Test { public static void main(String args) { final int arr...

Final arrays in Java

Predict the output of following Java program. class Test { public static void main(String args) { final int arr...