top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How do you serialize a string into a list in Java?

+1 vote
How do you serialize a string into a list in Java?
posted Feb 19, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

All standard implementations of java.util.List already implement and java.util.List itself is not a subtype of,it should be safe to cast the string into a list to Serializable, as long as we know it's one of the standard implementations like ArrayList or LinkedList.

answer Mar 22, 2016 by Shivam Kumar Pandey
Similar Questions
+2 votes

I want to convert a string say "98989" into an integer without using any library functions in java. Give fastest way to do it and explain why your method is best.

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.