This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
On the Sun website for the SCJD exam the folowing is stated:
The following APIs and facilities may not be used:
* Enterprise JavaBeans * Servlets, JSP technology, or any other web-oriented APIs * NIO, the New IO facilities * Java DataBase Connectivity (JDBC) and SQL * Java IDL API and CORBA * Third party software libraries or tools
I would believe that log4J is a 3rd party Framework hence I would advice you that if you do use it, make sure that you remove it out from your code before handing in your assignment.