LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 1 year agoAnon tries programming in Javalemmy.worldimagemessage-square247linkfedilinkarrow-up1886arrow-down136
arrow-up1850arrow-down1imageAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 1 year agomessage-square247linkfedilink
minus-squareJackbyDevlinkfedilinkEnglisharrow-up3·1 year 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).