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

题目

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 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"”相关问题
  • 第1题:

    What are the three main parts of a syslog message? ()(Choose three.)

    A. severity level

    B. facility

    C. log message name

    D. time stamp

    E. error codes

    F. access privilege


    参考答案:A, C, D

  • 第2题:

    What are the three main parts of a syslog message? ()(Choose three.)

    • A、severity level
    • B、facility
    • C、log message name
    • D、time stamp
    • E、error codes
    • F、access privilege

    正确答案:A,C,D

  • 第3题:

    Which three of the following are components of a syslog message? ()(Choose three.)

    • A、time stamp
    • B、error codes
    • C、severity level
    • D、log message name

    正确答案:A,C,D

  • 第4题:

    What keywords do you need to the access-list to provide to the logging message like source address and source mac address?()

    • A、Log
    • B、Log-input
    • C、Log-output
    • D、Logging

    正确答案:B

  • 第5题:

    A programmer needs to create a logging method that can accept an arbitrary number of arguments. For example, it may be called in these ways:  logIt(”log message 1 “);  logIt(”log message2”,”log message3”);  logIt(”log message4”, “log message5”, “log message6);  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 void logIt(String msg1, String msg2, String msg3)

    正确答案:C

  • 第6题:

    Which command do you use to identify the meaning of a syslog message?()

    • A、help log messages
    • B、man log messages
    • C、man syslog
    • D、help syslog

    正确答案:D

  • 第7题:

    Which information would you find using the CLI help function?()

    • A、message of the day
    • B、tip of the day
    • C、explanation for specific system log error messages
    • D、explanation for specific traceoptions log messages

    正确答案:B,C

  • 第8题:

    In your database, the Log Writer (LGWR)  process is unable to write to a member of a current redo log group due to read/write failure. Which two effects would you see in your database?()

    • A、The database instance aborts.
    • B、The database operation temporarily halts till the member becomes available.
    • C、Writing proceeds as normal. LGWR writes to the available members of a group and ignores the unavailable members.
    • D、The member would be marked as STALE and an error message would be written to the alert log file and LGWR trace file.
    • E、The status of the group changes to INACTIVE and an error message would be written to the alert log file and LGWR trace file.

    正确答案:C,D

  • 第9题:

    单选题
    Which statement is true regarding syslog on Junos devices?()
    A

    No logging is enabled by default

    B

    By default the information is stored in all file named events

    C

    Only the message severity level must be configured

    D

    You can configure the router to send log messages to the console


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    public class MyLogger {  private StringBuilder logger = new StringBuuilder();  public void log(String message, String user) {  logger.append(message);  logger.append(user);  }  }  The programmer must guarantee that a single MyLogger object works properly for a multi-threaded system. How must this code be changed to be thread-safe?()
    A

     synchronize the log method

    B

     replace StringBuilder with StringBuffer

    C

     No change is necessary, the current MyLogger code is already thread-safe.

    D

     replace StringBuilder with just a String object and use the string concatenation (+=) within the log method


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    A programmer needs to create a logging method that can accept an arbitrary number of arguments. For example, it may be called in these ways:  logIt(”log message 1 “);  logIt(”log message2”,”log message3”);  logIt(”log message4”, “log message5”, “log message6);  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 void logIt(String msg1, String msg2, String msg3)


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    sendmail日志功能可以用来记录该服务的事件,其日志保存在哪个目录下。()
    A

    /var/log/message

    B

    /var/log/maillog

    C

    /var/mail/maillog

    D

    /var/mail/message


    正确答案: B
    解析: 暂无解析

  • 第13题:

    协议代理DTPROXY包含以下哪些配置文件:()

    • A、DtProxy.ini
    • B、DtProxyDll.ini
    • C、DtProxy.dat
    • D、message.log

    正确答案:A,B

  • 第14题:

    When the AIM-CUE is being used, where do log messages go if the log file is full?()

    • A、The initial log file is named message.log.prev, and a new file named message.log is started. 
    • B、Once the log file is full, the oldest log entries are dropped to make space for new entries. 
    • C、When the log file becomes full, it is automatically copied to an external server and a new message.log file is started. 
    • D、Once the log file becomes full, it stops logging new messages and the new log messages are lost.

    正确答案:D

  • 第15题:

    sendmail日志功能可以用来记录该服务的事件,其日志保存在哪个目录下。()

    • A、/var/log/message
    • B、/var/log/maillog
    • C、/var/mail/maillog
    • D、/var/mail/message

    正确答案:B

  • 第16题:

    Publishing was successful but the store won’t launch.  Which log should be checked for errors after tracing has been enabled?()

    • A、trace.log
    • B、message.txt
    • C、activity.log
    • D、trace.txt
    • E、SystemOut.log

    正确答案:A,C

  • 第17题:

    public class MyLogger {  private StringBuilder logger = new StringBuuilder();  public void log(String message, String user) {  logger.append(message);  logger.append(user);  }  }  The programmer must guarantee that a single MyLogger object works properly for a multi-threaded system. How must this code be changed to be thread-safe?() 

    • A、 synchronize the log method
    • B、 replace StringBuilder with StringBuffer
    • C、 No change is necessary, the current MyLogger code is already thread-safe.
    • D、 replace StringBuilder with just a String object and use the string concatenation (+=) within the log method

    正确答案:A

  • 第18题:

    Which statement is true regarding syslog on Junos devices?()

    • A、No logging is enabled by default
    • B、By default the information is stored in all file named events
    • C、Only the message severity level must be configured
    • D、You can configure the router to send log messages to the console

    正确答案:D

  • 第19题:

    When considering the default behavior of Junos plattforms, which statement is true about archiving configurations?()

    • A、A system log message is generated, confirmed the transfer attempt
    • B、The destination filename format can be altered by configuration
    • C、The frequency the system archives the configuration cannot be changed
    • D、An archive log is created to track transfer attempts both failed and successfull

    正确答案:A

  • 第20题:

    You install Microsoft Windows Vista on a new computer that is not connected to the Internet. After you log on, you receive a warning message about an unknown device.  You need to prevent the display of the warning message until you download an available hardware driver.  What are the two possible ways to achieve this goal? ()

    • A、Disable the device.
    • B、Uninstall the device.
    • C、Select the Ask me again later option from the warning message details.
    • D、Select the Dont show this message again for this device option from the warning message details.

    正确答案:A,D,N

  • 第21题:

    多选题
    In your database, the Log Writer (LGWR)  process is unable to write to a member of a current redo log group due to read/write failure. Which two effects would you see in your database?()
    A

    The database instance aborts.

    B

    The database operation temporarily halts till the member becomes available.

    C

    Writing proceeds as normal. LGWR writes to the available members of a group and ignores the unavailable members.

    D

    The member would be marked as STALE and an error message would be written to the alert log file and LGWR trace file.

    E

    The status of the group changes to INACTIVE and an error message would be written to the alert log file and LGWR trace file.


    正确答案: B,D
    解析: 暂无解析

  • 第22题:

    多选题
    Which two of these methods will allow a CUE administrator to view the output of the CUE message log file?()
    A

    syslog server

    B

    GUI interface

    C

    CLI

    D

    text editor

    E

    TFTP server


    正确答案: A,D
    解析: 暂无解析

  • 第23题:

    单选题
    If you log a distress message,it must include the().
    A

    sea state

    B

    names of witnesses

    C

    time of its occurrence

    D

    wind direction and velocity


    正确答案: C
    解析: 暂无解析