Terrence Lee wrote:From my little experience in planning for OCP11, I don't think that it's possible to successfully get any certification on work experience alone.
Also concerning, is the distinction you draw between Spring Boot and Spring Framework. Boot doesn't exist without the core framework, so by inference, you should already know about it.
Rade Koncar wrote:Also on page 538: Instantiating an inner class requires an instance of the outer class, such as calling new Outer.new Inner().
It is strange that Outer refers to the instance, Capitalized names often indicate a type.
Charles O'Leary wrote:After reading this thread again, I noticed that the "Memorize this table" notation does not appear for every table.
To the point of feeling overwhelmed, for those that passed by using the Sybex 816 book mainly, do you actually advise that I "only" have to memorize the tables that specifically say "Memorize this table"? Or rather, the tables where it specifically says "Memorize this table" are tables that I should ensure that I have 100% recall on, in addition to the other tables that I may not have as much recall on but would obviously add value otherwise? (I use Java 6 everyday for work, although I did obtain OCA 8.)
What is the result of executing the following program? (Choose all that apply.)
import java.util.concurrent.*;
import java.util.concurrent.locks.*;
public class BeachManager {
private Lock lock = new ReentrantLock();
public void goSwimming() {
lock.lock(); // y1
if (lock.tryLock()) { // y2
System.out.println("Swim!");
}
lock.unlock();
}
public static void main(String[] args) {
ExecutorService service = null;
try {
BeachManager b = new BeachManager();
service = Executors.newFixedThreadPool(2);
for (int i = 0; i < 2; i++) <br /> service.submit(() -> b.goSwimming());
} finally {
if (service != null) service.shutdown();
}
System.out.print("Tasks Complete");
}
}
A. It prints Swim! at least once.
B. It prints Swim! exactly twice.
C. It prints Tasks Complete.
D. It hangs indefinitely at runtime.
E. The code will not compile because of line y1.
F. The code will not compile because of line y2.
G. It throws an exception at runtime.
Which statements about functional interfaces are true? (Choose all that apply.)
A. A functional interface can contain default and private methods.
B. A functional interface can be defined by a class or interface.
C. Abstract methods with signatures that are contained in public methods of java.lang.Object do not count toward the abstract method count for a functional interface.
D. A functional interface cannot contain static or private static methods.
E. A functional interface contains at least one abstract method.
F. A functional interface must be marked with the @FunctionalInterface annotation.
enar wang wrote:By testing the sample questions at Wiley, I noticed that the IDE complains that ExecutorService must be final or effectively final, so that all the examples in our book must make a temp final copy of previous 'service' to let it compile and run?
Jeanne Boyarsky wrote:
We were trying to show that you shouldn't get too attached to the format for the later part of the string. You have to know that it starts with jdbc, has the db type (ex: mysql) and is colon delimited.