Correct way of defining the main method - Java Quiz Question


Which of the following is the correct way of defining the main method?


A
class MeritCampus
{
    static public void main(String[] args)
    {
        System.out.println("Merit Campus");
    }
}
B
class MeritCampus
{
    public static void main(String[] args)
    {
        System.out.println("Merit Campus");
    }
}
C
class MeritCampus
{
    static public int main(String[] args)
    {
        System.out.println("Merit Campus");
        return 1;
    }
}
D
Both options A and B