A programmer needs to create a logging method that can accept an arbitrary number of arguments.Forexample,it may be called in these ways:logIt("log message 1");logIt("log message 2”,”log message 3");logIt("log message 4","log message 5","log message 6");W

题目

A programmer needs to create a logging method that can accept an arbitrary number of arguments.Forexample,it may be called in these ways:logIt("log message 1");logIt("log message 2”,”log message 3");logIt("log message 4","log message 5","log message 6");Which declaration satisfies this requirement()?

A.public void logIt(String*msgs)

B.public void logIt(String[]msgs)

C.public void logIt(String...msgs)

D.public voidl ogIt(Stringmsg1,Stringmsg2,Stringmsg3)


相似考题
更多“A programmer needs to create a logging method that can accept an arbitrary number of argum ”相关问题
  • 第1题:

    Whatkeywordsdoyouneedtotheaccess-listtoprovidetotheloggingmessagelikesourceaddressandsourcemacaddress?()

    A.Log

    B.Log-input

    C.Log-output

    D.Logging


    参考答案:B

  • 第2题:

    如果Number=3,请指出下列语句的真与假。 If Number = 3, point out the truth and false of the following statements. Int(Number * Number) = Number * Number


    错误

  • 第3题:

    下面选项中,哪个头字段用于告知服务器,客户端所使用的字符集?()

    A.Accept-Charset

    B.Accept

    C.Accept-Encoding

    D.Accept-Language


    Accept-Charset

  • 第4题:

    收到;接受;选择(  )。
    A.receive;accept;choice
    B.receive;choice;accept
    C.accept:receive;choice
    D.accept;choice;receive


    答案:A
    解析:

  • 第5题:

    如果Number=3.5,请指出下列表达式的真假。 If Number = 3.5, point out the truth or false of the following expressions. floor(Number * Number) == Number * Number


    错误

  • 第6题:

    24、如果Number=7,下列命题为真。 If Number = 7, point out the truth or false of the following expressions. Sqrt(Number*Number ) == Int(Sqrt(Number*Number))


    错误