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 static block?

1018


What is local class in java?

1048


What is the disadvantage of synchronization?

982


What is the maximum size of byte array in java?

977


Explain the importance of finally over return statement?

1006


Can we override private method?

1056


What do you mean by order of precedence and associativity?

906


What is difference between static and final?

1029


What's the base class of all exception classes?

1033


What is the difference between abstract classes and interfaces?

987


What is array initialization in java?

1016


What are the types of java languages?

942


Explain the scope or life time of class variables or static variables?

952


How do you check if a number is a perfect square?

955


What is the main advantage of passing argument by reference?

925