LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 2 days agoAnon tries programming in Javalemmy.worldimagemessage-square214fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 2 days agomessage-square214fedilink
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up0·5 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)
.