All Stories

Java - no_image

Resizable: Array is static in size that is fixed length data structure, one cannot change the length after creating the Array object. ArrayList is dynamic in size. Each ArrayList ...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Inner classes vs Static nested classes

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

int vs Integer

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Semaphore vs MonitorBoth semaphores and monitors are used to solve the critical section problem (as they allow processes to access the shared resources in mutual exclusion) and to ach...

In tutorial, no_image, java, Jan 23, 2025

Java - java_map

Map interface An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value.

In tutorial, java_map, java, Jan 23, 2025

Java - no_image

Java Comparable interface is used to compare objects and sort them according to the natural order.

In tutorial, no_image, java, Jan 23, 2025