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...

what is object type casting? give some example with related?

Answer Posted / aaratim

Object type casting is converting a object type into another
type. For example

Iterator ite = emplist.iterator();
while(ite.hasNext()){

Employee empObj = (Employee)ite.next();

}

Here ite.next returns instance of type Object, we need to
convert it to type Employee so this is called type casting.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism in java? What are the kinds of polymorphism?

1115


Does set allows null in java?

1015


Can inner class have constructor?

1095


What is compiler and what its output.

1197


Why are arrays useful in java?

1073


What is the public field modifier?

1076


What are operators and its types?

1108


What is object-oriented paradigm?

1110


How finally used under exception handling?

985


What is hashtable and explain features of hashtable?

1041


What is array in java?

1052


What is balanced tree in java?

1014


What does null mean in java?

1126


What is difference between fileinputstream and filereader in java?

1111


Can a class be defined inside an interface?

1074