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 / ravindra

true
true

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort a string in alphabetical order in java?

523


What is xslt in java?

510


what is heap memory?

649


Are true and false keywords?

558


Explain where variables are created in memory?

574






What is the difference between integer parseint and integer valueof?

541


How do you execute a thread in java?

498


Define interface in java?

599


What is the difference between conversation & casting?

564


Can you make a constructor final?

571


What is an immutable object? How do you create one in java?

588


How do you override a method?

541


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

499


Can we assign integer value to char in java?

505


What is difference between array and vector?

524