zoukankan      html  css  js  c++  java
  • Main函数剖析

    主函数的特殊:

    1 格式固定

    2 被jvm识别和调用

    public static void main(String[] args)

    public :权限是最大的

    static:不需要对象 直接用主函数即可

    void:主函数没有具体的返回值

    main:函数名,不是关键字,是jvm识别的固定名字

    String[] args:主函数的参数列表,是一个数组类型的参数,元素都是字符串类型

  • 相关阅读:
    Chisel3
    Chisel3
    Chisel3
    Chisel3
    Chisel3
    Chisel3
    Chisel3
    Chisel3
    Chisel3
    UVa 12716 (GCD == XOR) GCD XOR
  • 原文地址:https://www.cnblogs.com/xiaofan21/p/2997230.html
Copyright © 2011-2022 走看看