How to perform arithmetic operations on double in Java?

Double values can be used in arithmetic operations in Java just like any other primitive data type. For example, to add two double values, you can use the "+" operator:

double x = 5.0;
double y = 10.0;
double result = x + y;

// result is 15.0