why do we have public static void main(String[] args) in java code example Example: public static void main(String[] args) public static void main(String[] args)