top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
294 views
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 LinkedIn Share Button

1 Answer

+1 vote

All standard implementations of java.util.List already implement java.io.Serializable and java.util.List itself is not a subtype of java.io.Serializable,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.

...