What does 'public static void' mean in Java?

后端 未结 9 1061
忘掉有多难
忘掉有多难 2020-11-29 14:29

What does public static void mean in Java?

I\'m in the process of learning. In all the examples in the book I\'m working from public static void

9条回答
  •  隐瞒了意图╮
    2020-11-29 15:12

    • public means you can access the class from anywhere in the class/object or outside of the package or class
    • static means constant in which block of statement used only 1 time
    • void means no return type

提交回复
热议问题