Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the serialver syntax to get the serialVersionUID of an array?

array serialVersionUID syntax
0
Posted

Whats the serialver syntax to get the serialVersionUID of an array?

0

Location: http://www.jguru.com/faq/view.jsp?EID=468625 Created: Aug 4, 2001 Modified: 2001-08-05 11:25:04.557 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) You need to pass in the array “type” after the [ character, and before a ; character. If the type is a class, add the letter L and the fully qualified class name. If the type is a primitive, the type codes are specified in ObjectStreamField.getTypeCode(), you can almost just capitalize the first letter and place after [. Though, that isn’t always the case. For boolean, use Z instead of B, for long use J since L is already taken for classes and interfaces. For instance, for the String class the syntax is serialver “[Ljava.lang.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.