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.