This quiz comprises of very basic to intermediate level of java concept questions. See how much you score out of 10.
Note : Answers to each question is given at the end.
1. These variables cannot be serialized
Note : Answers to each question is given at the end.
1. These variables cannot be serialized
- final
- static
- strictfp
- transient
2. Which of the following pair are java Object class method?
- run &finalize
- equals & hashcode
- getclass & getobject
- notify & sleep
3. Use of it can prevent a parent class method from being overriden in subclass
- finally
- finalize
- final
- static
4. Is it possible to create abstract class without any abstract method?
- Yes
- No
5. If there is return statement at the end of try block will finally still execute?
- Yes
- No
6. Set is a/an
- Class
- Abstract class
- Interface
- Wrapper Class
7. Comparable interface provides
- Multiple sorting sequence
- Single sorting sequence
- None
8. To find .(dot) class files we need to set
- path
- classpath
- none
9. Iterator is a/an ________________
10. Which of the following is synchronized?
- string builder
- string buffer
- Array list
- Linked list
Answers
1-4(transient) 2-2(equals & hashcode) 3-3(final) 4-1(Yes) 5-1(Yes) 6-3(Interface)
No comments:
Post a Comment