package com.valami; public class Ferrari { private int v = 0; private void alam() { System.out.println(\"alam\"); } public Ferrari() { System
The only special feature of the main method is it is used to tell the compiler where program execution should begin. Other than that it behaves just like any other class method and has access to private variables like any other class method.