Sudheer Notam

    0

    1

    Sudheer Notam

    In the Java example, the static void main() method is called first. This method prints “JAVA”. Next, the main() method in the static class Demo is called. This method prints “Spring”. Finally, the void main() method in the public class Demo is called. This method prints “Hibemate”.

    Public class Demo{
    Void main(){
      System.out.println(“JAVA”);
    }
    Static void main(String args){
      System.out.println(“Spring”);
    }
    Public static void main(String[]args){
      System.out.println(“Hibemate”);
    }
    Void main(Object[] args){
      System.out.println(“Apache Camel”);
    }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.