State true or false:- Can a byte object be cast to a double value ?

A) True
B) False

Showing Answers 1 - 7 of 7 Answers

public class Conversion
{
/** * @param args */
public static void main(String[] args)
{
// TODO Auto-generated method stub
Object obj='6';
String str = obj.toString();
double d = Double.valueOf(str).doubleValue();
System.out.println(d);
}
}

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions