int a=1;
float b=1.0;
System.out.println(a==b);

Answer Posted / sudha

if u write
int a=1;
float b=1.0f;
system.out.println(a==b);

answer woill b true...as of now it wont compile

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is special character in java?

616


What technique is carried out to find out if a particular string is empty?

577


Which is better stringbuffer or stringbuilder?

533


What is boolean in java?

515


What is the purpose of using break in each case of switch statement?

567






How to sort an unsorted array in java?

613


How many days will it take to learn java?

520


Print Vertical traversal of a Binary Tree.

612


How many threads can java run?

563


How do you get the length of a string in java?

525


What is a instance variable?

586


How do you create a first line indent?

510


What are encapsulation, inheritance and polymorphism?

531


State the difference between strings and arrays.

603


Can inner class final?

637