public class Test

{

public static void main(String ar[])

{

Integer a = 10;

Integer b =10;

Integer c = 145;

Integer d = 145;

System.out.println(a==b);

System.out.println(c==d);

}

}

Answer Posted / sonalgusain99@gmail.com

1.true,true

2.false,true

3.true,false







plz also gv explanation

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of java?

561


What is an infinite loop?

549


How to check if a list is sorted in java?

590


Can we overload the constructors?

563


Define locale.

590






Explain the key functions of data binding?

586


how to create multithreaded program? : Java thread

509


What are scriptlets?

599


Can we create an object of static class in java?

598


What is the final variable?

583


Can we print null in java?

575


Can I declare a class as private?

597


what is collatration?

2745


What does escaping a character mean?

536


What is the difference between jdk and jre?

612