Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can a double value be cast to a byte?

Answer Posted / ravikiran(aptech mumbai)

yes
double d=22.55;
byte b=(byte)d;

Is This Answer Correct ?    34 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of checked and unchecked exceptions in JAVA?

1009


Can classes declared using the abstract keyword cab be instantiated?

1046


If we don’t want some of the fields not to serialize how to do that?

1010


Can you use this() and super() both in a constructor?

981


Can an integer be null java?

1006


Can It is possible to synchronize the constructor of a Java Class?

1119


what is the difference between yielding and sleeping? : Java thread

962


Can we override static methods in java?

1068


Why do we override tostring method in java?

959


How to sort an unsorted array in java?

1131


Tell me are there implementations for sorting and searching in the java libarary?

1032


Describe method overriding

1126


Can we have any code between try and finally blocks?

1016


What is the differences between heap and stack memory in java? Explain

982


What is an inner class in java?

967