Answer Posted / tapan kumar kundu
Using toArray() method for example
ArrayList arr_obj=new ArrayList()
arr_obj.add("viki");
arr_obj.add("siva");
Object[] obj=arr_obj.toArray();
for further Detail go to my website :
http://www.beexpert.co.in/
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is difference between protected and private?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What is the purpose of using java.lang.class class?
What is the difference between sop and work instruction?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
What are the new features in java 8? Explain
What are the loops in java?
What is a java list?
What do you understand by a Static Variable?
Difference between java and javascript
Can we write class inside a class in java?
How to do encapsulation in java?
What is return code?
What are different types of constants?
What is a percentage sign called?