LogiQuest
Back to Inner Classes
7

What is the output of the following program?

public class Main {
    static class Helper { static int add(int a, int b) { return a + b; } }
    public static void main(String[] args) {
        System.out.println(Helper.add(2, 5));
    }
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.