Question: Fill in the blank with the correct annotation usage that allows the code to compile without any warnings. A. value=ignoreAll B. value=deprecation,unchecked C. unchecked,deprecation D.

Fill in the blank with the correct annotation usage that allows the code to compile without any warnings. 

@Deprecated (since="5.0") public class Project Planner { Project Planner create (T t)

A. value=ignoreAll

B. value="deprecation","unchecked"

C. "unchecked","deprecation"

D. {"deprecation","unchecked"}

E. "deprecation"

F. None of the above.

@Deprecated (since="5.0") public class Project Planner { Project Planner create (T t) { return this; } } @SuppressWarnings ( class SystemPlanner { Project Planner planner = new Project Planner ().create("TPS"); }

Step by Step Solution

3.39 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The SuppressWarnings annotation is used in Java to suppress specified compiler wa... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!