<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="http://www.certcrunch.com/rss_certcrunch.xml" rel="self" type="application/rss+xml" />
      <title>certcrunch.com Questions of the Day (IT Certification Test)</title>
      <link>http://www.certcrunch.com</link>
      <description>Questions of the Day (IT Certification Test) RSS feed</description>
      <language>en-en</language>
<image>
<url>http://www.certcrunch.com/images/na.gif</url>
<title>certcrunch.com Questions of the Day (IT Certification Test)</title>
<link>http://www.certcrunch.com</link>
</image>

		<item>
			<title>Q1. Given:
1 class Ping extends Utils {
2 public static void main(String [] args) {
3 Utils u = new Ping();
4 System.out.print(u.getInt(args[0]));
5 }
6 int getInt(String arg) {
7 return Integer.parseInt(arg);
8 }
9 }
10 class Utils {
11 int getInt(String x) throws Exception { return 7; }
12 }
And the following three possible changes:
C1. Declare that main() throws an Exception.
C2. Declare that Ping.getInt() throws an Exception.
C3. Wrap the invocation of getInt() in a try / catch block.
Which change(s) allow the code to compile? (Choose all that apply.)</title>
				<link>http://www.certcrunch.com/test_start.php?qid=20081211b18b3adb&amp;test_id=6f6bcb41c3ab183c</link>
				<guid isPermaLink="true">http://www.certcrunch.com/test_start.php?qid=20081211b18b3adb&amp;test_id=6f6bcb41c3ab183c</guid>
				<description>&lt;b&gt;A&lt;/b&gt;. Just C1 is sufficient. &lt;b&gt;B&lt;/b&gt;. Just C2 is sufficient. &lt;b&gt;C&lt;/b&gt;. Just C3 is sufficient. &lt;b&gt;D&lt;/b&gt;. Both C1 and C2 are required. &lt;b&gt;E&lt;/b&gt;. Both C1 and C3 are required. &lt;b&gt;F&lt;/b&gt;. Both C2 and C3 are required. &lt;b&gt;G&lt;/b&gt;. All three changes are required. </description>
				<pubDate>Tue, 23 Dec 2008 07:54:24 -0700</pubDate>
		</item>



		<item>
			<title>Q2. Given two files:
package pkg;
public class Kit {
public String glueIt(String a, String b) { return a+b; }
}
import pkg.*;
class UseKit {
public static void main(String[] args) {
String s = new Kit().glueIt(args[1], args[2]);
System.out.println(s);
}
}
And the following sub-directory structure:
test
|--UseKit.class
|
com
|--KitJar.jar
If the current directory is test, and the file pkg/Kit.class is in KitJar.jar, which command
line will produce the output bc ? (Choose all that apply.)</title>
				<link>http://www.certcrunch.com/test_start.php?qid=20081215cff83502&amp;test_id=6f6bcb41c3ab183c</link>
				<guid isPermaLink="true">http://www.certcrunch.com/test_start.php?qid=20081215cff83502&amp;test_id=6f6bcb41c3ab183c</guid>
				<description>&lt;b&gt;A&lt;/b&gt;. java UseKit b c &lt;b&gt;B&lt;/b&gt;. java UseKit a b c &lt;b&gt;C&lt;/b&gt;. java -classpath com UseKit b c &lt;b&gt;D&lt;/b&gt;. java -classpath com:. UseKit b c &lt;b&gt;E&lt;/b&gt;. java -classpath com/KitJar.jar UseKit b c &lt;b&gt;F&lt;/b&gt;. java -classpath com/KitJar.jar UseKit a b c &lt;b&gt;G&lt;/b&gt;. java -classpath com/KitJar.jar:. UseKit b c &lt;b&gt;H&lt;/b&gt;. java -classpath com/KitJar.jar:. UseKit a b c </description>
				<pubDate>Tue, 23 Dec 2008 07:54:24 -0700</pubDate>
		</item>



		<item>
			<title>Q3. Given:
1 class Example {
2 public static void main(String[] args) {
3 Short s = 15;
4 Boolean b;
5 // insert code here
6 }
7 }
Which, inserted independently at line 5, will compile? (Choose all that apply.)</title>
				<link>http://www.certcrunch.com/test_start.php?qid=20081211f9c4a591&amp;test_id=6f6bcb41c3ab183c</link>
				<guid isPermaLink="true">http://www.certcrunch.com/test_start.php?qid=20081211f9c4a591&amp;test_id=6f6bcb41c3ab183c</guid>
				<description>&lt;b&gt;A&lt;/b&gt;. b = (Number instanceof s); &lt;b&gt;B&lt;/b&gt;. b = (s instanceof Short); &lt;b&gt;C&lt;/b&gt;. b = s.instanceof(Short); &lt;b&gt;D&lt;/b&gt;. b = (s instanceof Number); &lt;b&gt;E&lt;/b&gt;. b = s.instanceof(Object); &lt;b&gt;F&lt;/b&gt;. b = (s instanceof String); </description>
				<pubDate>Tue, 23 Dec 2008 07:54:24 -0700</pubDate>
		</item>



		<item>
			<title>Q4. Given:
class Knowing {
static final long tooth = 343L;
static long doIt(long tooth) {
System.out.print(++tooth + " ");
return ++tooth;
}
public static void main(String[] args) {
System.out.print(tooth + " ");
final long tooth = 340L;
new Knowing().doIt(tooth);
System.out.println(tooth);
}
}
What is the result?</title>
				<link>http://www.certcrunch.com/test_start.php?qid=200812114fe8c498&amp;test_id=6f6bcb41c3ab183c</link>
				<guid isPermaLink="true">http://www.certcrunch.com/test_start.php?qid=200812114fe8c498&amp;test_id=6f6bcb41c3ab183c</guid>
				<description>&lt;b&gt;A&lt;/b&gt;. 343 340 340 &lt;b&gt;B&lt;/b&gt;. 343 340 342 &lt;b&gt;C&lt;/b&gt;. 343 341 342 &lt;b&gt;D&lt;/b&gt;. 343 341 340 &lt;b&gt;E&lt;/b&gt;. 343 341 343 &lt;b&gt;F&lt;/b&gt;. Compilation fails. &lt;b&gt;G&lt;/b&gt;. An exception is thrown at runtime. </description>
				<pubDate>Tue, 23 Dec 2008 07:54:24 -0700</pubDate>
		</item>



		<item>
			<title>Q5. The following block of code creates a Thread using a Runnable target:
Runnable target = new MyRunnable();
Thread myThread = new Thread(target);
Which of the following classes can be used to create the target, so that the preceding code
compiles correctly?</title>
				<link>http://www.certcrunch.com/test_start.php?qid=20081215c235f40d&amp;test_id=6f6bcb41c3ab183c</link>
				<guid isPermaLink="true">http://www.certcrunch.com/test_start.php?qid=20081215c235f40d&amp;test_id=6f6bcb41c3ab183c</guid>
				<description>&lt;b&gt;A&lt;/b&gt;. public class MyRunnable extends Runnable{public void run(){}} &lt;b&gt;B&lt;/b&gt;. public class MyRunnable extends Object{public void run(){}} &lt;b&gt;C&lt;/b&gt;. public class MyRunnable implements Runnable{public void run(){}} &lt;b&gt;D&lt;/b&gt;. public class MyRunnable implements Runnable{void run(){}} &lt;b&gt;E&lt;/b&gt;. public class MyRunnable implements Runnable{public void start(){}} </description>
				<pubDate>Tue, 23 Dec 2008 07:54:24 -0700</pubDate>
		</item>


</channel>
</rss>
