LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 10 days agoAnon tries programming in Javalemmy.worldexternal-linkmessage-square248fedilinkarrow-up1872
arrow-up1872external-linkAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 10 days agomessage-square248fedilink
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up3·8 days 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)
.