Sunday, 26 June 2016

Can abstract have a static main method?

Yes. it can.

abstract class means it cannot be instantiated into objects. However, invoking a static method doesn't depends on any instance of a class. So even abstract class it is able to have static main method.


No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...