Oracle 1z0-819 - Java SE 11 Developer
Given:
You want to implement the java.io.Serializable interface to the MyPersistenceData class.
Which method should be overridden?
Which two statements set the default locale used for formatting numbers, currency, and percentages? (Choose two.)
Given:
What code inserted into class C would allow it to compile?
Given the declaration:
Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)
Given:
What is the result?
Given:
Which two interfaces can be used in lambda expressions? (Choose two.)
Given:
What will secure this code from a potential Denial of Service condition?
Given:
What is the result?
Given the code fragment:
var pool = Executors.newFixedThreadPool(5);
Future outcome = pool.submit(() −> 1);
Which type of lambda expression is passed into submit()?
Given:
Which two lines can replace line 1 so that the Y class compiles? (Choose two.)