“Основной метод на Java” Ответ

Основной метод

Main method / main public static void main (String [] arg)
-Public can be anywhere inside or outside package Access Modifier
-Static keyword it means there is only 1 copy specific variable or method and main usage of static you can access it no object. You can call from the class name. It belongs to class
-void means no return type no value at the end
-main is just the name of the method this is method is responsible for running the java application.

Ozzzy

Java Main

//Java main
class myClass {
    public static void main(String[] args) {
        //code
    }
}
HydroBrodo

Главный метод Java


public class ArgumentExample {
    public static void main(String[] args) {
        for(int i = 0; i < args.length; i++) {
            System.out.println(args[i]);
        }
    }
}

Precious Porpoise

Ответы похожие на “Основной метод на Java”

Вопросы похожие на “Основной метод на Java”

Больше похожих ответов на “Основной метод на Java” по Java

Смотреть популярные ответы по языку

Смотреть другие языки программирования