If d is Double, then compiler definitely knows it is not a Date. so it will give a compiling error;
String s = "ddd"; System.out.println(""+ s instanceof String); Double d = 1d; System.out.println(d instanceof java.util.Date);
String s = "ddd"; System.out.println(""+ s instanceof String); Double d = 1d; System.out.println(d instanceof java.util.Date);
Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...
No comments:
Post a Comment