Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making Static class Serializable ?

Status
Not open for further replies.

db2sachin

Programmer
Jun 9, 2003
24
0
0
AU
I have an object 'FOO' which implements Serializable & it contains following Object 'XYZ' within it. Is it correct to have 'ABC' as Serializable as it is Static class within 'XYZ' ? I intend to pass 'FOO' to EJB using RMI. So, it should be Serializable which implies that 'XYZ' & 'ABC' should also be Serializable.
Please suggest. Thanks in advance.

public class XYZ implements Serializable
{
private static class ABC implements Serializable
{
private final static DateFormat DATE_FORMATTER =
DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT);

private long startTime;
private long endTime;
private String subject;
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top