Multiple choice technology programming languages

What ia the result when you add a double value to a String?

  1. double

  2. string

  3. int

  4. float

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When you add a double value to a String in Java, the double is automatically converted to a String representation and concatenated with the original String, resulting in a new String. This is string concatenation, not arithmetic addition.