Java Articles

Sorted By: Most Recent
Abhinav Pandey Abhinav Pandey
Updated on June 14, 2024

Java Switch Case Explained

Java switch case is a tool that selects a code block to execute based on the value of a given expression. It’s used to replace multiple if-else statements. Here’s how to do it.

Image: Shutterstock / Built In
Akshay Kumar Akshay Kumar
Updated on January 18, 2024

A Guide to HashMap in Java With Examples

HashMap is a popular data structure in Java that uses the Map interface and a hash table to provide efficient access and manipulation of data based unique keys.

Image: Shutterstock / Built In
Parul Malhotra Parul Malhotra
Updated on January 10, 2024

Why 0.1 + 0.2 Doesn’t Equal 0.3 in Most Programming Languages

In code, 0.1 + 0.2 doesn’t equal 0.3 due to floating point arithmetic. Learn why that is and how floating point arithmetic works.

Image: Shutterstock / Built In