CDAC Core Java Practice Questions

1. What is the error in the following code? class Test { abstract void display( ); }





Show Answer ?

2. DataInput is :





Show Answer ?

3. which of the following tools is used to generate the stubs and skeletonsn for a remote service





Show Answer ?

4. how do objects pass messages in java ?





Show Answer ?

5. How can you change the current working directory using an instance of the file class called FileName?





Show Answer ?

6. You can explicitly drop a object reference by setting the value of a variable whose data type is a reference type to ________





Show Answer ?

7. Because finalize() belongs to the java.lang.Object, it is present in all ________





Show Answer ?

8. Which of these is interface in the collection framework.Select the correct answers





Show Answer ?

9. under which circumstances will a thread stop?





Show Answer ?

10. what is the class name of the exception thrown by an assertion statement?





Show Answer ?