LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 1 day agoAnon tries programming in Javalemmy.worldimagemessage-square233fedilinkarrow-up1817arrow-down133
arrow-up1784arrow-down1imageAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 1 day agomessage-square233fedilink
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up2·2 hours agoYes, because it’s genuinely not a static method. It’s an instance method. Also the signature is different. It’s not some sort of mere syntactic trick that translates void main() to public static void main(String[] args).
Yes, because it’s genuinely not a static method. It’s an instance method. Also the signature is different. It’s not some sort of mere syntactic trick that translates
void main()
topublic static void main(String[] args)
.