14. Predict the output :
Integer c = 155;
Integer d = 155;
System.out.println(c == d);
System.out.println(c.equals(d));
Share
14. Predict the output :
Integer c = 155;
Integer d = 155;
System.out.println(c == d);
System.out.println(c.equals(d));
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
Explanation:
14. Predict the output :
Integer c = 155;
Integer d = 155;
System.out.println(c == d);
System.out.println(c.equals(d));
output =155