What happens when you add double value to String ?
Answer : Result would be String object. Please see example below:
package com.javahonk.operatortest; public class StringTest { public static void main(String[] args) { String value = "Java Honk"; double d = 55.0; value = value + d; System.out.println(value); } }
Output: