What will be printed out as a result of the following code compilation and execution?

public class Quest {
    public static void main() {
    public static void main(String args) {
    public static void main(String[] args) {
The correct syntax for method main() is in the one that prints "C". Only this method will be run when application starts. Other methods are correctly defined, they have same name, this is called overload so no errors will occur.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по Java
Зарегистрируйся сейчас
или Подпишись на будущие тесты