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

How will you convert an ArrayList to Arrays?

Answer Posted / ramesh

ArrayList arr_obj=new ArrayList()
arr_obj.add("viki");
arr_obj.add("siva");

Object[] obj=arr_obj.toArray();

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a java program have 2 main methods?

1044


Is char a method in java?

1055


What is jit compiler ?

974


What do you understand by the term string pool?

996


Name and explain the types of ways which are used to pass arguments in any function in java.

1069


Does string is thread-safe in java?

1078


Difference between comparator and comparable in java?

1083


Explain heap sort?

1102


Does collectionutils isempty check for null?

1410


What happens if we don’t override run method ?

998


When can you say a graph to be a tree?

1079


What is the final class?

1046


How the interruptible method gets implemented?

969


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

926


Is a method a procedure?

1046