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

Give me an example of array and linked list? Where they can be used?

1012


Difference between ‘is-a’ and ‘has-a’ relationship in java?

1021


What is a linkedhashmap java?

1014


Explain different ways of creating a thread. Which one would you prefer and why?

1050


What is lifetime variable?

969


Should database connections be singleton?

971


Is string is a data type?

958


Why main method is called first in java?

1015


What is the difference between a local variable and an instance variable?

1120


What is the difference between actual and formal parameters?

958


Is space a char?

935


Explain about assignment statement?

1033


Why can't we override private static methods?

980


When do we use hashset over treeset?

1068


What is passing value java?

1070