LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 2 years agoAnon tries programming in Javalemmy.worldexternal-linkmessage-square248linkfedilinkarrow-up1889arrow-down136
arrow-up1853arrow-down1external-linkAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 2 years agomessage-square248linkfedilink
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up3·2 years 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).