Loading

Monday, January 2, 2012

Java Quiz - 1

1. Casting occurs commonly between numeric types
[A]TRUE
[B]FALSE



2. Boolean data type have only Yes or No value.
[A]TRUE
[B]FALSE



3. A thread can be blocked when waiting for a resource.
[A]TRUE
[B]FALSE



4. Each class in java can have a finalizer method.
[A]TRUE
[B]FALSE



5. As abstract class must have at least one abstract method and others may be concrete or abstract.
[A]TRUE
[B]FALSE



6. When for loop start the execution, the initialization portion of the loop is executed.
[A]TRUE
[B]FALSE



7. Constructors can be overloaded like regular methods.
[A]TRUE
[B]FALSE



8. A thread's priority is used to decide when to switch from one running thread to the next, this is called as the context switch.
[A]TRUE
[B]FALSE



9. When an object is referenced, it mean that it has been identified by the finalizer method for garbage collection.
[A]TRUE
[B]FALSE



10. If the break statement is omited in switch statement, then execution will continue on into the next case.
[A]TRUE
[B]FALSE



11. Threads priorities are not integers that specify the relative priority of one thread to another.
[A]TRUE
[B]FALSE



12. Java define eight simple types of data byte, short, int, long, char, float, double, boolean.
[A]TRUE
[B]FALSE



13. Java compiler stores the .class files in the path specified in CLASSPATH environmental variable.
[A]TRUE
[B]FALSE



14. Interface can be extended.
[A]TRUE
[B]FALSE



15. Is it necessary to implement all the methods of an interface while implementing the interface
[A]TRUE
[B]FALSE



0 comments: