Here I am sharing a test for Java which can be used by developers for assessing their Java skills. It is recommended that you have through knowledge of Java. The answers and evaluating criteria for this test is also shared.

1) Exception class implements Serializable interface directly?
a) True
b) False

2) When you implement Serializable interface, it is mandatory for the developer to provide a UID for this class?
a) True
b) False

3) If you have multiple user threads running, which method can be used to give a chance to the lower priority thread for execution?
a) sleep
b) allow
c) execute
d) yield

4) You can create a collection of test cases in JUnit by using?
a) TestCase
b) TestCollection
c) TestSuite
d) TestCategory

5) Which tool provides the most fine grain control over the build process?
a) Maven
b) ANT
c) Java Compiler
d) JBuilder

6) It is best to provide a very large value for initial capacity for ArrayList in all application as we don’t want un-necessary memory allocation processing?
a) True
b) False

7) HashMap internally uses HashSet?
a) True
b) False

8) Joshua Bloch has not contributed to which API?
a) Collections
b) Math API
c) Strings
d) Assert

9) In a Java test program, developer has added two overloaded public non-static methods to a class. The two methods may not be always:
a) Having different number and type of arguments
b) Invokable without any confusion to JVM
c) Having the same name

10) Unsigned primitive types:
a) Are available in Java
b) Are not supported by Java
c) Can be custom created in a program
d) All are correct

Answers to Java Test:
1: b
2: b
3: d
4: c
5: b
6: b
7: a
8: c
9: b
10: b

Comfort level:
0-3 : Beginner
4-7 : Intermediate
9-9 : Expert
10 : Geek

Hope you enjoyed taking this Java Test.

Related Posts

A java test for developers admin Core Java
Here I am sharing a test for Java which can be used by developers for assessing their Java skills. It is recommended that you have through knowledge of Java. The answers and evaluating criteria for this test is also shared. 1) Exception class implements Serializable interface directly? a) True b) False 2) When...
Here I am sharing a test for Java which can be used by developers for assessing their Java skills. It is recommended that you have through knowledge of Java. The answers and evaluating criteria for this test is also shared. <strong>1) Exception class implements Serializable interface directly?</strong> a) True b) False <strong>2) When you implement <a href="http://www.javaexperience.com/java-role-of-serialversionuid-in-serialization/">Serializable interface</a>, it is mandatory for the developer to provide a UID for this class?</strong> a) True b) False <strong>3) If you have multiple user threads running, which method can be used to give a chance to the lower priority thread for execution?</strong> a) sleep b) allow c) execute d) yield <strong>4) You can create a <a href="http://www.javaexperience.com/creating-test-suite-with-junit/">collection of test cases in JUnit</a> by using?</strong> a) TestCase b) TestCollection c) TestSuite d) TestCategory <strong>5) Which tool provides the most fine grain control over the build process?</strong> a) Maven b) ANT c) Java Compiler d) JBuilder <strong>6) It is best to provide a very large value for <a href="http://www.javaexperience.com/differences-between-arraylist-and-vector/">initial capacity for ArrayList</a> in all application as we don't want un-necessary memory allocation processing?</strong> a) True b) False <strong>7) HashMap internally uses HashSet?</strong> a) True b) False <strong>8) Joshua Bloch has not contributed to which API?</strong> a) Collections b) Math API c) Strings d) Assert <strong>9) In a Java test program, developer has added two overloaded public non-static methods to a class. The two methods may not be always:</strong> a) Having different number and type of arguments b) Invokable without any confusion to JVM c) Having the same name <strong>10) Unsigned primitive types:</strong> a) Are available in Java b) Are not supported by Java c) Can be custom created in a program d) All are correct Answers to Java Test: 1: b 2: b 3: d 4: c 5: b 6: b 7: a 8: c 9: b 10: b Comfort level: 0-3 : Beginner 4-7 : Intermediate 9-9 : Expert 10 : Geek Hope you enjoyed taking this Java Test.
Java Database Connectivity
Java Code Review Checklist
The following two tabs change content below.
I run this blog with lots of passion. In this website, you will find tutorials on Core Java, Spring, Struts, Web Applications, Portals and Database. Please support me and the website by sharing the posts on your facebook / twitter. You can tap the share button at the top of each post. Thanks for the support.

Latest posts by admin (see all)

Comments

comments