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

true
true

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the restriction imposed on a static method or a static block of code?

680


What is a values collection view ?

758


What is sleep method?

704


What is the difference between static and non-static variables in java programming?

601


How many static init can you have?

784






Give few difference between constructor and method?

604


Can we execute java program without main method?

601


What is the static method?

649


Can I learn java without any programming experience?

673


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1648


What are the properties of thread?

572


How infinite loop is declared?

644


How do you compare objects in java?

591


What about anonymous inner classes in java?

667


Is sizeof a preprocessor?

635