why does System.out.println(e.getCause()); gives null? And can store whole HashSet collection like this?
System.out.println(e.getCause());
null
private void saving() thro
Use printStackTrace() instead of getCause().
printStackTrace()
getCause()
And yes, you can save a whole collection (as long as it holds objects that implement Serilizable).