Multiple Choice Question

Quiz Guidelines

 

QID: 
504
Question: 

Which of the following statements are acceptable?

Select 4 options

A. Object o = new java.io.File("a.txt");  (Assume that java.io.File is a valid class.)
B. Boolean bool = false;
C. char ch = 10;
D. Thread t = new Runnable() ;(Assume that Runnable is a valid interface.) 
E. Runnable r = new Thread();  (Assume that Thread is a class that implements Runnable interface)

Q&A Set: