<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4318505904199078482</id><updated>2012-02-16T00:29:54.877-08:00</updated><category term='operators'/><category term='fundamentals'/><category term='certification'/><category term='language'/><category term='introduction to java'/><category term='java'/><category term='questions'/><category term='assignments'/><title type='text'>Weekend Tech</title><subtitle type='html'>Java 1.2 course notes and work plan edited from several sources. This is a work in process and is constantly being refined, though may not be updated to the latest Java releases. Included is a collection of Java certification practise questions and answers.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default?start-index=101&amp;max-results=100'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>140</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5843030405329141212</id><published>2009-09-26T14:32:00.000-07:00</published><updated>2009-11-12T14:33:38.200-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0105</title><summary type='text'>What will happen when you attempt to compile and run the following code?  int Output=10;      boolean b1 = false;  if((b1==true) &amp;&amp; ((Output+=10)==20)){          System.out.println("We are equal "+Output);      }else        {         System.out.println("Not equal! "+Output);    }  1) Compile error, attempting to peform binary comparison on logical data type2) Compilation and output of "We are </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5843030405329141212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5843030405329141212' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5843030405329141212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5843030405329141212'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0105.html' title='Java Certification Question 0105'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2948897089825791919</id><published>2009-09-25T14:30:00.000-07:00</published><updated>2009-11-12T14:31:52.807-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0104</title><summary type='text'>Which of the following statements are true?  1) An inner class may be defined as static2) There are NO circumstances where an inner class may be defined as private3) An anonymous class may have only one constructor4) An inner class may extend another classAnswer :  1) An inner class may be defined as static4) An inner class may extend another class  A static inner class is also sometimes known as</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2948897089825791919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2948897089825791919' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2948897089825791919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2948897089825791919'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0104.html' title='Java Certification Question 0104'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6510561031188490507</id><published>2009-09-24T14:26:00.000-07:00</published><updated>2009-11-12T14:28:10.149-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0103</title><summary type='text'>Your chief Software designer has shown you a sketch of the new Computer parts system she is about to create. At the top of the hierarchy is a Class called Computer and under this are two child classes. One is called LinuxPC and one is called WindowsPC.  The main difference between the two is that one runs the Linux operating System and the other runs the Windows System (of course another </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6510561031188490507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6510561031188490507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6510561031188490507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6510561031188490507'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0103.html' title='Java Certification Question 0103'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5288035793360921718</id><published>2009-09-23T14:24:00.000-07:00</published><updated>2009-11-12T14:28:53.417-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0102</title><summary type='text'>Which of the following statements about threading are true?  1) You can only obtain a mutually exclusive lock on methods in a class that extends Thread or implements runnable2) You can obtain a mutually exclusive lock on any object3) A thread can obtain a mutually exclusive lock on a method declared with the keyword synchronized4) Thread scheduling algorithms are platform dependentAnswer :  1) b=</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5288035793360921718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5288035793360921718' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5288035793360921718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5288035793360921718'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0102.html' title='Java Certification Question 0102'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2857738623950626677</id><published>2009-09-22T14:11:00.000-07:00</published><updated>2009-11-12T14:23:33.190-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0101</title><summary type='text'>Given the following code  class Base{}public class MyCast extends Base{           static boolean b1=false;static int i = -1;static double d = 10.1;  public static void main(String argv[]){                  MyCast m = new MyCast();        Base b = new Base();        //Here          }    }     Which of the following, if inserted at the comment //Here will allow the code to compile and run without </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2857738623950626677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2857738623950626677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2857738623950626677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2857738623950626677'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0101.html' title='Java Certification Question 0101'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5449755206582394338</id><published>2009-09-21T14:08:00.000-07:00</published><updated>2009-11-12T14:09:45.829-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0100</title><summary type='text'>Which of the following statements are correct?  1) If multiple listeners are added to a component only events for the last listener added will be processed2) If multiple listeners are added to a component the events will be processed for all but with no guarantee in the order3) Adding multiple listeners to a comnponent will cause a compile time error4) You may remove as well add listeners to a </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5449755206582394338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5449755206582394338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5449755206582394338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5449755206582394338'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0100.html' title='Java Certification Question 0100'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-540736619363738311</id><published>2009-09-20T14:07:00.000-07:00</published><updated>2009-11-12T14:08:27.783-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0099</title><summary type='text'>Which of the following statements are true?  1) At the root of the collection hierarchy is a class called Collection2) The collection interface contains a method called enumerator3) The interator method returns an instance of the Vector class4) The set interface is designed for unique elementsAnswer :  4) The set is designed for unique elements.  Collection is an interface, not a class. The </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/540736619363738311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=540736619363738311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/540736619363738311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/540736619363738311'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0099.html' title='Java Certification Question 0099'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1711347461852762138</id><published>2009-09-19T14:05:00.000-07:00</published><updated>2009-11-12T14:07:00.152-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0098</title><summary type='text'>Given the following main method in a class called Cycle and a command line ofjava Cycle one two  what will be output?          public static void main(String bicycle[]){        System.out.println(bicycle[0]);}  1) None of these options2) cycle3) one4) twoAnswer :  3) one  Command line parameters start from 0 and fromt he first parameter after the name of the compile (normally Java)</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1711347461852762138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1711347461852762138' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1711347461852762138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1711347461852762138'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0098.html' title='Java Certification Question 0098'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7402484239356032045</id><published>2009-09-16T14:03:00.000-07:00</published><updated>2009-11-12T14:04:56.336-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0097</title><summary type='text'>What will be output by the following line?  System.out.println(Math.floor(-2.1));  1) -22) 2.03) -34) -3.0Answer :  4) -3.0</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7402484239356032045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7402484239356032045' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7402484239356032045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7402484239356032045'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0097.html' title='Java Certification Question 0097'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-544861839877480463</id><published>2009-09-15T14:01:00.000-07:00</published><updated>2009-11-12T14:03:31.935-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0096</title><summary type='text'>Which of the following are Java key words? 1)double2)Switch3)then4)instanceofAnswer :  1)double4)instanceofNote the upper case S on switch means it is not a keyword and the word then is part of Visual Basic but not Java. Also, instanceof looks like a method but is actually a keyword,</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/544861839877480463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=544861839877480463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/544861839877480463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/544861839877480463'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0096.html' title='Java Certification Question 0096'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1639585899844542026</id><published>2009-09-14T13:59:00.000-07:00</published><updated>2009-11-12T14:01:41.686-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0095</title><summary type='text'>Which of the following will compile correctly?1) short myshort = 99S;2) String name = 'Excellent tutorial Mr Green';3) char c = 17c;4)int z = 015;Answer   4)int z = 015;  The letters c and s do not exist as literal indicators and a String must be enclosed with double quotes, not single as in this case.</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1639585899844542026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1639585899844542026' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1639585899844542026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1639585899844542026'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0095.html' title='Java Certification Question 0095'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1467312754566065560</id><published>2009-09-13T14:17:00.000-07:00</published><updated>2009-09-13T14:17:00.333-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0094</title><summary type='text'>Which option most fully describes will happen when you attempt to compile and run the following code  public class MyAr{                public static void main(String argv[]) {        MyAr m = new MyAr();        m.amethod();        }                            public void amethod(){        static int i;        System.out.println(i);        }}  1) Compilation and output of the value 02) Compile </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1467312754566065560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1467312754566065560' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1467312754566065560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1467312754566065560'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0094.html' title='Java Certification Question 0094'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2766113080723710660</id><published>2009-09-12T14:14:00.000-07:00</published><updated>2009-09-12T14:14:01.087-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0093</title><summary type='text'>What will happen when you attempt to compile and run this code          //Demonstration of event handlingimport java.awt.event.*;import java.awt.*;    public class MyWc extends Frame implements WindowListener{            public static void main(String argv[]){        MyWc mwc = new MyWc();        }                    public void windowClosing(WindowEvent we){                System.exit(0);</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2766113080723710660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2766113080723710660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2766113080723710660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2766113080723710660'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0093.html' title='Java Certification Question 0093'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8942242064229524004</id><published>2009-09-11T14:13:00.000-07:00</published><updated>2009-09-11T14:13:00.263-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0092</title><summary type='text'>What will happen when you attempt to compile and run this program  public class Outerpublic String name = "Outer";                public static void main(String argv[]){        Inner i = new Inner();        i.showName();    }//End of main                                    private class Inner{        String name =new String("Inner");                void showName(){                        </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8942242064229524004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8942242064229524004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8942242064229524004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8942242064229524004'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0092.html' title='Java Certification Question 0092'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7837057074083436655</id><published>2009-09-10T14:10:00.000-07:00</published><updated>2009-09-10T14:10:00.212-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0091</title><summary type='text'>What will happen when you attempt to compile and run the following code  import java.io.*;    class Base{        public static void amethod()throws FileNotFoundException{}}    public class ExcepDemo extends Base{            public static void main(String argv[]){       ExcepDemo e = new ExcepDemo();}    public static void amethod(){}                                        protected ExcepDemo(){</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7837057074083436655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7837057074083436655' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7837057074083436655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7837057074083436655'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0091.html' title='Java Certification Question 0091'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-9148091605535302756</id><published>2009-09-09T14:08:00.000-07:00</published><updated>2009-09-09T14:09:55.935-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0090</title><summary type='text'>What will happen when you attempt to compile and run the following code  public class StrEq{            public static void main(String argv[]){        StrEq s = new StrEq();        }                                                private StrEq(){                String s = "Marcus";                String s2 = new String("Marcus");                if(s == s2){                        </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/9148091605535302756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=9148091605535302756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/9148091605535302756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/9148091605535302756'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0090.html' title='Java Certification Question 0090'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3856935534034141182</id><published>2009-09-08T14:06:00.000-07:00</published><updated>2009-09-09T14:08:20.417-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0089</title><summary type='text'>What will happen when you attempt to compile and run the following code with the command line "hello there"  public class Arg{                                String[] MyArg;        public static void main(String argv[]){        MyArg=argv;        }        public void amethod(){                System.out.println(argv[1]);        }}     1) Compile time error2) Compilation and output of "hello"3) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3856935534034141182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3856935534034141182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3856935534034141182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3856935534034141182'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0089.html' title='Java Certification Question 0089'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3703357911406999643</id><published>2009-09-07T14:04:00.000-07:00</published><updated>2009-09-09T14:06:33.280-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0088</title><summary type='text'>What will happen when you attempt to compile and run the following code  public class As{                int i = 10;int j;char z= 1;boolean b;                                    public static void main(String argv[]){                As a = new As();                a.amethod();        }        public void amethod(){        System.out.println(j);        System.out.println(b);                      }</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3703357911406999643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3703357911406999643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3703357911406999643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3703357911406999643'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0088.html' title='Java Certification Question 0088'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2399308662359642952</id><published>2009-09-06T14:00:00.000-07:00</published><updated>2009-09-09T14:01:04.164-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0087</title><summary type='text'>Which of the following is the correct syntax for suggesting that the JVM performs garbage collection  1) System.free();2) System.setGarbageCollection();3) System.out.gc();4) System.gc();  Answer)  4) System.gc();</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2399308662359642952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2399308662359642952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2399308662359642952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2399308662359642952'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0087.html' title='Java Certification Question 0087'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1796629724398014446</id><published>2009-09-05T13:57:00.000-07:00</published><updated>2009-09-09T13:59:41.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0086</title><summary type='text'>What will happen when you attempt to compile and run the following code  public class MySwitch{                public static void main(String argv[]){    MySwitch ms= new MySwitch();    ms.amethod();    }                                                        public void amethod(){    int k=10;        switch(k){        default: //Put the default at the bottom, not here            </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1796629724398014446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1796629724398014446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1796629724398014446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1796629724398014446'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0086.html' title='Java Certification Question 0086'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-343598879925240175</id><published>2009-09-04T13:54:00.000-07:00</published><updated>2009-09-09T13:56:48.699-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0085</title><summary type='text'>What will happen when you attempt to compile and run the following code  public class Hope{            public static void main(String argv[]){Hope h = new Hope();}                        protected Hope(){for(int i =0; i &lt;10; i++ ) System.out.println(i); }}}     1) Compilation error: Constructors cannot be declared protected2) Run time error: Constructors cannot be declared protected3) Compilation</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/343598879925240175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=343598879925240175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/343598879925240175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/343598879925240175'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0085.html' title='Java Certification Question 0085'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-952231344110400790</id><published>2009-09-03T13:52:00.000-07:00</published><updated>2009-09-09T13:54:23.819-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0084</title><summary type='text'>Under what circumstances might you use the yield method of the Thread class  1) To call from the currently running thread to allow another thread of the same or higher priority to run2) To call on a waiting thread to allow it to run3) To allow a thread of higher priority to run4) To call from the currently running thread with a parameter designating which thread should be allowed to runAnswer)  1</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/952231344110400790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=952231344110400790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/952231344110400790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/952231344110400790'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0084.html' title='Java Certification Question 0084'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-581965220101020707</id><published>2009-09-02T13:50:00.000-07:00</published><updated>2009-09-09T13:51:59.117-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0083</title><summary type='text'>For a class defined inside a method, what rule governs access to the variables of the enclosing method?  1) The class can access any variable2) The class can only access static variables3) The class can only access transient variables4) The class can only access final variablesAnswer)  4) The class can only access final variables </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/581965220101020707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=581965220101020707' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/581965220101020707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/581965220101020707'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0083.html' title='Java Certification Question 0083'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2961362824592359121</id><published>2009-09-01T13:48:00.000-07:00</published><updated>2009-09-09T13:50:36.183-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0082</title><summary type='text'>What can cause a thread to stop executing?  1) The program exits via a call to System.exit(0);2) Another thread is given a higher priority3) A call to the thread's stop method.4) A call to the halt method of the Thread classAnswer)  1) The program exits via a call to exit(0);2) The priority of another thread is increased3) A call to the stop method of the Thread class  Java threads are somewhat </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2961362824592359121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2961362824592359121' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2961362824592359121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2961362824592359121'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/09/java-certification-question-0082.html' title='Java Certification Question 0082'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1022636974438705914</id><published>2009-08-31T13:47:00.000-07:00</published><updated>2009-09-09T13:50:08.575-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0081</title><summary type='text'>How does the set collection deal with duplicate elements?  1) An exception is thrown if you attempt to add an element with a duplicate value2) The add method returns false if you attempt to add an element with a duplicate value3) A set may contain elements that return duplicate values from a call to the equals method4) Duplicate values will cause an error at compile timeAnswer)  2) The add method</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1022636974438705914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1022636974438705914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1022636974438705914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1022636974438705914'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0081.html' title='Java Certification Question 0081'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6310227549555650691</id><published>2009-08-30T13:45:00.000-07:00</published><updated>2009-09-09T13:46:24.762-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0080</title><summary type='text'>Which most closely matches a description of a Java Map?  1) A vector of arrays for a 2D geographic representation2) A class for containing unique array elements3) A class for containing unique vector elements4) An interface that ensures that implementing classes cannot contain duplicate keysAnswer)  4) An interface that ensures that implementing classes cannot contain duplicates</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6310227549555650691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6310227549555650691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6310227549555650691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6310227549555650691'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0080.html' title='Java Certification Question 0080'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2696762375825437907</id><published>2009-08-29T13:43:00.000-07:00</published><updated>2009-09-09T13:45:13.771-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0079</title><summary type='text'>When using the GridBagLayout manager, each new component requires a new instance of the GridBagConstraints class. Is this statement  1) true2) falseAnswer)  2) falseYou can re-use the same instance of the GridBagConstraints when added successive components.</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2696762375825437907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2696762375825437907' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2696762375825437907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2696762375825437907'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0079.html' title='Java Certification Question 0079'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1608055378047591832</id><published>2009-08-28T13:38:00.000-07:00</published><updated>2009-09-09T13:43:34.055-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0078</title><summary type='text'>What will happen when you attempt to compile and run the following code?  public class Bground extends Thread{                public static void main(String argv[]){                Bground b = new Bground();               b.run();       }                                public void start(){               for (int i = 0; i &lt;10; i++)                       System.out.println("Value of i = " + i);</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1608055378047591832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1608055378047591832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1608055378047591832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1608055378047591832'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0078.html' title='Java Certification Question 0078'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4782608805867444716</id><published>2009-08-27T13:34:00.000-07:00</published><updated>2009-09-09T13:37:25.747-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0077</title><summary type='text'>Which statements are correct about the anchor field?  1) It is a field of the GridBagLayout manager for controlling component placement2) It is a field of the GridBagConstraints class for controlling component placement3) A valid setting for the anchor field is GridBagConstraints.NORTH4) The anchor field controls the height of components added to a containerAnswer)  2) It is a field of the </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4782608805867444716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4782608805867444716' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4782608805867444716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4782608805867444716'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0077.html' title='Java Certification Question 0077'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-740423901223351093</id><published>2009-08-26T13:32:00.000-07:00</published><updated>2009-09-09T13:37:11.526-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0076</title><summary type='text'>What most closely matches the appearance when this code runs?  import java.awt.*;    public class CompLay extends Frame{            public static void main(String argv[]){    CompLay cl = new CompLay();    }                                                CompLay(){    Panel p = new Panel();    p.setBackground(Color.pink);    p.add(new Button("One"));    p.add(new Button("Two"));    p.add(new </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/740423901223351093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=740423901223351093' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/740423901223351093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/740423901223351093'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0076.html' title='Java Certification Question 0076'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4013098545848146743</id><published>2009-08-25T15:07:00.000-07:00</published><updated>2009-08-25T15:07:00.233-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0075</title><summary type='text'>Which of the following are fields of the GridBagConstraints class?  1) ipadx2) fill3) insets4) widthAnswers)  1) ipadx2) fill3) insets</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4013098545848146743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4013098545848146743' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4013098545848146743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4013098545848146743'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0075.html' title='Java Certification Question 0075'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1077000801663670520</id><published>2009-08-24T15:06:00.000-07:00</published><updated>2009-08-24T15:06:00.483-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0074</title><summary type='text'>How do you change the current layout manager for a container  1) Use the setLayout method2) Once created you cannot change the current layout manager of a component3) Use the setLayoutManager method4) Use the updateLayout method  Answer 1)  Use the setLayout method</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1077000801663670520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1077000801663670520' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1077000801663670520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1077000801663670520'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0074.html' title='Java Certification Question 0074'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7546420745448063735</id><published>2009-08-23T15:03:00.000-07:00</published><updated>2009-08-23T15:03:00.289-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0073</title><summary type='text'>How do you indicate where a component will be positioned using Flowlayout?  1) North, South,East,West2) Assign a row/column grid reference3) Pass a X/Y percentage parameter to the add method4) Do nothing, the FlowLayout will position the component  Answer 4)  Do nothing, the FlowLayout will position the component</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7546420745448063735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7546420745448063735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7546420745448063735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7546420745448063735'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0073.html' title='Java Certification Question 0073'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7181533792709367533</id><published>2009-08-22T14:57:00.000-07:00</published><updated>2009-08-22T14:57:00.459-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0072</title><summary type='text'>What best describes the appearance of an application with the following code?  import java.awt.*;    public class FlowAp extends Frame{    public static void main(String argv[]){        FlowAp fa=new FlowAp();        fa.setSize(400,300);        fa.setVisible(true);    }    FlowAp(){            add(new Button("One"));            add(new Button("Two"));            add(new Button("Three"));</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7181533792709367533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7181533792709367533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7181533792709367533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7181533792709367533'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0072.html' title='Java Certification Question 0072'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3208881317349428109</id><published>2009-08-21T14:56:00.000-07:00</published><updated>2009-08-21T14:56:00.850-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0071</title><summary type='text'>You want to loop through an array and stop when you come to the last element. Being a good java programmer and forgetting everything you ever knew about C/C++ you know that arrays contain information about their size. Which of the following can you use?1)myarray.length();2)myarray.length;3)myarray.size4)myarray.size();  Answer 2) myarray.length;  The String class has a length() method to return </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3208881317349428109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3208881317349428109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3208881317349428109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3208881317349428109'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0071.html' title='Java Certification Question 0071'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6218260408589082387</id><published>2009-08-20T14:55:00.000-07:00</published><updated>2009-08-20T14:55:00.352-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0070</title><summary type='text'>You want to find out the value of the last element of an array. You write the following code. What will happen when you compile and run it.?  public class MyAr{    public static void main(String argv[]){            int[] i = new int[5];            System.out.println(i[5]);            }    }  1) An error at compile time2) An error at run time3) The value 0 will be output4) The string "null" will </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6218260408589082387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6218260408589082387' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6218260408589082387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6218260408589082387'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0070.html' title='Java Certification Question 0070'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4803650952044149702</id><published>2009-08-19T14:46:00.000-07:00</published><updated>2009-08-19T14:46:00.611-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0069</title><summary type='text'>What happens when you attempt to compile and run these two files in the same directory?  //File P1.java  package MyPackage;    class P1{    void afancymethod(){        System.out.println("What a fancy method");            }    }  //File P2.java  public class P2 extends P1{    afancymethod();    }     1) Both compile and P2 outputs "What a fancy method" when run2) Neither will compile3) Both </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4803650952044149702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4803650952044149702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4803650952044149702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4803650952044149702'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0069.html' title='Java Certification Question 0069'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-549138926349149506</id><published>2009-08-18T14:44:00.000-07:00</published><updated>2009-08-18T14:44:00.664-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0068</title><summary type='text'>What will happen when you attempt to compile and run this code?  private class Base{}    public class Vis{            transient int  iVal;            public static void main(String elephant[]){            }}     1)Compile time error: Base cannot be private2)Compile time error indicating that an integer cannot be transient3)Compile time error transient not a data type4)Compile time error malformed</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/549138926349149506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=549138926349149506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/549138926349149506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/549138926349149506'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0068.html' title='Java Certification Question 0068'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8474193510500014242</id><published>2009-08-17T14:43:00.000-07:00</published><updated>2009-08-17T14:43:00.674-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0067</title><summary type='text'>What will happen when you attempt to compile and run this code?  public class Mod{    public static void main(String argv[]){        }        public static native void amethod();    }     1) Error at compilation: native method cannot be static2) Error at compilation native method must return value3) Compilation but error at run time unless you have made code containing native amethod available4) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8474193510500014242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8474193510500014242' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8474193510500014242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8474193510500014242'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0067.html' title='Java Certification Question 0067'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1611108417477099480</id><published>2009-08-16T14:42:00.000-07:00</published><updated>2009-08-16T14:42:00.495-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0066</title><summary type='text'>What will happen when you attempt to compile and run this code?  class Base{public final void amethod(){        System.out.println("amethod");          }}   public class Fin extends Base{   public static void main(String argv[]){          Base b = new Base();          b.amethod();          }    }     1) Compile time error indicating that a class with any final methods must be declared final </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1611108417477099480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1611108417477099480' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1611108417477099480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1611108417477099480'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0066.html' title='Java Certification Question 0066'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2628751692710752144</id><published>2009-08-15T14:40:00.000-07:00</published><updated>2009-08-15T14:40:00.487-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0065</title><summary type='text'>Why might you define a method as native?  1) To get to access hardware that Java does not know about2) To define a new data type such as an unsigned integer3) To write optimised code for performance in a language such as C/C++4) To overcome the limitation of the private scope of a methodAnswers:  1) To get to access hardware that Java does not know about3) To write optimised code for performance </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2628751692710752144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2628751692710752144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2628751692710752144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2628751692710752144'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0065.html' title='Java Certification Question 0065'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3381397351100833714</id><published>2009-08-14T14:32:00.000-07:00</published><updated>2009-08-14T14:32:00.290-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0064</title><summary type='text'>What will happen when you attempt to compile and run this code?  class Base{             abstract public void myfunc();             public void another(){             System.out.println("Another method");             }     }     public class Abs extends Base{             public static void main(String argv[]){             Abs a = new Abs();             a.amethod();             }             </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3381397351100833714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3381397351100833714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3381397351100833714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3381397351100833714'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0064.html' title='Java Certification Question 0064'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6438611621861969673</id><published>2009-08-13T14:28:00.000-07:00</published><updated>2009-08-13T14:28:00.922-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0063</title><summary type='text'>Which of the following are Java modifiers?1) public2) private3) friendly4) transient5) vagrantAnswer :  1) public2) private4) transient  The keyword transient is easy to forget as is not frequently used. Although a method may be considered to be friendly like in C++ it is not a Java keyword.</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6438611621861969673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6438611621861969673' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6438611621861969673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6438611621861969673'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0063.html' title='Java Certification Question 0063'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6837794926018108778</id><published>2009-08-12T14:20:00.000-07:00</published><updated>2009-08-12T14:20:01.213-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0062</title><summary type='text'>What will happen when you attempt to compile and run this code?   public class MyMain{public static void main(String argv){          System.out.println("Hello cruel world");            }    }     1) The compiler will complain that main is a reserved word and cannot be used for a class2) The code will compile and when run will print out "Hello cruel world"3) The code will compile but will complain</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6837794926018108778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6837794926018108778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6837794926018108778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6837794926018108778'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0062.html' title='Java Certification Question 0062'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-72996056599898179</id><published>2009-08-11T14:18:00.000-07:00</published><updated>2009-08-11T14:18:00.570-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0061</title><summary type='text'>What will happen when you attempt to compile and run this code?  abstract class Base{             abstract public void myfunc();             public void another(){             System.out.println("Another method");             }     }     public class Abs extends Base{             public static void main(String argv[]){          Abs a = new Abs();          a.amethod();          }          public </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/72996056599898179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=72996056599898179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/72996056599898179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/72996056599898179'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0061.html' title='Java Certification Question 0061'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-430430259882810570</id><published>2009-08-10T07:46:00.000-07:00</published><updated>2009-08-10T07:46:00.690-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0060</title><summary type='text'>Given the following code   import java.io.*;     public class Ppvg{  public static void main(String argv[]){          Ppvg p = new Ppvg();          p.fliton();          }          public int fliton(){          try{                  DataInputStream din = new DataInputStream(System.in);                  din.readChar();          }catch(IOException ioe){            System.out.println("flytwick");</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/430430259882810570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=430430259882810570' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/430430259882810570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/430430259882810570'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0060.html' title='Java Certification Question 0060'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5446808642163562891</id><published>2009-08-09T07:46:00.000-07:00</published><updated>2009-08-09T07:46:00.967-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0059</title><summary type='text'>Which of the following statements are true?  1) The x,y coordinates of an instance of MouseEvent can be obtained using the getX() and getY() methods2) The x,y coordinates of an instance of MouseEvent can be obtained using the X and Y integer fields3) The time of a MouseEvent can be extracted using the getTime() method4) The time of a MouseEvent can be extracted using the when parameter of the </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5446808642163562891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5446808642163562891' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5446808642163562891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5446808642163562891'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0059.html' title='Java Certification Question 0059'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3277872438240700857</id><published>2009-08-08T07:46:00.000-07:00</published><updated>2009-08-08T07:46:00.263-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0058</title><summary type='text'>What will happen when you attempt to compile and run the following code.  public class Pvf{     static boolean Paddy;  public static void main(String argv[]){          System.out.println(Paddy);          }    }  1) Compile time error2) compilation and output of false3) compilation and output of true4) compilation and output of nullAnswer 2:  2) compilation and output of false  A variable defined </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3277872438240700857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3277872438240700857' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3277872438240700857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3277872438240700857'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0058.html' title='Java Certification Question 0058'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6585914515195032821</id><published>2009-08-07T07:46:00.000-07:00</published><updated>2009-08-07T07:46:00.771-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0057</title><summary type='text'>Given the following code  class Base {}     class Agg extends Base{          public String getFields(){          String name =  "Agg";          return name;          }  }     public class Avf{     public static void main(String argv[]){          Base a = new Agg();          //Here          }  }  What code placed after the comment //Here will result in calling the getFields method resulting in the</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6585914515195032821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6585914515195032821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6585914515195032821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6585914515195032821'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0057.html' title='Java Certification Question 0057'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-673220010844190103</id><published>2009-08-06T07:46:00.000-07:00</published><updated>2009-08-06T07:46:00.383-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0056</title><summary type='text'>Given the following class  public class ZeroPrint{    public static void main(String argv[]){            int i =0;            //Here              }    }     Which of the following lines if placed after the comment //Here will print out 0.  1) System.out.println(i++);2) System.out.println(i+'0');3) System.out.println(i);4) System.out.println(i--);Answer 1, 3 and 4:   1) System.out.println(i++);3) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/673220010844190103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=673220010844190103' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/673220010844190103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/673220010844190103'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0056.html' title='Java Certification Question 0056'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5627909330403879810</id><published>2009-08-05T07:34:00.000-07:00</published><updated>2009-08-05T07:34:00.647-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0055</title><summary type='text'>What will happen when you attempt to compile and run the following code?  public class Agg{    static public long i=10;    public static void main(String argv[]){            switch(i){                    default:                    System.out.println("no value given");                    case 1:                     System.out.println("one");                    case 10:                    </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5627909330403879810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5627909330403879810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5627909330403879810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5627909330403879810'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0055.html' title='Java Certification Question 0055'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3301997824284792864</id><published>2009-08-04T07:34:00.000-07:00</published><updated>2009-08-04T07:34:00.703-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0054</title><summary type='text'>What will happen when you attempt to compile and run the following code?  public class Inc{    public static void main(String argv[]){                    Inc inc = new Inc();                    int i =0;                     inc.fermin(i);                    i = i++;                    System.out.println(i);            }            void fermin(int i){                    i++;            }    }     </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3301997824284792864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3301997824284792864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3301997824284792864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3301997824284792864'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0054.html' title='Java Certification Question 0054'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3190714614088064977</id><published>2009-08-03T07:34:00.000-07:00</published><updated>2009-08-03T07:34:00.482-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0053</title><summary type='text'>You need to read in the lines of a large text file containing tens of megabytes of data. Which of the following would be most suitable for reading in such a file   1) new FileInputStream("file.name")2) new InputStreamReader(new FileInputStream("file.name"))3) new BufferedReader(new InputStreamReader(new FileInputStream("file.name")));4) new RandomAccessFile raf=new RandomAccessFile("myfile.txt","</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3190714614088064977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3190714614088064977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3190714614088064977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3190714614088064977'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0053.html' title='Java Certification Question 0053'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1114825704342008331</id><published>2009-08-02T07:34:00.000-07:00</published><updated>2009-08-02T07:34:00.319-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0052</title><summary type='text'>You have been asked to create a scheduling system for a hotel and catering organsiation.   You have been given the following information and asked to create a set of classes to represent it.   On the catering side of the organsiation they have   Head ChefsChefsApprentice Chefs   The system needs to store an employeeid, salary and the holiday entitlement   How would you best represent this </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1114825704342008331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1114825704342008331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1114825704342008331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1114825704342008331'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0052.html' title='Java Certification Question 0052'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2841882133726080972</id><published>2009-08-01T07:33:00.000-07:00</published><updated>2009-08-01T07:33:00.419-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0051</title><summary type='text'>What will happen when you attempt to compile and run the following code  class Base{    protected int i = 99;    }    public class Ab{    private int i=1;    public static void main(String argv[]){    Ab a = new Ab();    a.hallow();    }            abstract void hallow(){            System.out.println("Claines "+i);            }    }     1) Compile time error2) Compilation and output of Claines </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2841882133726080972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2841882133726080972' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2841882133726080972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2841882133726080972'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/08/java-certification-question-0051.html' title='Java Certification Question 0051'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3805278556152608490</id><published>2009-07-31T07:26:00.000-07:00</published><updated>2009-07-31T07:26:00.987-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0050</title><summary type='text'>Given the following code     public class Sytch{    int x=2000;    public static void main(String argv[]){            System.out.println("Ms "+argv[1]+"Please pay $"+x);            }    }     What will happen if you attempt to compile and run this code with the command line     java Sytch Jones Diggle     1) Compilation and output of Ms Diggle Please pay $20002) Compile time error3) Compilation </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3805278556152608490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3805278556152608490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3805278556152608490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3805278556152608490'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0050.html' title='Java Certification Question 0050'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2718059125026681053</id><published>2009-07-30T07:26:00.000-07:00</published><updated>2009-07-30T07:26:00.384-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0049</title><summary type='text'>Which of the following statements are true?  1) The automatic garbage collection of the JVM prevents programs from ever running out of memory2) A program can suggest that garbage collection be performed but not force it3) Garbage collection is platform independent4) An object becomes eligible for garbage collection when all references denoting it are set to null.Answers 2 and 4:   2) A program </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2718059125026681053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2718059125026681053' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2718059125026681053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2718059125026681053'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0049.html' title='Java Certification Question 0049'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7623926347688900211</id><published>2009-07-29T07:26:00.000-07:00</published><updated>2009-07-29T07:26:00.620-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0048</title><summary type='text'>Which of the following statements are true?  1) Static methods cannot be overriden to be non static2) Static methods cannot be declared as private3) Private methods cannot be overloaded4) An overloaded method cannot throw exceptions not checked in the base classAnswer 1:  1) Static methods cannot be overriden to be non static  The JDK1.1 compiler will issue an error message "static methods cannot</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7623926347688900211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7623926347688900211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7623926347688900211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7623926347688900211'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0048.html' title='Java Certification Question 0048'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5339500208597152227</id><published>2009-07-28T07:25:00.000-07:00</published><updated>2009-07-28T07:25:00.974-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0047</title><summary type='text'>What will happen when you attempt to compile and run the following code?  class Base{    Base(){            System.out.println("Base");            }    }     public class Checket extends Base{    public static void main(String argv[]){            Checket c = new Checket();            super();            }    Checket(){            System.out.println("Checket");              }           }     1) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5339500208597152227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5339500208597152227' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5339500208597152227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5339500208597152227'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0047.html' title='Java Certification Question 0047'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8666628770818834792</id><published>2009-07-27T07:22:00.000-07:00</published><updated>2009-07-27T07:22:00.327-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0046</title><summary type='text'>Which of the following statements are true?  1) A method cannot be overloaded to be less public in a child class2) To be overridden a method must have the same name and parameter types3) To be overridden a method must have the same name, parameter and return types4) An overridden method must have the same name, parameter names and parameter typesAnswer 3:  3) To be overriden a method must have </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8666628770818834792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8666628770818834792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8666628770818834792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8666628770818834792'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0046.html' title='Java Certification Question 0046'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3767136799691336664</id><published>2009-07-26T07:21:00.000-07:00</published><updated>2009-07-26T07:21:00.504-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0045</title><summary type='text'>What will happen when you attempt to compile and run the following code?  public class Sandys{private int court;     public static void main(String argv[]){             Sandys s = new Sandys(99);             System.out.println(s.court);             }     Sandys(int ballcount){             court=ballcount;             }     }     1) Compile time error, the variable court is defined as private2) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3767136799691336664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3767136799691336664' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3767136799691336664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3767136799691336664'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0045.html' title='Java Certification Question 0045'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4993457745021397667</id><published>2009-07-25T07:17:00.000-07:00</published><updated>2009-07-25T07:17:00.534-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0044</title><summary type='text'>  Given a reference called   t  to to a class which extends Thread, which of the following will cause it to give up cycles to allow another thread to execute.  1) t.yield();2) yield()3) yield(100) //Or some other suitable amount in milliseconds4) yield(t);Answer :  yield is a static method inherited from Thread and causes whatever thread is currently executing to yield its cycles.  2) yield() </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4993457745021397667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4993457745021397667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4993457745021397667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4993457745021397667'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0044.html' title='Java Certification Question 0044'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1097111386728742180</id><published>2009-07-24T07:30:00.000-07:00</published><updated>2009-07-24T07:30:01.078-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0043</title><summary type='text'>Which of the following statements are true  1) constructors cannot be overloaded2) constructors cannot be overridden3) a constructor can return a primitive or an object reference4) constructor code executes from the current class up the hierarchy to the ancestor class     Answer 2:  constructors cannot be overriden  Overloading constructors is a key technique to allow multiple ways of </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1097111386728742180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1097111386728742180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1097111386728742180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1097111386728742180'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0043.html' title='Java Certification Question 0043'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6192013535852609379</id><published>2009-07-23T07:24:00.000-07:00</published><updated>2009-07-23T07:24:00.342-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0042</title><summary type='text'>Given the following declaration  Integer i=new Integer(99);  How can you now set the value of i to 10?  1) i=10;2) i.setValue(10);3) i.parseInt(10);4) none of the aboveAnswer 4:  none of the above  The wrapper classes are immutable. Once the value has been set it cannot be changed. A common use of the wrapper classes is to take advantage of their static methods such as Integer.parseInt(String s) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6192013535852609379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6192013535852609379' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6192013535852609379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6192013535852609379'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0042.html' title='Java Certification Question 0042'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1988400350218479771</id><published>2009-07-22T04:53:00.000-07:00</published><updated>2009-07-22T04:53:00.580-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0041</title><summary type='text'>You are creating an application that has a form with a text entry field used to enter a persons age. Which of the following is appropriate for capturing this information.  1) Use the Text field of a TextField and parse the result using Integer2) Use the getInteger method of the TextField3) Use the getText method of a TextBox and parse the result using the getInt method of Integer class4) Use the </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1988400350218479771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1988400350218479771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1988400350218479771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1988400350218479771'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0041.html' title='Java Certification Question 0041'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4528459315807276681</id><published>2009-07-20T15:43:00.000-07:00</published><updated>2009-07-20T15:43:00.742-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0040</title><summary type='text'>Given the following codeclass Base{static int oak=99;}public class Doverdale extends Base{public static void main(String argv[]){    Doverdale d = new Doverdale();    d.amethod();    }    public void amethod(){    //Here    }   }Which of the following if placed after the comment //Here, will compile and modify the value of the variable oak?1) super.oak=1;2) oak=33;3) Base.oak=22;4) oak=50.1;</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4528459315807276681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4528459315807276681' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4528459315807276681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4528459315807276681'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0040.html' title='Java Certification Question 0040'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6132821158179257316</id><published>2009-07-19T15:42:00.000-07:00</published><updated>2009-07-19T15:42:00.915-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0039</title><summary type='text'>Given the following class definitionpublic class Droitwich{    class one{        private class two{            public void main(){            System.out.println("two");            }        }    }}Which of the following statements are true1) The code will not compile because the classes are nested to more than one level2) The code will not compile because class two is marked as private3) The code </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6132821158179257316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6132821158179257316' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6132821158179257316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6132821158179257316'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0039.html' title='Java Certification Question 0039'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5725900347778563220</id><published>2009-07-18T15:41:00.000-07:00</published><updated>2009-07-18T15:41:00.437-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0038</title><summary type='text'>Which of the following statements are true?1) Code must be written to cause a frame to close on selecting the system close menu2) The default layout for a Frame is the BorderLayout Manager3) The layout manager for a Frame cannot be changed once it has been assigned4) The GridBagLayout manager makes extensive use of the the GridBagConstraints class.Answer :1) Code must be written to cause a frame </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5725900347778563220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5725900347778563220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5725900347778563220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5725900347778563220'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0038.html' title='Java Certification Question 0038'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3656918327034153832</id><published>2009-07-17T15:40:00.000-07:00</published><updated>2009-07-17T15:40:00.353-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0037</title><summary type='text'>Given the following class definitionpublic class Upton{public static void main(String argv[]){    }    public void amethod(int i){}    //Here}Which of the following would be legal to place after the comment //Here ?1) public int amethod(int z){}2) public int amethod(int i,int j){return 99;}3) protected void amethod(long l){ }4) private void anothermethod(){}Answer:2) public int amethod(int i, int</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3656918327034153832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3656918327034153832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3656918327034153832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3656918327034153832'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0037.html' title='Java Certification Question 0037'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5325789073175167297</id><published>2009-07-16T15:39:00.000-07:00</published><updated>2009-07-16T15:39:00.891-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0036</title><summary type='text'>Assuming any exception handling has been set up, which of the following will create an instance of the RandomAccessFile class1) RandomAccessFile raf=new RandomAccessFile("myfile.txt","rw");2) RandomAccessFile raf=new RandomAccessFile( new DataInputStream());3) RandomAccessFile raf=new RandomAccessFile("myfile.txt");4) RandomAccessFile raf=new RandomAccessFile( new File("myfile.txt"));Answer :1) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5325789073175167297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5325789073175167297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5325789073175167297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5325789073175167297'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0036.html' title='Java Certification Question 0036'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1892525242698395924</id><published>2009-07-15T15:38:00.000-07:00</published><updated>2009-07-15T15:38:00.664-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0035</title><summary type='text'>What will happen when you attempt to compile and run the following codepublic class Borley extends Thread{public static void main(String argv[]){    Borley b = new Borley();    b.start();    }public void run(){       System.out.println("Running");    }}1) Compilation and run but no output2) Compilation and run with the output "Running"3) Compile time error with complaint of no Thread target4) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1892525242698395924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1892525242698395924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1892525242698395924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1892525242698395924'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0035.html' title='Java Certification Question 0035'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8101190321951524637</id><published>2009-07-14T15:38:00.000-07:00</published><updated>2009-07-14T15:38:00.964-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0034</title><summary type='text'>What will happen when you attempt to compile and run the following code?import java.io.*;class ExBase{abstract public void martley(){    }}public class MyEx extends ExBase{    public static void main(String argv[]){    DataInputStream fi = new DataInputStream(System.in);    try{    fi.readChar();    }catch(IOException e){    System.exit(0);    }    finally {System.out.println("Doing finally");}</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8101190321951524637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8101190321951524637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8101190321951524637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8101190321951524637'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0034.html' title='Java Certification Question 0034'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2719506460578334855</id><published>2009-07-13T15:37:00.000-07:00</published><updated>2009-07-13T15:37:01.294-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0033</title><summary type='text'>Which of the following statements are true?1) Java uses a system called UTF for I/O to support international character sets2) The RandomAccessFile is the most suitable class for supporting international character sets3) An instance of FileInputStream may not be chained to an instance of FileOutputStream4) File I/O activities requires use of Exception handlingAnswer :1) Java uses a system called </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2719506460578334855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2719506460578334855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2719506460578334855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2719506460578334855'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0033.html' title='Java Certification Question 0033'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6733315176685765349</id><published>2009-07-12T15:36:00.000-07:00</published><updated>2009-07-12T15:36:00.174-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0032</title><summary type='text'>Which of the following statements are true about a variable created with the static modifier?1) Once assigned the value of a static variable may not be altered2) A static variable created in a method will keep the same value between calls3) Only one instance of a static variable will exist for any amount of class instances4) The static modifier can only be applied to a primitive valueAnswer :3) </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6733315176685765349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6733315176685765349' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6733315176685765349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6733315176685765349'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0032.html' title='Java Certification Question 0032'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1583160703479352829</id><published>2009-07-11T15:35:00.000-07:00</published><updated>2009-07-11T15:35:00.379-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0031</title><summary type='text'>Which of the following statements are true?1) The default layout manager for an Applet is FlowLayout2) The default layout manager for a Frame is FlowLayout3) A layout manager must be assigned to an Applet before the setSize method is called4) The FlowLayout manager attempts to honor the preferred size of any componentsAnswer :1) The default layout manager for an Applet is FlowLayout4) The </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1583160703479352829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1583160703479352829' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1583160703479352829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1583160703479352829'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0031.html' title='Java Certification Question 0031'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-843352593263055221</id><published>2009-07-10T15:34:00.000-07:00</published><updated>2009-07-10T15:34:00.400-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0030</title><summary type='text'>Which of the following statements are true?1) The % is used to calculate a percentage thus: 10 % 20=502) The / operator is used to divide one value by another3) The # symbol may not be used as the first character of a variable4) The $ symbol may not be used as the first character of a variableAnswer :2) The / operator is used to divide one value by another3) The # symbol may not be used as the </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/843352593263055221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=843352593263055221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/843352593263055221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/843352593263055221'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0030.html' title='Java Certification Question 0030'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1024776272667355765</id><published>2009-07-09T15:34:00.000-07:00</published><updated>2009-07-09T15:34:00.974-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0029</title><summary type='text'>Which of the following most closely describes the process of overriding?1) A class with the same name replaces the functionality of a class defined earlier in the hierarchy2) A method with the same name completely replaces the functionality of a method earlier in the hierarchy3) A method with the same name but different parameters gives multiple uses for the same method name4) A class is </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1024776272667355765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1024776272667355765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1024776272667355765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1024776272667355765'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0029.html' title='Java Certification Question 0029'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4319126713620364843</id><published>2009-07-08T15:33:00.000-07:00</published><updated>2009-07-08T15:33:00.291-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0028</title><summary type='text'>You are given a class hierarchy with an instance of the class Dog. The class Dog is a child of mammal and the class Mammal is a child of the class Vertebrate. The class Vertebrate has a method called move which prints out the string "move". The class mammal overrides this method and prints out the string "walks". The class Dog overrides this method and prints out the string "walks on paws". Given</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4319126713620364843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4319126713620364843' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4319126713620364843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4319126713620364843'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0028.html' title='Java Certification Question 0028'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7274363008248613555</id><published>2009-07-07T15:32:00.000-07:00</published><updated>2009-07-07T15:32:00.974-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0027</title><summary type='text'>Given the following classpublic class Ombersley{public static void main(String argv[]){        boolean b1 = true;        if((b1 ==true) || place(true)){                System.out.println("Hello Crowle");                }        }        public static boolean place(boolean location){        if(location==true){                System.out.println("Borcetshire");                }        </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7274363008248613555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7274363008248613555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7274363008248613555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7274363008248613555'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0027.html' title='Java Certification Question 0027'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8120573929094236443</id><published>2009-07-06T15:31:00.000-07:00</published><updated>2009-07-06T15:31:00.847-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0026</title><summary type='text'>Which of the following statements are true?1) The elements in a Java array can only be of primitive types, not objects2) Arrays are initialized to default values wherever they are created3) An array may be dynamically resized using the setSize method4) You can find out the size of an array using the size methodAnswer :2) Arrays are initialized to default values wherever they are createdYou can </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8120573929094236443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8120573929094236443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8120573929094236443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8120573929094236443'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0026.html' title='Java Certification Question 0026'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7742260369434657167</id><published>2009-07-05T15:29:00.000-07:00</published><updated>2009-07-05T15:29:01.067-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0025</title><summary type='text'>Which of the following statements are true?1) The following statement will produce a result of 1. System.out.println( -1 &gt;&gt;&gt;2);2) Performing an unsigned left shift (&lt;&lt;&lt;) on a negative number will always produce a negative number result3) The following statement will produce a result of zero, System.out.println(1 &gt;&gt;1);4) All the integer primitives in java are signed numbersAnswer :3) The following</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7742260369434657167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7742260369434657167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7742260369434657167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7742260369434657167'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0025.html' title='Java Certification Question 0025'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7761713231712082720</id><published>2009-07-04T15:28:00.000-07:00</published><updated>2009-07-04T15:28:00.667-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0024</title><summary type='text'>Which of the following statements are true?1) A method in an interface must not have a body2) A class may extend one other class plus at most one interface3) A class may extends at most one other class plus implement many interfaces4) An class accesses an interface via the keyword usesAnswer :1) A method in an interface must not have a body3) A class may extends one other class plus many </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7761713231712082720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7761713231712082720' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7761713231712082720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7761713231712082720'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0024.html' title='Java Certification Question 0024'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5485893712853339559</id><published>2009-07-03T15:25:00.000-07:00</published><updated>2009-07-03T15:25:00.498-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0023</title><summary type='text'>Which of the following statements are true?1 ) The String class is implemented as a char array, elements are addressed using the stringname[] convention2) The + operator is overloaded for concatenation for the String class3) Strings are a primitive type in Java and the StringBuffer is used as the matching wrapper type4) The size of a string can be retrieved using the length propertyAnswer :2) The</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5485893712853339559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5485893712853339559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5485893712853339559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5485893712853339559'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0023.html' title='Java Certification Question 0023'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7769691552552550796</id><published>2009-07-02T15:27:00.000-07:00</published><updated>2009-07-02T15:27:00.981-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0022</title><summary type='text'> Which of the following statements are true?1) All of the variables in an interface are implicitly static2) All of the variables in an interface are implicitly final3) All of the methods in an interface are implicitly abstract4) A method in an interface can access class level variablesAnswer :1) All of the variables in an interface are implicitly static2) All of the variables in an interface are </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7769691552552550796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7769691552552550796' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7769691552552550796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7769691552552550796'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0022.html' title='Java Certification Question 0022'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8070294929364424916</id><published>2009-07-01T15:21:00.000-07:00</published><updated>2009-07-01T15:21:00.502-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0021</title><summary type='text'>Which of the following statements are true?1) The default constructor has a return type of void2) The default constructor takes a parameter of void3) The default constructor takes no parameters4) The default constructor is not created if the class has any constructors of its own.Answer :3) The default constructor takes no parameters4) The default constructor is not created if the class has any </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8070294929364424916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8070294929364424916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8070294929364424916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8070294929364424916'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/07/java-certification-question-0021.html' title='Java Certification Question 0021'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4442000565888602986</id><published>2009-06-30T15:06:00.000-07:00</published><updated>2009-06-30T15:06:00.463-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0020</title><summary type='text'>Which of the following are Java keywords?1) sizeof2) main3) transient4) volatileAnswer :3) transient4) volatileOption 1, sizeof is designed to catch out the C/C++ programmers. Java does not have a sizeof keyword as the size of primitives should be consistent on all Java implementations. Although a program needs a main method with the standard signature to start up it is not a keyword. The real </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4442000565888602986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4442000565888602986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4442000565888602986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4442000565888602986'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0020.html' title='Java Certification Question 0020'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-3275688799188277707</id><published>2009-06-29T15:05:00.000-07:00</published><updated>2009-06-29T15:05:04.583-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0019</title><summary type='text'>Which of the following are true?1) A component may have only one event listener attached at a time2) An event listener may be removed from a component3) The ActionListener interface has no corresponding Adapter class4) The processing of an event listener requires a try/catch blockAnswer :2) An event listener may be removed from a component3) The ActionListener interface has no corresponding </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/3275688799188277707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=3275688799188277707' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3275688799188277707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/3275688799188277707'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0019.html' title='Java Certification Question 0019'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-7189307620656334692</id><published>2009-06-28T15:04:00.000-07:00</published><updated>2009-06-28T15:04:01.736-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0018</title><summary type='text'>Which of the following will compile without error?1)char c='1';System.out.println(c&gt;&gt;1);2)Integer i=Integer("1");System.out.println(i&gt;&gt;1);3)int i=1;System.out.println(i&lt;&lt;&lt;1);4)int i=1;System.out.println(i&lt;&lt;1);Answer :1)char c='1';System.out.println(c&gt;&gt;1);4)int i=1;System.out.println(i&lt;&lt;1);Be aware that Integer (not the upper case I) is a wrapper class and thus cannot be treated like a primitive. </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/7189307620656334692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=7189307620656334692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7189307620656334692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/7189307620656334692'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0018.html' title='Java Certification Question 0018'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4292710714096520681</id><published>2009-06-27T15:03:00.000-07:00</published><updated>2009-06-27T15:03:02.328-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0017</title><summary type='text'>Which of the following statements are true?1) static methods do not have access to the implicit variable called this2) A static method may be called without creating an instance of its class3) A static method may not be overriden to be non-static4) A static method may not be overloadedAnswer :1) static methods do not have access to the implicit variable called this2) A static method may be called</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4292710714096520681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4292710714096520681' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4292710714096520681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4292710714096520681'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0017.html' title='Java Certification Question 0017'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8697769312052665395</id><published>2009-06-26T15:01:00.000-07:00</published><updated>2009-06-26T15:01:07.618-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0016</title><summary type='text'>What will happen when you attempt to compile and run the following class?class Base{        Base(int i){        System.out.println("Base");        }}class Severn extends Base{public static void main(String argv[]){        Severn s = new Severn();        }        void Severn(){        System.out.println("Severn");        }}1) Compilation and output of the string "Severn" at runtime2) Compile time </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8697769312052665395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8697769312052665395' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8697769312052665395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8697769312052665395'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0016.html' title='Java Certification Question 0016'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6945689314936600931</id><published>2009-06-25T15:00:00.000-07:00</published><updated>2009-06-25T15:00:10.890-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0015</title><summary type='text'>Objective 6.2)Which of the following statements are true?1) Constructors cannot have a visibility modifier2) Constructors can be marked public and protected, but not private3) Constructors can only have a primitive return type4) Constructors are not inheritedAnswer :4) Constructors are not inheritedConstructors can be marked public, private or protected. Constructors do not have a return type.</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6945689314936600931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6945689314936600931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6945689314936600931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6945689314936600931'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0015.html' title='Java Certification Question 0015'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1463913277680805581</id><published>2009-06-24T14:59:00.000-07:00</published><updated>2009-06-24T14:59:01.875-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0014</title><summary type='text'>Objective 1.2)Which of the following are valid methods?1) public static native void amethod(){}2) public static void amethod(){}3) private protected void amethod(){}4) static native void amethod();Answer :2) public static void amethod(){}4) static native void amethod();Option 1 is not valid because it has braces and the native modifier means that the method can have no body. This is because the </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1463913277680805581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1463913277680805581' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1463913277680805581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1463913277680805581'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0014.html' title='Java Certification Question 0014'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1541726944605005019</id><published>2009-06-23T14:52:00.000-07:00</published><updated>2009-06-23T14:52:00.448-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0013</title><summary type='text'>Which of the following statements are true?1) If a class has any abstract methods it must be declared abstract itself.2) All methods in an abstract class must be declared as abstract3) When applied to a class, the final modifier means it cannot be sub-classed4) transient and volatile are Java modifiersAnswer :1) If a class has any abstract methods it must be declared abstract itself.3) The final </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1541726944605005019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1541726944605005019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1541726944605005019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1541726944605005019'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0013.html' title='Java Certification Question 0013'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-8218137182688304564</id><published>2009-06-22T14:51:00.000-07:00</published><updated>2009-06-22T14:51:01.197-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0012</title><summary type='text'>You have a public class called myclass with the main method defined as followspublic static void main(String parm[]){System.out.println(parm[0]);}If you attempt to compile the class and run the program as followsjava myclass helloWhat will happen?1) Compile time error, main is not correctly defined2) Run time error, main is not correctly defined3) Compilation and output of java4) Compilation and </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/8218137182688304564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=8218137182688304564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8218137182688304564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/8218137182688304564'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0012.html' title='Java Certification Question 0012'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-2029884940993170546</id><published>2009-06-21T14:50:00.000-07:00</published><updated>2009-06-21T14:50:01.100-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0011</title><summary type='text'>What will happen when you attempt to compile and run the following codeclass Base{public void Base(){System.out.println("Base");}}public class In extends Base{public static void main(String argv[]){In i=new In();}}1) Compile time error Base is a keyword2) Compilation and no output at runtime3) Output of Base4) Runtime error Base has no valid constructorAnswer :2) Compilation and no output at </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/2029884940993170546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=2029884940993170546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2029884940993170546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/2029884940993170546'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0011.html' title='Java Certification Question 0011'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-1891291821126434548</id><published>2009-06-20T14:46:00.000-07:00</published><updated>2009-06-20T14:46:01.104-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0010</title><summary type='text'>Which of the following statements are true?1) A byte can represent between -128 to 1272) A byte can represent between -127 to 1283) A byte can represent between -256 to 2564) A char can represent between -2x2 pow 16 2 x2 pow 16 - 1Answer :1) A byte can represent between -128 to 127The char type is the only unsigned type in Java and thus cannot represent a negative number.</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/1891291821126434548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=1891291821126434548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1891291821126434548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/1891291821126434548'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0010.html' title='Java Certification Question 0010'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-5013327442217968946</id><published>2009-06-19T14:45:00.000-07:00</published><updated>2009-06-19T14:45:01.084-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0009</title><summary type='text'>Which of the following are methods of the Runnable interface1) run2) start3) yield4) stopAnswer :1) The Runnable interface has only one method run that needs to be created in any class that implements it. The start method is used to actually call and start the run method executing.</summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/5013327442217968946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=5013327442217968946' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5013327442217968946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/5013327442217968946'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0009.html' title='Java Certification Question 0009'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-4214793841298389141</id><published>2009-06-18T14:43:00.000-07:00</published><updated>2009-06-19T09:09:07.324-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0008</title><summary type='text'>Which of the following are valid statements1) public class MyCalc extends Math2) Math.max(s);3) Math.round(9.99,1);4)Math.mod(4,10);Answer :Objective 9.1)None of these are valid statements. The Math class is final and cannot be extended. The max method takes two parameters, round only takes one parameter and there is no mod parameter. You may get questions in the exam that have no apparently </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/4214793841298389141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=4214793841298389141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4214793841298389141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/4214793841298389141'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0008.html' title='Java Certification Question 0008'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-9219032634243248579</id><published>2009-06-17T14:41:00.000-07:00</published><updated>2009-06-17T14:41:00.744-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0007</title><summary type='text'>Which of the following statements are true?1) An interface can only contain method and not variables2) Interfaces cannot have constructors3) A class may extend only one other class and implement only one interface4) Interfaces are the Java approach to addressing its lack of multiple inheritance, but require implementing classes to create the functionality of the Interfaces.Answer:2) Interfaces </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/9219032634243248579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=9219032634243248579' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/9219032634243248579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/9219032634243248579'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0007.html' title='Java Certification Question 0007'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318505904199078482.post-6050036753456994541</id><published>2009-06-16T14:33:00.001-07:00</published><updated>2009-06-16T14:44:48.762-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><title type='text'>Java Certification Question 0006</title><summary type='text'>Which of the following statements are true?1) The instanceof operator can be used to determine if a reference is an instance of a class, but not an interface.2) The instanceof operator can be used to determine if a reference is an instance of a particular primitive wrapper class3) The instanceof operator will only determine if a reference is an instance of a class immediately above in the </summary><link rel='replies' type='application/atom+xml' href='http://weekendtech.blogspot.com/feeds/6050036753456994541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4318505904199078482&amp;postID=6050036753456994541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6050036753456994541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318505904199078482/posts/default/6050036753456994541'/><link rel='alternate' type='text/html' href='http://weekendtech.blogspot.com/2009/06/java-certification-question-0006.html' title='Java Certification Question 0006'/><author><name>duffieldc</name><uri>http://www.blogger.com/profile/09322542446820590766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
