<?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-6429452015741630101</id><updated>2011-07-08T05:50:04.500-07:00</updated><category term='core java interview Question Part1'/><title type='text'>Interview Questions</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://easy-interview-tips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://easy-interview-tips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Admin</name><uri>http://www.blogger.com/profile/11360195177053445634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_PEQVIzOldm4/SoKHDxLtMSI/AAAAAAAAACY/9BFg0FbiF9E/S220/ANBUa.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6429452015741630101.post-9006821662405849161</id><published>2009-11-05T03:20:00.001-08:00</published><updated>2009-11-05T03:20:38.871-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='core java interview Question Part1'/><title type='text'></title><content type='html'>47. What is the range of the short type?&lt;br /&gt;The range of the short type is -(2^15) to 2^15 - 1.&lt;br /&gt;48. What is the range of the char type?&lt;br /&gt;The range of the char type is 0 to 2^16 - 1.&lt;br /&gt;49. In which package  are most of the AWT events that support the event-delegation&lt;br /&gt;model defined?&lt;br /&gt;Most of the AWT-related events of the event-delegation model are defined in the&lt;br /&gt;java.awt.ev ent package.  The AWTEvent class is defined in the java.awt package.&lt;br /&gt;50. What is the immediate superclass of Menu?&lt;br /&gt;MenuItem&lt;br /&gt;51. What is the purpose of finalization?&lt;br /&gt;The purpose of  finalization is to give an unreachable object the opportunity to perform&lt;br /&gt;any cleanup p rocessing before the object is garbage collected.&lt;br /&gt;52. Which class is the immediate superclass of the MenuComponent class.&lt;br /&gt;Object&lt;br /&gt;53. What invokes a thread's run() method?&lt;br /&gt;After a thread is started, via its start() method or that of the Thread class, the JVM&lt;br /&gt;invokes the thread's run() method when the thread is initially executed.&lt;br /&gt;54. What is the difference between the Boolean &amp; operator and the &amp;&amp; operator?&lt;br /&gt;If an ex pression involving the Boolean &amp; o perator is evaluated, both operands are&lt;br /&gt;evaluated. Then the &amp; operator is applied to the operand. When an  expression involving&lt;br /&gt;the &amp;&amp; operator is evaluated, the first operand is evaluated. If the first operand returns a&lt;br /&gt;value of true then the second operand is evaluated. The &amp;&amp; operator is then applied to&lt;br /&gt;the first and second op erands. If the first operand  evaluates to f alse, the evaluation of the&lt;br /&gt;second operand is skipped.&lt;br /&gt;55. Name three subclasses of the Component class.&lt;br /&gt;Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, or&lt;br /&gt;TextComponent&lt;br /&gt;56. What is the Grego rianCalendar class?&lt;br /&gt;The Grego rianCalendar provides support for traditional Western calendars.&lt;br /&gt;57. Which Container method is used to cause a container to be laid out and redisplayed?&lt;br /&gt;validate()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6429452015741630101-9006821662405849161?l=easy-interview-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easy-interview-tips.blogspot.com/feeds/9006821662405849161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/47.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/9006821662405849161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/9006821662405849161'/><link rel='alternate' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/47.html' title=''/><author><name>Admin</name><uri>http://www.blogger.com/profile/11360195177053445634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_PEQVIzOldm4/SoKHDxLtMSI/AAAAAAAAACY/9BFg0FbiF9E/S220/ANBUa.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6429452015741630101.post-5277170680729442165</id><published>2009-11-05T03:19:00.000-08:00</published><updated>2009-11-05T03:21:02.627-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='core java interview Question Part1'/><title type='text'></title><content type='html'>35. What is clipping?&lt;br /&gt;Clipping is the process of confining p aint operations to a limited area or shape.&lt;br /&gt;36. What is a native method?&lt;br /&gt;A native method is a method that is implemented in a language other than Java.&lt;br /&gt;37. Can a for statement loop indefinitely?&lt;br /&gt;Yes, a for statement can loop indefinitely. For example, consider the following:&lt;br /&gt;for(;;) ;&lt;br /&gt;38. What are order of precedence and associativity, and how ar e they used?&lt;br /&gt;Order of precedence determines the order in which operators are  evaluated  in&lt;br /&gt;expressions. Associatity determines whether an expression is evaluated left-to-right or&lt;br /&gt;right-to-left&lt;br /&gt;39. When a thread blocks on I/O, what state does it enter?&lt;br /&gt;A thread enters the waiting state when it blocks on I/O.&lt;br /&gt;40. To what value is a variable of the String type automatically initialized?&lt;br /&gt;The default value of an String type is null.&lt;br /&gt;41. What is the catch or declare rule for method declarations?&lt;br /&gt;If a ch ecked exception may be thrown within the body of  a method, the method must&lt;br /&gt;either catch the ex ception or declare it in its throws clause.&lt;br /&gt;42. What is the difference between a Menu Item and a CheckboxMenuItem?&lt;br /&gt;The CheckboxMenuItem class extends the MenuItem class to support a menu item that&lt;br /&gt;may be checked or unchecked.&lt;br /&gt;43. What is a task's priority and how is it used in scheduling?&lt;br /&gt;A task's priority is an integer value that identifies the relative order in which it should be&lt;br /&gt;executed with respect to other tasks. The sch eduler attempts to schedule higher priority&lt;br /&gt;tasks before lower priority tasks.&lt;br /&gt;44. What class is the top of the AWT event hierarchy?&lt;br /&gt;The java.awt.AWTEvent class is the highest-level class in the AWT event-class&lt;br /&gt;hierarchy.&lt;br /&gt;45. When a thread is created and started, wh at is its initial state?&lt;br /&gt;A thread is in the ready state after it has been created and started.&lt;br /&gt;46. Can an anonymous class be declared as implementing an interface and  extending a&lt;br /&gt;class?&lt;br /&gt;An anonymous class may implement an interface or extend a superclass, but may not be&lt;br /&gt;declared to do both.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6429452015741630101-5277170680729442165?l=easy-interview-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easy-interview-tips.blogspot.com/feeds/5277170680729442165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/httpwww.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/5277170680729442165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/5277170680729442165'/><link rel='alternate' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/httpwww.html' title=''/><author><name>Admin</name><uri>http://www.blogger.com/profile/11360195177053445634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_PEQVIzOldm4/SoKHDxLtMSI/AAAAAAAAACY/9BFg0FbiF9E/S220/ANBUa.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6429452015741630101.post-4201309063159835315</id><published>2009-11-05T03:18:00.000-08:00</published><updated>2009-11-05T03:19:16.157-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='core java interview Question Part1'/><title type='text'></title><content type='html'>24. Which java.util classes and interfaces support event handling?&lt;br /&gt;The EventObject class and the EventListener interface support event processing.&lt;br /&gt;25. Is sizeof a k eyword?&lt;br /&gt;The sizeof operator is not a keyword.&lt;br /&gt;26. What are wrapped classes?&lt;br /&gt;Wrapped classes are classes that allow primitive types to be accessed as objects.&lt;br /&gt;27. Does garbage collection guarantee that a program will not run out of memory?&lt;br /&gt;Garbage collection does not guar antee that a program will not run out of memory. It is&lt;br /&gt;possible for programs to use up memory resources faster than they ar e garbage collected.&lt;br /&gt;It is also possible for programs to create objects that are not subject to garbage collection&lt;br /&gt;28. What restrictions are placed on the location of a pack age statement&lt;br /&gt;within a source cod e file?&lt;br /&gt;A package statement must appear as the first line in a source code file (excluding blank&lt;br /&gt;lines and comments).&lt;br /&gt;29. Can an object's finalize() method be invoked while it is reachable?&lt;br /&gt;An object's finalize() method cannot be invoked by the garbage collector while the object&lt;br /&gt;is still reachable. However, an object's finalize() method may be invoked by other&lt;br /&gt;objects.&lt;br /&gt;30. What is the immediate superclass of the Applet class?&lt;br /&gt;Panel&lt;br /&gt;31. What is the difference between preemptive scheduling and time slicing?&lt;br /&gt;Under preemptive scheduling, the highest priority task executes until it enters the waiting&lt;br /&gt;or dead states or a higher priority task comes into existence. Under time slicing, a task&lt;br /&gt;executes for a p redefined slice of time and then reenters the pool of ready tasks. The&lt;br /&gt;scheduler then d etermines which task should execute next, based on priority and&lt;br /&gt;other factors.&lt;br /&gt;32. Name three Component subclasses that support painting.&lt;br /&gt;The Canvas, Frame, Pan el, and Applet classes support painting.&lt;br /&gt;33. What value does readLine() return when it has reached the end of a file?&lt;br /&gt;The readLine() method returns null when it has reached the end of a  file.&lt;br /&gt;34. What is the immediate superclass of the Dialog class?&lt;br /&gt;Window&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6429452015741630101-4201309063159835315?l=easy-interview-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easy-interview-tips.blogspot.com/feeds/4201309063159835315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/4201309063159835315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/4201309063159835315'/><link rel='alternate' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/24.html' title=''/><author><name>Admin</name><uri>http://www.blogger.com/profile/11360195177053445634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_PEQVIzOldm4/SoKHDxLtMSI/AAAAAAAAACY/9BFg0FbiF9E/S220/ANBUa.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6429452015741630101.post-2581829738433627583</id><published>2009-11-05T01:54:00.000-08:00</published><updated>2009-11-05T01:56:13.135-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='core java interview Question Part1'/><title type='text'>Core Java Interview Question</title><content type='html'>13. What is the Collections API?&lt;br /&gt;The Collections API is a set of classes  and interfaces that support operations on&lt;br /&gt;collections of objects.&lt;br /&gt;&lt;br /&gt;14. Which characters may be used as the second character of an identifier,&lt;br /&gt;but not as the first character of an identifier?&lt;br /&gt;The digits 0 through 9 may not be used as the first character of an identifier but they may&lt;br /&gt;be used after the first character of an identifier.&lt;br /&gt;&lt;br /&gt;15. What is the List interface?&lt;br /&gt;The List interface provides support for ord ered collections of objects.&lt;br /&gt;&lt;br /&gt;16. How does Java handle integer overflows and underflows?&lt;br /&gt;It uses those low order b ytes of the result that can fit into the size of the type allowed by&lt;br /&gt;the operation.&lt;br /&gt;&lt;br /&gt;17. What is the Vector class?&lt;br /&gt;The Vector class provides the capability to implement a growable array of objects&lt;br /&gt;&lt;br /&gt;18. What modifiers may be used with an inner class that is a member of an  outer class?&lt;br /&gt;A (non-local) inner class may b e declared  as public, protected, private, static, final, or&lt;br /&gt;abstract.&lt;br /&gt;&lt;br /&gt;19. What is an Iterator interface?&lt;br /&gt;The Iterator interface is used to step through the  elements of a C ollection.&lt;br /&gt;&lt;br /&gt;20. What is the difference between the &gt;&gt; and &gt;&gt;&gt; operators?&lt;br /&gt;The &gt;&gt; operator carries the sign bit when shifting right. The &gt;&gt;&gt; zero-fills bits that have&lt;br /&gt;been shifted out.&lt;br /&gt;&lt;br /&gt;21. Which method of the Component class is used to set the position and&lt;br /&gt;size of a component?&lt;br /&gt;setBounds()&lt;br /&gt;&lt;br /&gt;22. How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8&lt;br /&gt;characters?&lt;br /&gt;Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses&lt;br /&gt;only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters u sing 8, 16,&lt;br /&gt;and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns.&lt;br /&gt;&lt;br /&gt;23What is the difference between yielding and sleeping?&lt;br /&gt;When a task invokes its yield() method, it returns to the ready state. When a task invokes&lt;br /&gt;its sleep() method, it returns to the waiting state.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6429452015741630101-2581829738433627583?l=easy-interview-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easy-interview-tips.blogspot.com/feeds/2581829738433627583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/2581829738433627583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/2581829738433627583'/><link rel='alternate' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/13.html' title='Core Java Interview Question'/><author><name>Admin</name><uri>http://www.blogger.com/profile/11360195177053445634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_PEQVIzOldm4/SoKHDxLtMSI/AAAAAAAAACY/9BFg0FbiF9E/S220/ANBUa.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6429452015741630101.post-2218533935138038225</id><published>2009-11-05T01:10:00.000-08:00</published><updated>2009-11-05T01:19:04.357-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='core java interview Question Part1'/><title type='text'>Core Java Interview Questions</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CAnbumani%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 18.5pt; color: rgb(127, 127, 0); letter-spacing: -0.05pt;"&gt;CORE JAVA INTERVIEW QUESTIONS AND ANSWERS&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 18.5pt; color: rgb(127, 127, 0); letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;1.what&lt;span style=""&gt;  &lt;/span&gt;is a   transient variable?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;A transient variable is a variable that may not be   serialized.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;2.which containers use a border Layout as their   default layout?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;The window, Frame and Dialog classes use a border   layout as their default layout.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;3.Wh y do threads block&lt;span style=""&gt;  &lt;/span&gt;on I/O?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;Threads block on i/o (that is enters the waiting   state) so that other threads may execute&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;while the i/o Operation is performed.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;4. How are Observ er and Observable used?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;Objects that subclass the Observable class maintain a   list of observers. When an&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;Observable object is updated it invokes the update()   method of each of its observers to&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;notify the observers that it has changed state.   The&lt;span style=""&gt;  &lt;/span&gt;Observer interface is implemented   by&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;objects that observe Observable objects.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;5. What is synchronization and why is it important?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;With respect to multithreading, synchronization is the   capability to control the access of&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;multiple threads to shared resources. Without   synchronization, it is possible for one&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;thread to modify a shared object while another thread   is in the process of using or&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;updating that object's value. This often leads to   significant errors.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;6. Can a lock be acquired on a class?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;Yes, a lock can be&lt;span style=""&gt;    &lt;/span&gt;acquired on a class. This lock is acquired on the&lt;span style=""&gt;  &lt;/span&gt;class's Class object..&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;7. What's new with the stop(), suspend() and resume()   methods in JDK 1.2?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;The stop(), suspend() and resume() methods have&lt;span style=""&gt;  &lt;/span&gt;been depr ecated in JDK 1.2.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;8. Is null a keyword?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;The null value is not a keyword.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;9. What is the preferred size of a component?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;The preferred size of a component is the minimum   component size that will allow the&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;component to display normally.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;10. What method is used to specify a container's   layout?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;The setLayout() method is used to specify a   container's layout.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;11. Which containers use a FlowLayout as their default   layout?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;The Panel and Applet classes use the FlowLayo ut as   their default layout.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;div style=""&gt;  &lt;table cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in;" align="left" valign="top"&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 15pt; color: black; letter-spacing: -0.05pt;"&gt;12. What state does a thread enter when it terminates   its processing?&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;span style="font-size: 15pt; font-family: &amp;quot;Times New Roman&amp;quot;; color: black; letter-spacing: -0.05pt;"&gt;When a thread terminates its processing, it enters the dead state.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6429452015741630101-2218533935138038225?l=easy-interview-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easy-interview-tips.blogspot.com/feeds/2218533935138038225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/core-java-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/2218533935138038225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6429452015741630101/posts/default/2218533935138038225'/><link rel='alternate' type='text/html' href='http://easy-interview-tips.blogspot.com/2009/11/core-java-interview-questions.html' title='Core Java Interview Questions'/><author><name>Admin</name><uri>http://www.blogger.com/profile/11360195177053445634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_PEQVIzOldm4/SoKHDxLtMSI/AAAAAAAAACY/9BFg0FbiF9E/S220/ANBUa.jpg'/></author><thr:total>0</thr:total></entry></feed>
