log4j Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to log4j Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : B

Explanation

public void trace(Object message) of Logger class prints messages with the level Level.TRACE.

Answer : A

Explanation

fileAppend − This is by default set to true, which means the logging information being appended to the end of the same file.

Answer : B

Explanation

maxBackupIndex − This property denotes the number of backup files to be created.

Answer : B

Explanation

user − Sets the database user name.

Q 10 - Logger uses the Layout objects and the conversion pattern associated with them to format the logging information.

A - true

B - false

Answer : B

Explanation

false − Appender uses the Layout objects and the conversion pattern associated with them to format the logging information.

log4j_questions_answers.htm
Advertisements