<?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-7437680438668321229</id><updated>2012-02-16T03:07:37.004-08:00</updated><category term='dot net'/><category term='JCL'/><category term='SQL'/><category term='JSP'/><category term='java'/><category term='BW'/><category term='QTP'/><category term='perl'/><category term='cobal'/><category term='SD'/><category term='APAB'/><category term='Winrunner'/><category term='IS Retail'/><category term='Oracle'/><category term='MM'/><category term='Ajax'/><category term='Basis'/><category term='vb'/><category term='mainframe'/><category term='c'/><category term='Swing'/><category term='c#'/><category term='EJB'/><category term='PHP'/><category term='Loadrunner'/><category term='SAP'/><category term='j2me'/><category term='python'/><category term='Ruby'/><category term='OOPS'/><category term='DB2'/><category term='Delphi'/><category term='Networking'/><category term='HR'/><category term='Bluetooth'/><category term='Jms'/><category term='Data warehousing'/><category term='Peoplesoft'/><category term='FICO'/><category term='core java'/><category term='j2ee'/><category term='software testing'/><category term='c++'/><category term='Asp Dot Net'/><category term='PP'/><category term='Servlet'/><title type='text'>For Software Professionals</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://softwaaree.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default?start-index=101&amp;max-results=100'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>127</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-3972775039432101143</id><published>2011-01-24T03:57:00.000-08:00</published><updated>2011-01-24T03:57:00.698-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part XIII) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;Name four Container classes.&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between a Choice and a List?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;A Choice is displayed in a compact form that requires you to pull it  down to see the list of available choices. Only one item may be selected  from a Choice. A List may be displayed in such a way that several List  items are visible. A List supports the selection of one or more List  items.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What class of exceptions are generated by the Java run-time system? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Java runtime system generates RuntimeException and Error exceptions. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What class allows you to read objects directly from a stream?  &lt;/span&gt; &lt;/b&gt;&lt;span class="for_questions_blue"&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class="answers"&gt;The ObjectInputStream class supports the reading of objects from input  streams. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between a field variable and a local variable? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A field variable is a variable that is declared as a member of a class.  A local variable is a variable that is declared local to a method.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Under what conditions is an object's finalize() method invoked by the  garbage collector? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The garbage collector invokes an object's finalize() method when it  detects that the object has become unreachable.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How are this () and super () used with constructors?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;this() is used to invoke a constructor of the same class. super() is  used to invoke a superclass constructor.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the relationship between a method's throws clause and the  exceptions that can be thrown during the method's execution? &lt;br /&gt;&lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt;  A method's throws clause must declare any checked exceptions that are  not caught within the body of the method.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between the JDK 1.02 event model and the  event-delegation model introduced with JDK 1.1? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;The JDK 1.02 event model uses an event inheritance or bubbling approach.  In this model, components are required to handle their own events. If  they do not handle a particular event, the event is inherited by (or  bubbled up to) the component's container. The container then either  handles the event or it is bubbled up to its container and so on, until  the highest-level container has been tried. In the event-delegation  model, specific objects are designated as event handlers for GUI  components. These objects implement event-listener interfaces. The  event-delegation model is more efficient than the event-inheritance  model because it eliminates the processing required to support the  bubbling of unhandled events.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How is it possible for two String objects with identical values not  to be equal under the == operator? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The == operator compares two objects to determine if they are the same  object in memory. It is possible for two String objects to have the same  value, but located indifferent areas of memory. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Why are the methods of the Math class static? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;So they can be invoked as if they are a mathematical code library.  &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What Checkbox method allows you to tell if a Checkbox is checked? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;getState() &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What state is a thread in when it is executing?  &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  An executing thread is in the running state. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are the legal operands of the instanceof operator? &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;The left operand is an object reference or null value and the right  operand is a class, interface, or array type. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How are the elements of a GridLayout organized? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The elements of a GridBad layout are of equal size and are laid out  using the squares of a grid. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What an I/O filter? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;An I/O filter is an object that reads from one stream and writes to  another, usually altering the data in some way as it is passed from one  stream to another. &lt;/span&gt; &lt;br /&gt;&lt;span class="answers"&gt;&lt;b class="for_questions_blue"&gt;If an object is garbage collected, can it become reachable again? &lt;/b&gt; &lt;br /&gt;Once an object is garbage collected, it ceases to exist. It can no  longer become reachable again.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are E and PI?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;E is the base of the natural logarithm and PI is mathematical value pi.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Are true and false keywords? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The values true and false are not keywords.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a void return type? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A void return type indicates that a method does not return a value.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the purpose of the enableEvents() method? &lt;/span&gt; &lt;/b&gt;&lt;span class="for_questions_blue"&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class="answers"&gt;The enableEvents() method is used to enable an event for a particular  object. Normally, an event is enabled when a listener is added to an  object for a particular event. The enableEvents() method is used by  objects that handle events by overriding their event-dispatch methods. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between the File and RandomAccessFile classes? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The File class encapsulates the files and directories of the local file  system. The RandomAccessFile class provides the methods needed to  directly access data contained in any part of a file. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What happens when you add a double value to a String?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The result is a String object.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is your platform's default character encoding?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;If you are running Java on English Windows platforms, it is probably  Cp1252. If you are running Java on English Solaris platforms, it is most  likely 8859_1..  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which package is always imported by default?  &lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;  The java.lang package is always imported by default.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What interface must an object implement before it can be written to a  stream as an object? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;An object must implement the Serializable or Externalizable interface  before it can be written to a stream as an object.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How are this and super used? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;this is used to refer to the current object instance. super is used to  refer to the variables and methods of the superclass of the current  object instance. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the purpose of garbage collection? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The purpose of garbage collection is to identify and discard objects  that are no longer needed by a program so that their resources may be  reclaimed and reused. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is a compilation unit? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A compilation unit is a Java source code file. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What interface is extended by AWT event listeners? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;All AWT event listeners extend the java.util.EventListener interface. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What restrictions are placed on method overriding?  &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  Overridden methods must have the same name, argument list, and return  type. The overriding method may not limit the access of the method it  overrides. The overriding method may not throw any exceptions that may  not be thrown by the overridden method. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How can a dead thread be restarted? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A dead thread cannot be restarted. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What happens if an exception is not caught? &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;An uncaught exception results in the uncaughtException() method of the  thread's ThreadGroup being invoked, which eventually results in the  termination of the program in which it is thrown. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is a layout manager? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A layout manager is an object that is used to organize components in a  container. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which arithmetic operations can result in the throwing of an  ArithmeticException? &lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Integer / and % can result in the throwing of an ArithmeticException.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-3972775039432101143?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3972775039432101143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3972775039432101143'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2011/01/core-java-part-xiii-interview-questions.html' title='Core Java (Part XIII) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-5527258682210663954</id><published>2011-01-21T03:55:00.000-08:00</published><updated>2011-01-21T03:55:00.689-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part XII) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;For which statements does it make sense to  use a label?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The only statements for which it makes sense to use a label are those  statements that can enclose a break or continue statement. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the purpose of the System class? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The purpose of the System class is to provide access to system  resources. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which TextComponent method is used to set a TextComponent to the  read-only state? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;setEditable() &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How are the elements of a CardLayout organized? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The elements of a CardLayout are stacked, one on top of the other, like  a deck of cards. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Is &amp;amp;&amp;amp;= a valid Java operator?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;No, it is not. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Name the eight primitive Java types.&lt;/span&gt;&lt;/b&gt;&lt;span class="for_questions_blue"&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The eight primitive types are byte, char, short, int, long, float,  double, and boolean. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which class should you use to obtain design information about an  object? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Class class is used to obtain information about an object's design. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the relationship between clipping and repainting?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;When a window is repainted by the AWT painting thread, it sets the  clipping regions to the area of the window that requires repainting. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Is "abc" a primitive value?  &lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;  The String literal "abc" is not a primitive value. It is a String  object.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the relationship between an event-listener interface and an  event-adapter class? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;An event-listener interface defines the methods that must be implemented  by an event handler for a particular kind of event. An event adapter  provides a default implementation of an event-listener interface. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What restrictions are placed on the values of each case of a switch  statement? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;During compilation, the values of each case of a switch statement must  evaluate to a value that can be promoted to an int value. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What modifiers may be used with an interface declaration? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;An interface may be declared as public or abstract. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Is a class a subclass of itself? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A class is a subclass of itself. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the highest-level event class of the event-delegation model? &lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt;  The java.util.EventObject class is the highest-level class in the  event-delegation class hierarchy. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What event results from the clicking of a button? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The ActionEvent event is generated as the result of the clicking of a  button. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How can a GUI component handle its own events? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A component can handle its own events by implementing the required  event-listener interface and adding itself as its own event listener. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between a while statement and a do statement? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A while statement checks at the beginning of a loop to see whether the  next loop iteration should occur. A do statement checks at the end of a  loop to see whether the next iteration of a loop should occur. The do  statement will always execute the body of a loop at least once. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How are the elements of a GridBagLayout organized? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The elements of a GridBagLayout are organized according to a grid.  However, the elements are of different sizes and may occupy more than  one row or column of the grid. In addition, the rows and columns may  have different sizes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What advantage do Java's layout managers  provide over traditional windowing systems?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;Java uses layout managers to lay out components in a consistent manner  across all windowing platforms. Since Java's layout managers aren't tied  to absolute sizing and positioning, they are able to accommodate  platform-specific differences among windowing systems. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the Collection interface? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Collection interface provides support for the implementation of a  mathematical bag - an unordered collection of objects that may contain  duplicates. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What modifiers can be used with a local inner class?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A local inner class may be final or abstract. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between static and non-static variables?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A static variable is associated with the class as a whole rather than  with specific instances of a class. Non-static variables take on unique  values with each object instance. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between the paint() and repaint() methods?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The paint() method supports painting via a Graphics object. The  repaint() method is used to cause paint() to be invoked by the AWT  painting thread. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the purpose of the File class?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The File class is used to create objects that provide access to the  files and directories of a local file system. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Can an exception be rethrown? &lt;br /&gt;&lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt;  Yes, an exception can be rethrown. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which Math method is used to calculate the absolute value of a  number? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The abs() method is used to calculate absolute values. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How does multithreading take place on a computer with a single CPU? &lt;/span&gt; &lt;/b&gt;&lt;span class="for_questions_blue"&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class="answers"&gt;The operating system's task scheduler allocates execution time to  multiple tasks. By quickly switching between executing tasks, it creates  the impression that tasks execute sequentially.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;When does the compiler supply a default constructor for a class? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The compiler supplies a default constructor for a class if no other  constructors are provided. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;When is the finally clause of a try-catch-finally statement executed? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The finally clause of the try-catch-finally statement is always executed  unless the thread of execution terminates or an exception occurs within  the execution of the finally clause. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which class is the immediate superclass of the Container class? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Component &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;If a method is declared as protected, where may the method be  accessed? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A protected method may only be accessed by classes or interfaces of the  same package or by subclasses of the class in which it is declared.  &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;How can the Checkbox class be used to create a radio button?  &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  By associating Checkbox objects with a CheckboxGroup. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which non-Unicode letter characters may be used as the first  character of an identifier? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The non-Unicode letter characters $ and _ may appear as the first  character of an identifier &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What restrictions are placed on method overloading? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Two methods may not have the same name and argument list but different  return types. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What happens when you invoke a thread's interrupt method while it is  sleeping or waiting? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;When a task's interrupt() method is executed, the task enters the ready  state. The next time the task enters the running state, an  InterruptedException is thrown. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the return type of a program's main() method? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A program's main() method has a void return type.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-5527258682210663954?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5527258682210663954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5527258682210663954'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2011/01/core-java-part-xii-interview-questions.html' title='Core Java (Part XII) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-3024347697482529526</id><published>2010-12-30T03:53:00.000-08:00</published><updated>2010-12-30T03:53:00.175-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part XI) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between a break  statement and a continue statement?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;A break statement results in the termination of the statement to which  it applies (switch, for, do, or while). A continue statement is used to  end the current loop iteration and return control to the loop statement. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What must a class do to implement an interface? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It must provide all of the methods in the interface and identify the  interface in its implements clause. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What method is invoked to cause an object to begin executing as a  separate thread? &lt;/b&gt; &lt;br /&gt;The start() method of the Thread class is invoked to cause an object to  begin executing as a separate thread. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Name two subclasses of the TextComponent class. &lt;/b&gt; &lt;br /&gt;TextField and TextArea &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the advantage of the event-delegation  model over the earlier event-inheritance model? &lt;/b&gt; &lt;br /&gt;The event-delegation model has two advantages over the event-inheritance  model. First, it enables event handling to be handled by objects other than the  ones that generate the events (or their containers). This allows a clean  separation between a component's design and its use. The other advantage of the  event-delegation model is that it performs much better in applications where  many events are generated. This performance improvement is due to the fact that  the event-delegation model does not have to repeatedly process unhandled events,  as is the case of the event-inheritance model. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which containers may have a MenuBar? &lt;br /&gt;&lt;/b&gt;Frame &lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How are commas used in the  initialization and iteration parts of a for statement?&lt;/span&gt;&lt;span class="answers"&gt; &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;Commas are used to separate multiple statements within the  initialization and iteration parts of a for statement. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the purpose of the wait(),  notify(), and notifyAll() methods? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The wait(),notify(), and notifyAll() methods are used to provide an  efficient way for threads to wait for a shared resource. When a thread executes  an object's wait() method, it enters the waiting state. It only enters the ready  state after another thread invokes the object's notify() or notifyAll() methods.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is an abstract method? &lt;/b&gt; &lt;br /&gt;An abstract method is a method whose implementation is deferred to a  subclass.  &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How are Java source code files named? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;A Java source code file takes the name of a public class or interface  that is defined within the file. A source code file may contain at most  one public class or interface. If a public class or interface is defined  within a source code file, then the source code file must take the name  of the public class or interface. If no public class or interface is  defined within a source code file, then the file must take on a name  that is different than its classes and interfaces. Source code files use  the .java extension. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the relationship between the Canvas class and the Graphics  class? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A Canvas object provides access to a Graphics object via its paint()  method. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are the high-level thread states? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The high-level thread states are ready, running, waiting, and dead.  &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What value does read() return when it has reached the end of a file? &lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt;  The read() method returns -1 when it has reached the end of a file.  &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can a Byte object be cast to a double value? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;No, an object cannot be cast to a primitive value. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between a static and a non-static inner class? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A non-static inner class may have object instances that are associated  with instances of the class's outer class. A static inner class does not  have any object instances. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between the String and StringBuffer classes? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;String objects are constants. StringBuffer objects are not. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;If a variable is declared as private, where may the variable be  accessed?  &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;A private variable may only be accessed within the class in which it is  declared.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is an object's lock and which objects  have locks?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;An object's lock is a mechanism that is used by multiple threads to  obtain synchronized access to the object. A thread may execute a  synchronized method of an object only after it has acquired the object's  lock. All objects and classes have locks. A class's lock is acquired on  the class's Class object. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is the Dictionary class? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Dictionary class provides the capability to store key-value pairs. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How are the elements of a BorderLayout organized? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The elements of a BorderLayout are organized at the borders (North,  South, East, and West) and the center of a container. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the % operator? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;It is referred to as the modulo or remainder operator. It returns the  remainder of dividing the first operand by the second operand. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;When can an object reference be cast to an interface reference?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;An object reference be cast to an interface reference when the object  implements the referenced interface. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between a Window and a Frame?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;The Frame class extends Window to define a main application window that  can have a menu bar. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which class is extended by all other classes?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Object class is extended by all other classes. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Can an object be garbage collected while it is still reachable?  &lt;br /&gt;&lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt;  A reachable object cannot be garbage collected. Only unreachable objects  may be garbage collected..&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Is the ternary operator written x : y ? z or x ? y : z ? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;It is written x ? y : z. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between the Font and FontMetrics classes? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The FontMetrics class is used to define implementation-specific  properties, such as ascent and descent, of a Font object. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How is rounding performed under integer division? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The fractional part of the result is truncated. This is known as  rounding toward zero. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What happens when a thread cannot acquire a lock on an object? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;If a thread attempts to execute a synchronized method or synchronized  statement and is unable to acquire an object's lock, it enters the  waiting state until the lock becomes available. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between the Reader/Writer class hierarchy and  the InputStream/OutputStream class hierarchy? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Reader/Writer class hierarchy is character-oriented, and the  InputStream/OutputStream class hierarchy is byte-oriented. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What classes of exceptions may be caught by a catch clause?  &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  A catch clause can catch any exception that may be assigned to the  Throwable type. This includes the Error and Exception types. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;If a class is declared without any access modifiers, where may the  class be accessed? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A class that is declared without any access modifiers is said to have  package access. This means that the class can only be accessed by other  classes and interfaces that are defined within the same package. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the SimpleTimeZone class? &lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The SimpleTimeZone class provides support for a Gregorian calendar. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the Map interface?&lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Map interface replaces the JDK 1.1 Dictionary class and is used  associate keys with values. &lt;/span&gt;&lt;br /&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Does a class inherit the constructors of its superclass? &lt;/b&gt; &lt;br /&gt;A class does not inherit constructors from any of its super classes.&lt;/div&gt;&lt;span class="answers"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-3024347697482529526?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3024347697482529526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3024347697482529526'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/12/core-java-part-xi-interview-questions.html' title='Core Java (Part XI) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-666588922562544089</id><published>2010-12-24T04:09:00.000-08:00</published><updated>2010-12-24T04:09:00.232-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle (Part VI) Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;It is possible to use raw devices as data files and  what is the advantages over file. system files ?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;Yes. The advantages over file system files. I/O will be  improved because Oracle is bye-passing the kernnel which  writing into disk. Disk Corruption will be very less. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are disadvantages of having raw devices ? &lt;/b&gt;&lt;br /&gt;We should depend on export/import utility for  backup/recovery (fully reliable) The tar command cannot  be used for physical file backup, instead we can use dd  command which is less flexible and has limited  recoveries. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the significance of having storage clause ? &lt;/b&gt; &lt;br /&gt;We can plan the storage for a table as how much initial  extents are required, how much can be extended next, how  much % should leave free for managing row updations  etc., &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of INCTYPE option in EXP command ? &lt;/b&gt; &lt;br /&gt;Type export should be performed  COMPLETE,CUMULATIVE,INCREMENTAL. List the sequence of  events when a large transaction that exceeds beyond its  optimal value when an entry wraps and causes the  rollback segment toexpand into anotion Completes. e.  will be written. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of FILE option in IMP command ? &lt;/b&gt;&lt;br /&gt;The name of the file from which import should be  performed. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Shared SQL pool? &lt;/b&gt;&lt;br /&gt;The data dictionary cache is stored in an area in SGA  called the Shared SQL Pool. This will allow sharing of  parsed SQL statements among concurrent users. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is hot backup and how it can be taken? &lt;/b&gt;&lt;br /&gt;Taking backup of archive log files when database is  open. For this the ARCHIVELOG mode should be enabled.  The following files need to be backed up. All data  files. All Archive log, redo log files. All control  files. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;List the Optional Flexible Architecture (OFA) of Oracle  database? or How can we organize the tablespaces in  Oracle database to have maximum performance ? &lt;/b&gt;&lt;br /&gt;SYSTEM - Data dictionary tables.&lt;br /&gt;DATA - Standard operational tables.&lt;br /&gt;DATA2- Static tables used for standard operations&lt;br /&gt;INDEXES - Indexes for Standard operational tables.&lt;br /&gt;INDEXES1 - Indexes of static tables used for standard  operations.&lt;br /&gt;TOOLS - Tools table.&lt;br /&gt;TOOLS1 - Indexes for tools table.&lt;br /&gt;RBS - Standard Operations Rollback Segments,&lt;br /&gt;RBS1,RBS2 - Additional/Special Rollback segments.&lt;br /&gt;TEMP - Temporary purpose tablespace&lt;br /&gt;TEMP_USER - Temporary tablespace for users.&lt;br /&gt;USERS - User tablespace.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How to implement the multiple control files for an  existing database ? &lt;/b&gt;&lt;br /&gt;Shutdown the database Copy one of the existing control  file to new location Edit Config ora file by adding new  control file. name Restart the database. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is advantage of having disk shadowing/ Mirroring ? &lt;/b&gt;&lt;br /&gt;Shadow set of disks save as a backup in the event of  disk failure. In most Operating System if any disk  failure occurs it automatically switchover to place of  failed disk. Improved performance because most OS  support volume shadowing can direct file I/O request to  use the shadow set of files instead of the main set of  files. This reduces I/O load on the main set of disks. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you force database to use particular rollback  segment ? &lt;/b&gt;&lt;br /&gt;SET TRANSACTION USE ROLLBACK SEGMENT rbs_name. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Why query fails sometimes ? &lt;/b&gt;&lt;br /&gt;Rollback segment dynamically extent to handle larger  transactions entry loads. A single transaction may  wipeout all available free space in the Rollback Segment  Tablespace. This prevents other user using Rollback  segments. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of RECORD LENGTH option in EXP command ? &lt;/b&gt;&lt;br /&gt;Record length in bytes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you monitor rollback segment status ? &lt;/b&gt;&lt;br /&gt;Querying the DBA_ROLLBACK_SEGS view&lt;br /&gt;IN USE - Rollback Segment is on-line.&lt;br /&gt;AVAILABLE - Rollback Segment available but not on-line.&lt;br /&gt;OFF-LINE - Rollback Segment off-line&lt;br /&gt;INVALID - Rollback Segment Dropped.&lt;br /&gt;NEEDS RECOVERY - Contains data but need recovery or  corupted.&lt;br /&gt;PARTLY AVAILABLE - Contains data from an unresolved  transaction involving a distributed database. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by Redo Log file mirroring ? How it can be  achieved? &lt;/b&gt;&lt;br /&gt;Process of having a copy of redo log files is called  mirroring. This can be achieved by creating group of log  files together, so that LGWR will automatically writes  them to all the members of the current on-line redo log  group. If any one group fails then database  automatically switch over to next group. It degrades  performance. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Which parameter in Storage clause will reduce no. of  rows per block? &lt;/b&gt;&lt;br /&gt;PCTFREE parameter&lt;br /&gt;Row size also reduces no of rows per block. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by recursive hints ? &lt;/b&gt;&lt;br /&gt;Number of times processes repeatedly query the  dictionary table is called recursive hints. It is due to  the data dictionary cache is too small. By increasing  the SHARED_POOL_SIZE parameter we can optimize the size  of Data Dictionary Cache. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of PARFILE option in EXP command ? &lt;/b&gt; &lt;br /&gt;Name of the parameter file to be passed for export.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between locks, latches, enqueues  and semaphores? (for DBA)&lt;/b&gt;&lt;br /&gt;A latch is an internal Oracle mechanism used to protect  data structures in the SGA from simultaneous access.  Atomic hardware instructions like TEST-AND-SET is used  to implement latches. Latches are more restrictive than  locks in that they are always exclusive. Latches are  never queued, but will spin or sleep until they obtain a  resource, or time out.&lt;br /&gt;Enqueues and locks are different names for the same  thing. Both support queuing and concurrency. They are  queued and serviced in a first-in-first-out (FIFO)  order. &lt;br /&gt;Semaphores are an operating system facility used to  control waiting. Semaphores are controlled by the  following Unix parameters: semmni, semmns and semmsl.  Typical settings are: &lt;br /&gt;semmns = sum of the "processes" parameter for each  instance&lt;br /&gt;(see init&amp;lt;instance&amp;gt;.ora for each instance)&lt;br /&gt;semmni = number of instances running simultaneously;&lt;br /&gt;semmsl = semmns &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a logical backup? &lt;/b&gt;&lt;br /&gt;Logical backup involves reading a set of database  records and writing them into a file. Export utility is  used for taking backup and Import utility is used to  recover from backup. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Where can one get a list of all hidden Oracle  parameters? (for DBA)&lt;/b&gt;&lt;br /&gt;Oracle initialization or INIT.ORA parameters with an  underscore in front are hidden or unsupported  parameters. One can get a list of all hidden parameters  by executing this query: &lt;br /&gt;select *&lt;br /&gt;from SYS.X$KSPPI&lt;br /&gt;where substr(KSPPINM,1,1) = '_';&lt;br /&gt;The following query displays parameter names with their  current value: &lt;br /&gt;select a.ksppinm "Parameter", b.ksppstvl "Session  Value", c.ksppstvl "Instance Value"&lt;br /&gt;from x$ksppi a, x$ksppcv b, x$ksppsv c&lt;br /&gt;where a.indx = b.indx and a.indx = c.indx&lt;br /&gt;and substr(ksppinm,1,1)='_'&lt;br /&gt;order by a.ksppinm;&lt;br /&gt;Remember: Thou shall not play with undocumented  parameters! &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a database EVENT and how does one set it? (for  DBA)&lt;/b&gt;&lt;br /&gt;Oracle trace events are useful for debugging the Oracle  database server. The following two examples are simply  to demonstrate syntax. Refer to later notes on this page  for an explanation of what these particular events do. &lt;br /&gt;Either adding them to the INIT.ORA parameter file can  activate events. E.g. &lt;br /&gt;event='1401 trace name errorstack, level 12'&lt;br /&gt;... or, by issuing an ALTER SESSION SET EVENTS command:  E.g. &lt;br /&gt;alter session set events '10046 trace name context  forever, level 4';&lt;br /&gt;The alter session method only affects the user's current  session, whereas changes to the INIT.ORA file will  affect all sessions once the database has been  restarted. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Rollback segment entry ? &lt;/b&gt;&lt;br /&gt;It is the set of before image data blocks that contain  rows that are modified by a transaction. Each Rollback  Segment entry must be completed within one rollback  segment. A single rollback segment can have multiple  rollback segment entries. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What database events can be set? (for DBA)&lt;/b&gt;&lt;br /&gt;The following events are frequently used by DBAs and  Oracle Support to diagnose problems: &lt;br /&gt;" 10046 trace name context forever, level 4 Trace SQL  statements and show bind variables in trace output. &lt;br /&gt;" 10046 trace name context forever, level 8 This shows  wait events in the SQL trace files &lt;br /&gt;" 10046 trace name context forever, level 12 This shows  both bind variable names and wait events in the SQL  trace files &lt;br /&gt;" 1401 trace name errorstack, level 12 1401 trace name  errorstack, level 4 1401 trace name processstate Dumps  out trace information if an ORA-1401 "inserted value too  large for column" error occurs. The 1401 can be replaced  by any other Oracle Server error code that you want to  trace. &lt;br /&gt;" 60 trace name errorstack level 10 Show where in the  code Oracle gets a deadlock (ORA-60), and may help to  diagnose the problem. &lt;br /&gt;The following lists of events are examples only. They  might be version specific, so please call Oracle before  using them: &lt;br /&gt;" 10210 trace name context forever, level 10 10211 trace  name context forever, level 10 10231 trace name context  forever, level 10 These events prevent database block  corruptions &lt;br /&gt;" 10049 trace name context forever, level 2 Memory  protect cursor &lt;br /&gt;" 10210 trace name context forever, level 2 Data block  check &lt;br /&gt;" 10211 trace name context forever, level 2 Index block  check &lt;br /&gt;" 10235 trace name context forever, level 1 Memory heap  check &lt;br /&gt;" 10262 trace name context forever, level 300 Allow 300  bytes memory leak for connections &lt;br /&gt;Note: You can use the Unix oerr command to get the  description of an event. On Unix, you can type "oerr ora  10053" from the command prompt to get event details. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can one dump internal database structures? (for DBA)&lt;/b&gt;&lt;br /&gt;The following (mostly undocumented) commands can be used  to obtain information about internal database  structures. &lt;br /&gt;o Dump control file contents&lt;br /&gt;alter session set events 'immediate trace name CONTROLF  level 10'&lt;br /&gt;/&lt;br /&gt;o Dump file headers&lt;br /&gt;alter session set events 'immediate trace name FILE_HDRS  level 10'&lt;br /&gt;/&lt;br /&gt;o Dump redo log headers&lt;br /&gt;alter session set events 'immediate trace name REDOHDR  level 10'&lt;br /&gt;/&lt;br /&gt;o Dump the system state&lt;br /&gt;NOTE: Take 3 successive SYSTEMSTATE dumps, with  10-minute intervals alter session set events 'immediate  trace name SYSTEMSTATE level 10'&lt;br /&gt;/&lt;br /&gt;o Dump the process state&lt;br /&gt;alter session set events 'immediate trace name  PROCESSSTATE level 10'&lt;br /&gt;/&lt;br /&gt;o Dump Library Cache details&lt;br /&gt;alter session set events 'immediate trace name library  cache level 10'&lt;br /&gt;/&lt;br /&gt;o Dump optimizer statistics whenever a SQL statement is  parsed (hint: change statement or flush pool) alter  session set events '10053 trace name context forever,  level 1'&lt;br /&gt;/&lt;br /&gt;o Dump a database block (File/ Block must be converted  to DBA address) Convert file and block number to a DBA  (database block address). &lt;br /&gt;Eg: variable x varchar2;&lt;br /&gt;exec :x := dbms_utility.make_data_block_address(1,12);&lt;br /&gt;print x&lt;br /&gt;alter session set events 'immediate trace name blockdump  level 50360894'&lt;br /&gt;/&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different kind of export backups? &lt;/b&gt;&lt;br /&gt;Full back - Complete database&lt;br /&gt;Incremental - Only affected tables from last incremental  date/full backup date.&lt;br /&gt;Cumulative backup - Only affected table from the last  cumulative date/full backup date. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How free extents are managed in Ver 6.0 and Ver 7.0 ? &lt;/b&gt;&lt;br /&gt;Free extents cannot be merged together in Ver 6.0.&lt;br /&gt;Free extents are periodically coalesces with the  neighboring free extent in Ver 7.0 &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the use of RECORD option in EXP command?  &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;For Incremental exports, the flag indirects whether  a record will be stores data dictionary tables recording  the export.&lt;/div&gt;&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the use of ROWS option in EXP command ?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;Flag to indicate whether table rows should be exported.  If 'N' only DDL statements for the database objects will  be created. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of COMPRESS option in EXP command ? &lt;/b&gt; &lt;br /&gt;Flag to indicate whether export should compress  fragmented segments into single extents. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you swap objects into a different table space  for an existing database ? &lt;/b&gt;&lt;br /&gt;Export the user&lt;br /&gt;Perform import using the command imp system/manager  file=export.dmp indexfile=newrite.sql.&lt;br /&gt;This will create all definitions into newfile.sql. Drop  necessary objects.&lt;br /&gt;Run the script newfile.sql after altering the  tablespaces.&lt;br /&gt;Import from the backup for the necessary objects. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does Space allocation table place within a block ? &lt;/b&gt;&lt;br /&gt;Each block contains entries as follows&lt;br /&gt;Fixed block header&lt;br /&gt;Variable block header&lt;br /&gt;Row Header,row date (multiple rows may exists)&lt;br /&gt;PCTEREE (% of free space for row updation in future) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the factors causing the reparsing of SQL  statements in SGA? &lt;/b&gt;&lt;br /&gt;Due to insufficient Shared SQL pool size. Monitor the  ratio of the reloads takes place while executing SQL  statements. If the ratio is greater than 1 then increase  the SHARED_POOL_SIZE. LOGICAL &amp;amp; PHYSICAL ARCHITECTURE OF  DATABASE. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is dictionary cache ? &lt;/b&gt;&lt;br /&gt;Dictionary cache is information about the databse  objects stored in a data dictionary table. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Control file ? &lt;/b&gt;&lt;br /&gt;Database overall physical architecture is maintained in  a file called control file. It will be used to maintain  internal consistency and guide recovery operations.  Multiple copies of control files are advisable. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Database Buffers ? &lt;/b&gt;&lt;br /&gt;Database buffers are cache in the SGA used to hold the  data blocks that are read from the data segments in the  database such as tables, indexes and clusters  DB_BLOCK_BUFFERS parameter in INIT.ORA decides the size. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you create multiple rollback segments in a  database ? &lt;/b&gt;&lt;br /&gt;Create a database which implicitly creates a SYSTEM  Rollback Segment in a SYSTEM tablespace. Create a Second  Rollback Segment name R0 in the SYSTEM tablespace. Make  new rollback segment available (After shutdown, modify  init.ora file and Start database) Create other  tablespaces (RBS) for rollback segments. Deactivate  Rollback Segment R0 and activate the newly created  rollback segments.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is cold backup? What are the elements of it? &lt;/b&gt; &lt;br /&gt;Cold backup is taking backup of all physical files after  normal shutdown of database. We need to take.&lt;br /&gt;- All Data files.&lt;br /&gt;- All Control files.&lt;br /&gt;- All on-line redo log files.&lt;br /&gt;- The init.ora file (Optional) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by redo log buffer ? &lt;/b&gt;&lt;br /&gt;Changes made to entries are written to the on-line redo  log files. So that they can be used in roll forward  operations during database recoveries. Before writing  them into the redo log files, they will first brought to  redo log buffers in SGA and LGWR will write into files  frequently. LOG_BUFFER parameter will decide the size. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you estimate the space required by a  non-clustered tables? &lt;/b&gt;&lt;br /&gt;Calculate the total header size&lt;br /&gt;Calculate the available dataspace per data block&lt;br /&gt;Calculate the combined column lengths of the average row&lt;br /&gt;Calculate the total average row size.&lt;br /&gt;Calculate the average number rows that can fit in a  block&lt;br /&gt;Calculate the number of blocks and bytes required for  the table.&lt;br /&gt;After arriving the calculation, add 10 % additional  space to calculate the initial extent size for a working  table. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you monitor the space allocation ? &lt;/b&gt;&lt;br /&gt;By querying DBA_SEGMENT table/view. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by free extent ? &lt;/b&gt;&lt;br /&gt;A free extent is a collection of continuous free blocks  in tablespace. When a segment is dropped its extents are  reallocated and are marked as free. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of IGNORE option in IMP command ? &lt;/b&gt; &lt;br /&gt;A flag to indicate whether the import should ignore  errors encounter when issuing CREATE commands. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of ANALYSE ( Ver 7) option in EXP  command ? &lt;/b&gt;&lt;br /&gt;A flag to indicate whether statistical information about  the exported objects should be written to export dump  file. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of ROWS option in IMP command ? &lt;/b&gt;&lt;br /&gt;A flag to indicate whether rows should be imported. If  this is set to 'N' then only DDL for database objects  will be executed. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of INDEXES option in EXP command ? &lt;/b&gt; &lt;br /&gt;A flag to indicate whether indexes on tables will be  exported.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of INDEXES option in IMP command ? &lt;/b&gt; &lt;br /&gt;A flag to indicate whether import should import index on  tables or not. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of GRANT option in EXP command? &lt;/b&gt;&lt;br /&gt;A flag to indicate whether grants on databse objects  will be exported or not. Value is 'Y' or 'N'. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of GRANT option in IMP command ? &lt;/b&gt; &lt;br /&gt;A flag to indicate whether grants on database objects  will be imported. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of FULL option in EXP command ? &lt;/b&gt;&lt;br /&gt;A flag to indicate whether full databse export should be  performed. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of SHOW option in IMP command ? &lt;/b&gt;&lt;br /&gt;A flag to indicate whether file content should be  displayed or not. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of CONSTRAINTS option in EXP command ? &lt;/b&gt;&lt;br /&gt;A flag to indicate whether constraints on table need to  be exported. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of CONSISTENT (Ver 7) option in EXP  command ? &lt;/b&gt;&lt;br /&gt;A flag to indicate whether a read consistent version of  all the exported objects should be maintained. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different methods of backing up oracle  database ? &lt;/b&gt;&lt;br /&gt;- Logical Backups&lt;br /&gt;- Cold Backups&lt;br /&gt;- Hot Backups (Archive log) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between ON-VALIDATE-FIELD trigger  and a POST-CHANGE trigger ? &lt;/b&gt;&lt;br /&gt;When you changes the Existing value to null, the  On-validate field trigger will fire post change trigger  will not fire. At the time of execute-query post-change  trigger will fire, on-validate field trigger will not  fire. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;When is PRE-QUERY trigger executed ? &lt;/b&gt;&lt;br /&gt;When Execute-query or count-query Package procedures are  invoked.&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-666588922562544089?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/666588922562544089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/666588922562544089'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/12/oracle-part-vi-interview-question-and.html' title='Oracle (Part VI) Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-1622905877698656341</id><published>2010-12-24T03:51:00.000-08:00</published><updated>2010-12-24T03:51:00.697-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part X) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;Can an object's finalize() method be  invoked while it is reachable?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;An object's finalize() method cannot be invoked by the garbage collector  while the object is still reachable. However, an object's finalize()  method may be invoked by other objects.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the immediate superclass of the Applet class? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Panel &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between preemptive scheduling and time  slicing? &lt;/b&gt; &lt;br /&gt;Under preemptive scheduling, the highest priority task executes until it  enters the waiting or dead states or a higher priority task comes into  existence. Under time slicing, a task executes for a predefined slice of  time and then reenters the pool of ready tasks. The scheduler then  determines which task should execute next, based on priority and other  factors.   &lt;b&gt;&lt;span class="for_questions_blue"&gt;Name three Component subclasses that support painting.  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Canvas, Frame, Panel, and Applet classes support painting. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What value does readLine() return when it has reached the end of a  file? &lt;/b&gt; &lt;br /&gt;The readLine() method returns null when it has reached the end of a  file. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the immediate superclass of the Dialog class? &lt;/b&gt; &lt;br /&gt;Window.&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is clipping? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Clipping is the process of confining paint operations to a limited area  or shape.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a native method? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A native method is a method that is implemented in a language other than  Java.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Can a for statement loop indefinitely?  &lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;  Yes, a for statement can loop indefinitely. For example, consider the  following: for(;;) ;  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are order of precedence and associativity, and how are they  used? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Order of precedence determines the order in which operators are  evaluated in expressions. Associatity determines whether an expression  is evaluated left-to-right or right-to-left &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;When a thread blocks on I/O, what state does it enter?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A thread enters the waiting state when it blocks on I/O.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;To what value is a variable of the String type automatically  initialized? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The default value of a String type is null.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the catch or declare rule for method declarations?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;If a checked exception may be thrown within the body of a method, the  method must either catch the exception or declare it in its throws  clause.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between a MenuItem and a CheckboxMenuItem? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The CheckboxMenuItem class extends the MenuItem class to support a menu  item that may be checked or unchecked. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a task's priority and how is it used in scheduling?  &lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;  A task's priority is an integer value that identifies the relative order  in which it should be executed with respect to other tasks. The  scheduler attempts to schedule higher priority tasks before lower  priority tasks.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What class is the top of the AWT event hierarchy?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The java.awt.AWTEvent class is the highest-level class in the AWT  event-class hierarchy.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;When a thread is created and started, what is its initial state? &lt;/b&gt; &lt;br /&gt;A thread is in the ready state after it has been created and started.&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can an anonymous class be declared as implementing an interface and  extending a class? &lt;/b&gt; &lt;br /&gt;An anonymous class may implement an interface or extend a superclass,  but may not be declared to do both.&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the range of the short type?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The range of the short type is -(2^15) to 2^15 - 1.  &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the range of the char type? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The range of the char type is 0 to 2^16 - 1. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;In which package are most of the AWT events that support the  event-delegation model defined? &lt;/b&gt; &lt;br /&gt;Most of the AWT-related events of the event-delegation model are defined  in the java.awt.event package. The AWTEvent class is defined in the  java.awt package.&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the immediate super class of Menu?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;What is the immediate super class of Menu? MenuItem &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the purpose of finalization? &lt;/b&gt; &lt;br /&gt;The purpose of finalization is to give an unreachable object the  opportunity to perform any cleanup processing before the object is  garbage collected. &lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which class is the immediate super class of the MenuComponent class. &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Object &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What invokes a thread's run() method? &lt;/b&gt; &lt;br /&gt;After a thread is started, via its start() method or that of the Thread  class, the JVM invokes the thread's run() method when the thread is  initially executed.&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the difference between the Boolean &amp;amp; operator and the &amp;amp;&amp;amp;  operator?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;If an expression involving the Boolean &amp;amp; operator is evaluated, both  operands are evaluated. Then the &amp;amp; operator is applied to the operand.  When an expression involving the &amp;amp;&amp;amp; operator is evaluated, the first  operand is evaluated. If the first operand returns a value of true then  the second operand is evaluated. The &amp;amp;&amp;amp; operator is then applied to the  first and second operands. If the first operand evaluates to false, the  evaluation of the second operand is skipped. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Name three subclasses of the Component class.  &lt;br /&gt;&lt;/b&gt;Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List,  Scrollbar, or TextComponent &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the GregorianCalendar class? &lt;/b&gt; &lt;br /&gt;The GregorianCalendar provides support for traditional Western  calendars. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which Container method is used to cause a container to be laid out  and redisplayed? &lt;/b&gt; &lt;br /&gt;validate() &lt;br /&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the purpose of the Runtime class? &lt;/b&gt; &lt;br /&gt;The purpose of the Runtime class is to provide access to the Java  runtime system. &lt;br /&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How many times may an object's finalize() method be invoked by the  garbage collector? &lt;/b&gt; &lt;br /&gt;An object's finalize() method may only be invoked once by the garbage  collector. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the purpose of the finally clause of a try-catch-finally  statement? garbage collector? &lt;br /&gt;&lt;/b&gt; The finally clause is used to provide the capability to execute code no  matter whether or not an exception is thrown or caught. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the argument type of a program's main() method? &lt;/b&gt; &lt;br /&gt;A program's main() method takes an argument of the String[] type. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which Java operator is right associative? &lt;/b&gt; &lt;br /&gt;The = operator is right associative. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the Locale class? &lt;/b&gt; &lt;br /&gt;The Locale class is used to tailor program output to the conventions of  a particular geographic, political, or cultural region.&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can a double value be cast to a byte? &lt;/b&gt; &lt;br /&gt;Yes, a double value can be cast to a byte.&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-1622905877698656341?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1622905877698656341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1622905877698656341'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/12/core-java-part-x-interview-questions.html' title='Core Java (Part X) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-7932839948422210090</id><published>2010-11-24T03:50:00.001-08:00</published><updated>2010-11-24T03:51:09.163-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part IX) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between final,  finally and finalize?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;final is used for making a class no-subclassable, and making a member  variable as a constant which cannot be modified. finally is usually used  to release all the resources utilized inside the try block. All the  resources present in the finalize method will be garbage collected  whenever GC is called. Though finally and finalize seem to be for a  similar task there is an interesting tweak here, usually I prefer  finally than finalize unless it is unavoidable. This is because the code  in finally block is guaranteed of execution irrespective of occurrence of  exception, while execution of finalize is not guarenteed.finalize method  is called by the garbage collector on an object when the garbage  collector determines that there are no more references to the object.  Presumably the garbage collector will, like its civil servant namesake,  visit the heap on a regular basis to clean up resources that are no  longer in use. Garbage collection exists to prevent programmers from  calling delete. This is a wonderful feature. For example, if you can't  call delete, then you can't accidentally call delete twice on the same  object. However, removing delete from the language is not the same thing  as automatically cleaning up. To add to it, Garbage collection might not  ever run. If garbage collection runs at all, and an object is no longer  referenced, then that object's finalize will run. Also, across multiple  objects, finalize order is not predictable. The correct approach to  resource cleanup in Java language programs does not rely on finalize.  Instead, you simply write explicit close methods for objects that wrap  native resources. If you take this approach, you must document that the  close method exists and when it should be called. Callers of the object  must then remember to call close when they are finished with a resource.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What's the difference between the methods sleep() and wait() &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The code sleep(1000); puts thread aside for exactly one second. The code  wait(1000), causes a wait of up to one second. A thread could stop  waiting earlier if it receives the notify() or notifyAll() call. The  method wait() is defined in the class Object and the method sleep() is  defined in the class Thread.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;The following statement prints true or false, why? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;byte[] a = { 1, 2, 3 };,&lt;br /&gt;byte[] b = (byte[]) a.clone(); &lt;br /&gt;System.out.println(a == b);&lt;br /&gt;The false will be printed out. Because the two arrays have distinctive  memory addresses. Starting in Java 1.2, we can use  java.util.Arrays.equals(a, b) to compare whether two arrays have the  same contents. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Why do we need to use getSystemResource() and getSystemResources()  method to load resources? &lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt;  Because we want to look for resources strictly from the system classpath,  These methods use the system ClassLoader to locate resources, which  gives you stricter control of the resources used by the application.  &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;ArithmeticException? &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;The ArithmeticException is thrown when integer is divided by zero or  taking the remainder of a number by zero. It is never thrown in  floating-point operations. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is a transient variable? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A transient variable is a variable that may not be serialized. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which containers use a border Layout as their default layout? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The window, Frame and Dialog classes use a border layout as their  default layout. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Why do threads block on I/O? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Threads block on I/O (that is enters the waiting state) so that other  threads may execute while the I/O Operation is performed. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the output from System.out.println("Hello"+null);? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Hellonull &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is synchronization and why is it important?  &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  With respect to multithreading, synchronization is the capability to  control the access of multiple threads to shared resources. Without  synchronization, it is possible for one thread to modify a shared object  while another thread is in the process of using or updating that  object's value. This often leads to significant errors. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can a lock be acquired on a class? &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;Yes, a lock can be acquired on a class. This lock is acquired on the  class's Class object. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What's new with the stop(), suspend() and resume() methods in JDK  1.2? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;The stop(), suspend() and resume() methods have been deprecated in JDK  1.2.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Is null a keyword? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The null value is not a keyword. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the preferred size of a component? &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;The preferred size of a component is the minimum component size that  will allow the component to display normally.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What method is used to specify a  container's layout?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The setLayout() method is used to specify a container's layout.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Which containers use a FlowLayout as their default layout? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Panel and Applet classes use the FlowLayout as their default layout. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What state does a thread enter when it terminates its processing? &lt;/b&gt; &lt;br /&gt;When a thread terminates its processing, it enters the dead state.   &lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the Collections API? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Collections API is a set of classes and interfaces that support  operations on collections of objects.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which characters may be used as the second character of an  identifier, but not as the first character of an identifier? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The digits 0 through 9 may not be used as the first character of an  identifier but they may be used after the first character of an  identifier.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the List interface? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The List interface provides support for ordered collections of objects. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How does Java handle integer overflows and underflows? &lt;/b&gt; &lt;br /&gt;It uses those low order bytes of the result that can fit into the size  of the type allowed by the operation. &lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the Vector class? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Vector class provides the capability to implement a growable array  of objects &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What modifiers may be used with an inner class that is a member of an  outer class? &lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;  A (non-local) inner class may be declared as public, protected, private,  static, final, or abstract.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is an Iterator interface? &lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Iterator interface is used to step through the elements of a  Collection.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between the &amp;gt;&amp;gt; and &amp;gt;&amp;gt;&amp;gt; operators?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The &amp;gt;&amp;gt; operator carries the sign bit when shifting right. The &amp;gt;&amp;gt;&amp;gt;  zero-fills bits that have been shifted out.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which method of the Component class is used to set the position and  size of a component? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;setBounds()  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8  characters?&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII  character set uses only 7 bits, it is usually represented as 8 bits.  UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16  uses 16-bit and larger bit patterns.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between yielding and sleeping?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;When a task invokes its yield() method, it returns to the ready state.  When a task invokes its sleep() method, it returns to the waiting state. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which java.util classes and interfaces support event handling? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The EventObject class and the EventListener interface support event  processing. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Is sizeof a keyword? &lt;br /&gt;&lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt;  The sizeof operator is not a keyword.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are wrapper classes? &lt;/b&gt; &lt;br /&gt;Wrapper classes are classes that allow primitive types to be accessed as  objects. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Does garbage collection guarantee that a program will not run out of  memory?&lt;/b&gt;&lt;br /&gt;Garbage collection does not guarantee that a program will not run out of  memory. It is possible for programs to use up memory resources faster  than they are garbage collected. It is also possible for programs to  create objects that are not subject to garbage collection. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What restrictions are placed on the location of a package statement  within a source code file? &lt;/b&gt;&lt;br /&gt;A package statement must appear as the first line in a source code file  (excluding blank lines and comments).&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-7932839948422210090?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/7932839948422210090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/7932839948422210090'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/11/core-java-part-ix-interview-questions.html' title='Core Java (Part IX) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-7949257604965395134</id><published>2010-10-24T03:49:00.000-07:00</published><updated>2010-11-24T03:49:25.847-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part VIII) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the relationship between  synchronized and volatile keyword?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The JVM is guaranteed to treat reads and writes of data of 32 bits or  less as atomic.(Some JVM might treat reads and writes of data of 64 bits  or less as atomic in future) For long or double variable, programmers  should take care in multi-threading environment. Either put these  variables in a synchronized method or block, or declare them volatile. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;This class (IncrementImpl) will be used by various threads  concurrently; can you see the inherent flaw(s)? How would you improve  it?&lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;public class IncrementImpl { &lt;br /&gt;private static int counter = 0; &lt;br /&gt;public synchronized void increment() { &lt;br /&gt;counter++; &lt;br /&gt;} &lt;br /&gt;public int getCounter() { &lt;br /&gt;return counter; &lt;br /&gt;} &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;The counter is static variable which is shared by multiple instances of  this class. The increment() method is synchronized, but the getCounter()  should be synchronized too. Otherwise the Java run-time system will not  guarantee the data integrity and the race conditions will occur. The  famous producer/consumer example listed at Sun's thread tutorial site  will tell more. &lt;br /&gt;one of solutions &lt;br /&gt;public class IncrementImpl { &lt;br /&gt;private static int counter = 0; &lt;br /&gt;public synchronized void increment() { &lt;br /&gt;counter++; &lt;br /&gt;} &lt;br /&gt;public synchronized int getCounter() { &lt;br /&gt;return counter; &lt;br /&gt;} &lt;br /&gt;} &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are the drawbacks of inheritance? &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  Since inheritance inherits everything from the super class and  interface, it may make the subclass too clustering and sometimes  error-prone when dynamic overriding or dynamic overloading in some  situation. In addition, the inheritance may make peers hardly understand  your code if they don't know how your super-class acts and add learning  curve to the process of development. &lt;br /&gt;Usually, when you want to use a functionality of a class, you may use  subclass to inherit such function or use an instance of this class in  your class. Which is better, depends on your specification.&lt;/span&gt; &lt;span class="for_questions_blue"&gt;&lt;b&gt;Is there any other way that you can achieve inheritance in Java? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;There are a couple of ways. As you know, the straight way is to  "extends" and/or "implements". The other way is to get an instance of  the class to achieve the inheritance. That means to make the  supposed-super-class be a field member. When you use an instance of the  class, actually you get every function available from this class, but  you may lose the dynamic features of OOP &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Two methods have key words static synchronized and synchronized  separately. What is the difference between them? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Both are synchronized methods. One is instance method, the other is  class method. Method with static modifier is a class method. That means  the method belongs to class itself and can be accessed directly with  class name and is also called Singleton design. The method without  static modifier is an instance method. That means the instance method  belongs to its object. Every instance of the class gets its own copy of  its instance method. &lt;br /&gt;When synchronized is used with a static method, a lock for the entire  class is obtained. When synchronized is used with a non-static method, a  lock for the particular object (that means instance) of the class is  obtained. &lt;br /&gt;Since both methods are synchronized methods, you are not asked to  explain what is a synchronized method. You are asked to tell the  difference between instance and class method. Of course, your  explanation to how synchronized keyword works doesn't hurt. And you may  use this opportunity to show your knowledge scope. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;How do you create a read-only collection? &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt; The Collections class has six methods to help out here: &lt;br /&gt;1. unmodifiableCollection(Collection c) &lt;br /&gt;2. unmodifiableList(List list) &lt;br /&gt;3. unmodifiableMap(Map m) &lt;br /&gt;4. unmodifiableSet(Set s) &lt;br /&gt;5. unmodifiableSortedMap(SortedMap m) &lt;br /&gt;6. unmodifiableSortedSet(SortedSet s)&lt;br /&gt;If you get an Iterator from one of these unmodifiable collections, when  you call remove(), it will throw an UnsupportedOperationException. &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can a private method of a superclass be declared within a subclass? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Sure. A private field or method or inner class belongs to its declared  class and hides from its subclasses. There is no way for private stuff  to have a runtime overloading or overriding (polymorphism) features.  &lt;/span&gt; &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Why Java does not support multiple inheritance ? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;This is a classic question. Yes or No depends on how you look at Java.  If you focus on the syntax of "extends" and compare with C++, you may  answer 'No' and give explanation to support you. Or you may answer  'Yes'. Recommend you to say 'Yes'.&lt;br /&gt;Java DOES support multiple inheritance via interface implementation.  Some people may not think in this way. Give explanation to support your  point.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between final,  finally and finalize?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;Short answer:&lt;br /&gt;final - declares constant&lt;br /&gt;finally - relates with exception handling &lt;br /&gt;finalize - helps in garbage collection &lt;br /&gt;If asked to give details, explain:&lt;br /&gt;final field, final method, final class &lt;br /&gt;try/finally, try/catch/finally &lt;br /&gt;protected void finalize() in Object class&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What kind of security tools are available in J2SE 5.0? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;There are three tools that can be used to protect application working  within the scope of security policies set at remote sites.&lt;br /&gt;keytool -- used to manage keystores and certificates.&lt;br /&gt;jarsigner -- used to generate and verify JAR signatures.&lt;br /&gt;policytool -- used for managing policy files.&lt;br /&gt;There are three tools that help obtain, list and manage Kerberos  tickets.&lt;br /&gt;kinit -- used to obtain Kerberos V5 tickets.&lt;br /&gt;tklist -- used to list entries in credential cache and key tab.&lt;br /&gt;ktab -- used to help manage entries in the key table.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How to make an array copy from System? &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;There is a method called arraycopy in the System class. You can do it:&lt;br /&gt;System.arraycopy(sourceArray, srcOffset, destinationArray, destOffset,  numOfElements2Copy);&lt;br /&gt;When you use this method, the destinationArray will be filled with the  elements of sourceArray at the length specified. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can we use System.arraycopy() method to copy the same array? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Yes, you can. The source and destination arrays can be the same if you  want to copy a subset of the array to another area within that array. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is shallow copy or shallow clone in array cloning?  &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;Cloning an array invloves creating a new array of the same size and type  and copying all the old elements into the new array. But such copy is  called shallow copy or shallow clone because any changes to the object  would be reflected in both arrays. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;When is the ArrayStoreException thrown? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;When copying elements between different arrays, if the source or  destination arguments are not arrays or their types are not compatible,  an ArrayStoreException will be thrown. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How to check two arrays to see if contents have the same types and  contain the same elements? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;One of options is to use the equals() method of Arrays class. &lt;br /&gt;Arrays.equals(a, b);&lt;br /&gt;If the array types are different, a compile-time error will happen.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can you call one constructor from another if a class has multiple  constructors? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Yes. Use this() syntax.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are the different types of inner classes?&lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;There are four different types of inner classes in Java. They are:  a)Static member classes , a static member class has access to all static  methods of the parent, or top-level, class b) Member classes, the member  class is instance specific and has access to any and all methods and  members, even the parent's this reference c) Local classes, are declared  within a block of code and are visible only within that block, just as  any other method variable. d) Anonymous classes, is a local class that  has no name &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;In which case would you choose a static inner class?&lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt;  Interesting one, static inner classes can access the outer class's  protected and private fields. This is both a positive and a negative  point for us since we can, in essence, violate the encapsulation of the  outer class by mucking up the outer class's protected and private  fields. The only proper use of that capability is to write white-box  tests of the class -- since we can induce cases that might be very hard  to induce via normal black-box tests (which don't have access to the  internal state of the object). Second advantage,if I can say, is that,  we can this static concept to impose restriction on the inner class.  Again as discussed in earlier point, an Inner class has access to all  the public, private and protected members of the parent class. Suppose  you want to restrict the access even to inner class, how would you go  ahead? Making the inner class static enforces it to access only the  public static members of the outer class( Since, protected and private  members are not supposed to be static and that static members can access  only other static members). If it has to access any non-static member,  it has to create an instance of the outer class which leads to accessing  only public members.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is weak reference in Java &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A weak reference is one that does not prevent the referenced object from  being garbage collected. You might use them to manage a HashMap to look  up a cache of objects. A weak reference is a reference that does not  keep the object it refers to alive. A weak reference is not counted as a  reference in garbage collection. If the object is not referred to  elsewhere as well, it will be garbage collected.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-7949257604965395134?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/7949257604965395134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/7949257604965395134'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/11/core-java-part-viii-interview-questions.html' title='Core Java (Part VIII) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-3187260130527882453</id><published>2010-09-24T04:07:00.000-07:00</published><updated>2010-11-24T04:09:07.439-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle (Part V) Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;What third party tools can be used with Oracle EBU/  RMAN? (for DBA)&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;The following Media Management Software Vendors have  integrated their media management software packages with  Oracle Recovery Manager and Oracle7 Enterprise Backup  Utility. The Media Management Vendors will provide first  line technical support for the integrated backup/recover  solutions. &lt;br /&gt;Veritas NetBackup&lt;br /&gt;EMC Data Manager (EDM)&lt;br /&gt;HP OMNIBack II&lt;br /&gt;IBM's Tivoli Storage Manager - formerly ADSM&lt;br /&gt;Legato Networker&lt;br /&gt;ManageIT Backup and Recovery&lt;br /&gt;Sterling Software's SAMS:Alexandria - formerly from  Spectralogic&lt;br /&gt;Sun Solstice Backup &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Why and when should one tune? (for DBA)&lt;/b&gt;&lt;br /&gt;One of the biggest responsibilities of a DBA is to  ensure that the Oracle database is tuned properly. The  Oracle RDBMS is highly tunable and allows the database  to be monitored and adjusted to increase its  performance. One should do performance tuning for the  following reasons: &lt;br /&gt;The speed of computing might be wasting valuable human  time (users waiting for response); Enable your system to  keep-up with the speed business is conducted; and  Optimize hardware usage to save money (companies are  spending millions on hardware). Although this FAQ is not  overly concerned with hardware issues, one needs to  remember than you cannot tune a Buick into a Ferrari. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can a break order be created on a column in an  existing group? What are the various sub events a mouse  double click event involves? &lt;/b&gt;&lt;br /&gt;By dragging the column outside the group. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of place holder column? What are the  various sub events a mouse double click event involves? &lt;/b&gt;&lt;br /&gt;A placeholder column is used to hold calculated values  at a specified place rather than allowing is to appear  in the actual row where it has to appear. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of hidden column? What are the various  sub events a mouse double click event involves? &lt;/b&gt;&lt;br /&gt;A hidden column is used to when a column has to embed  into boilerplate text. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What database aspects should be monitored? (for DBA)&lt;/b&gt;&lt;br /&gt;One should implement a monitoring system to constantly  monitor the following aspects of a database. Writing  custom scripts, implementing Oracle's Enterprise  Manager, or buying a third-party monitoring product can  achieve this. If an alarm is triggered, the system  should automatically notify the DBA (e-mail, page, etc.)  to take appropriate action. &lt;br /&gt;Infrastructure availability: &lt;br /&gt;. Is the database up and responding to requests &lt;br /&gt;. Are the listeners up and responding to requests &lt;br /&gt;. Are the Oracle Names and LDAP Servers up and  responding to requests &lt;br /&gt;. Are the Web Listeners up and responding to requests &lt;br /&gt;&lt;br /&gt;Things that can cause service outages: &lt;br /&gt;. Is the archive log destination filling up? &lt;br /&gt;. Objects getting close to their max extents &lt;br /&gt;. User and process limits reached &lt;br /&gt;&lt;br /&gt;Things that can cause bad performance: &lt;br /&gt;See question "What tuning indicators can one use?". &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Where should the tuning effort be directed? (for DBA)&lt;/b&gt;&lt;br /&gt;Consider the following areas for tuning. The order in  which steps are listed needs to be maintained to prevent  tuning side effects. For example, it is no good  increasing the buffer cache if you can reduce I/O by  rewriting a SQL statement. Database Design (if it's not  too late):&lt;br /&gt;Poor system performance usually results from a poor  database design. One should generally normalize to the  3NF. Selective denormalization can provide valuable  performance improvements. When designing, always keep  the "data access path" in mind. Also look at proper data  partitioning, data replication, aggregation tables for  decision support systems, etc. &lt;br /&gt;Application Tuning:&lt;br /&gt;Experience showed that approximately 80% of all Oracle  system performance problems are resolved by coding  optimal SQL. Also consider proper scheduling of batch  tasks after peak working hours. &lt;br /&gt;Memory Tuning:&lt;br /&gt;Properly size your database buffers (shared pool, buffer  cache, log buffer, etc) by looking at your buffer hit  ratios. Pin large objects into memory to prevent  frequent reloads. &lt;br /&gt;Disk I/O Tuning:&lt;br /&gt;Database files needs to be properly sized and placed to  provide maximum disk subsystem throughput. Also look for  frequent disk sorts, full table scans, missing indexes,  row chaining, data fragmentation, etc&lt;br /&gt;Eliminate Database Contention:&lt;br /&gt;Study database locks, latches and wait events carefully  and eliminate where possible. Tune the Operating System:&lt;br /&gt;Monitor and tune operating system CPU, I/O and memory  utilization. For more information, read the related  Oracle FAQ dealing with your specific operating system. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the various sub events a mouse double click  event involves? What are the various sub events a mouse  double click event involves? &lt;/b&gt;&lt;br /&gt;Double clicking the mouse consists of the mouse down,  mouse up, mouse click, mouse down &amp;amp; mouse up events. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the default parameter that appear at run time  in the parameter screen? What are the various sub events  a mouse double click event involves? &lt;/b&gt;&lt;br /&gt;Destype and Desname.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the built-ins used for Creating and deleting  groups? &lt;/b&gt;&lt;br /&gt;CREATE-GROUP (function)&lt;br /&gt;CREATE_GROUP_FROM_QUERY(function)&lt;br /&gt;DELETE_GROUP(procedure) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are different types of canvas views? &lt;/b&gt;&lt;br /&gt;Content canvas views&lt;br /&gt;Stacked canvas views&lt;br /&gt;Horizontal toolbar&lt;br /&gt;vertical toolbar. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the different types of Delete details we can  establish in Master-Details?&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;Cascade&lt;br /&gt;Isolate&lt;br /&gt;Non-isolate &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is relation between the window and canvas views? &lt;/b&gt;&lt;br /&gt;Canvas views are the back ground objects on which you  place the interface items (Text items), check boxes,  radio groups etc.,) and boilerplate objects (boxes,  lines, images etc.,) that operators interact with us  they run your form . Each canvas views displayed in a  window. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a User_exit? &lt;/b&gt;&lt;br /&gt;Calls the user exit named in the user_exit_string.  Invokes a 3Gl program by name which has been properly  linked into your current oracle forms executable. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How is it possible to select generate a select set for  the query in the query property sheet? &lt;/b&gt;&lt;br /&gt;By using the tables/columns button and then specifying  the table and the column names. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can values be passed bet. precompiler exits &amp;amp; Oracle  call interface? &lt;/b&gt;&lt;br /&gt;By using the statement EXECIAFGET &amp;amp; EXECIAFPUT. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can a square be drawn in the layout editor of the  report writer? &lt;/b&gt;&lt;br /&gt;By using the rectangle tool while pressing the  (Constraint) key. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can a text file be attached to a report while  creating in the report writer? &lt;/b&gt;&lt;br /&gt;By using the link file property in the layout boiler  plate property sheet. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can I message to passed to the user from reports? &lt;/b&gt;&lt;br /&gt;By using SRW.MESSAGE function.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Does one need to drop/ truncate objects before  importing? (for DBA)&lt;/b&gt;&lt;br /&gt;Before one import rows into already populated tables,  one needs to truncate or drop these tables to get rid of  the old data. If not, the new data will be appended to  the existing tables. One must always DROP existing  Sequences before re-importing. If the sequences are not  dropped, they will generate numbers inconsistent with  the rest of the database. Note: It is also advisable to  drop indexes before importing to speed up the import  process. Indexes can easily be recreated after the data  was successfully imported. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can a button be used in a report to give a drill  down facility? &lt;/b&gt;&lt;br /&gt;By setting the action associated with button to Execute  pl/sql option and using the SRW.Run_report function. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can one import/export between different versions of  Oracle? (for DBA)&lt;/b&gt;&lt;br /&gt;Different versions of the import utility is upwards  compatible. This means that one can take an export file  created from an old export version, and import it using  a later version of the import utility. This is quite an  effective way of upgrading a database from one release  of Oracle to the next. &lt;br /&gt;Oracle also ships some previous catexpX.sql scripts that  can be executed as user SYS enabling older imp/exp  versions to work (for backwards compatibility). For  example, one can run $ORACLE_HOME/rdbms/admin/catexp7.sql  on an Oracle 8 database to allow the Oracle 7.3 exp/imp  utilities to run against an Oracle 8 database. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are different types of images? &lt;/b&gt;&lt;br /&gt;Boiler plate imagesImage Items &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can one export to multiple files?/ Can one beat the Unix  2 Gig limit? (for DBA)&lt;/b&gt;&lt;br /&gt;From Oracle8i, the export utility supports multiple  output files. This feature enables large exports to be  divided into files whose sizes will not exceed any  operating system limits (FILESIZE= parameter). When  importing from multi-file export you must provide the  same filenames in the same sequence in the FILE=  parameter. Look at this example: &lt;br /&gt;exp SCOTT/TIGER FILE=D:\F1.dmp,E:\F2.dmp FILESIZE=10m  LOG=scott.log&lt;br /&gt;Use the following technique if you use an Oracle version  prior to 8i: &lt;br /&gt;Create a compressed export on the fly. Depending on the  type of data, you probably can export up to 10 gigabytes  to a single file. This example uses gzip. It offers the  best compression I know of, but you can also substitute  it with zip, compress or whatever. &lt;br /&gt;# create a named pipe&lt;br /&gt;mknod exp.pipe p&lt;br /&gt;# read the pipe - output to zip file in the background&lt;br /&gt;gzip &amp;lt; exp.pipe &amp;gt; scott.exp.gz &amp;amp;&lt;br /&gt;# feed the pipe&lt;br /&gt;exp userid=scott/tiger file=exp.pipe ... &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is bind reference and how can it be created? &lt;/b&gt; &lt;br /&gt;Bind reference are used to replace the single value in  sql, pl/sql statements a bind reference can be created  using a (:) before a column or a parameter name. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can one improve Import/ Export performance? (for  DBA)&lt;/b&gt;&lt;br /&gt;EXPORT: &lt;br /&gt;&lt;br /&gt;. Set the BUFFER parameter to a high value (e.g. 2M) &lt;br /&gt;. Set the RECORDLENGTH parameter to a high value (e.g.  64K) &lt;br /&gt;. Stop unnecessary applications to free-up resources for  your job. &lt;br /&gt;. If you run multiple export sessions, ensure they write  to different physical disks. &lt;br /&gt;. DO NOT export to an NFS mounted filesystem. It will  take forever. &lt;br /&gt;IMPORT: &lt;br /&gt;&lt;br /&gt;. Create an indexfile so that you can create indexes  AFTER you have imported data. Do this by setting  INDEXFILE to a filename and then import. No data will be  imported but a file containing index definitions will be  created. You must edit this file afterwards and supply  the passwords for the schemas on all CONNECT statements. &lt;br /&gt;. Place the file to be imported on a separate physical  disk from the oracle data files &lt;br /&gt;. Increase DB_CACHE_SIZE (DB_BLOCK_BUFFERS prior to 9i)  considerably in the init$SID.ora file &lt;br /&gt;. Set the LOG_BUFFER to a big value and restart oracle. &lt;br /&gt;. Stop redo log archiving if it is running (ALTER  DATABASE NOARCHIVELOG;) &lt;br /&gt;. Create a BIG tablespace with a BIG rollback segment  inside. Set all other rollback segments offline (except  the SYSTEM rollback segment of course). The rollback  segment must be as big as your biggest table (I think?)&lt;br /&gt;. Use COMMIT=N in the import parameter file if you can  afford it &lt;br /&gt;. Use ANALYZE=N in the import parameter file to avoid  time consuming ANALYZE statements &lt;br /&gt;. Remember to run the indexfile previously created &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Give the sequence of execution of the various report  triggers? &lt;/b&gt;&lt;br /&gt;Before form , After form , Before report, Between page,  After report. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the common Import/ Export problems? (for DBA )&lt;/b&gt;&lt;br /&gt;ORA-00001: Unique constraint (...) violated - You are  importing duplicate rows. Use IGNORE=NO to skip tables  that already exist (imp will give an error if the object  is re-created).&lt;br /&gt;ORA-01555: Snapshot too old - Ask your users to STOP  working while you are exporting or use parameter  CONSISTENT=NO&lt;br /&gt;ORA-01562: Failed to extend rollback segment - Create  bigger rollback segments or set parameter COMMIT=Y while  importing&lt;br /&gt;IMP-00015: Statement failed ... object already exists...  - Use the IGNORE=Y import parameter to ignore these  errors, but be careful as you might end up with  duplicate rows.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Why is it preferable to create a fewer no. of queries in  the data model? &lt;/b&gt;&lt;br /&gt;Because for each query, report has to open a separate  cursor and has to rebind, execute and fetch data.&lt;/div&gt;&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;Where is the external query executed at the client or  the server?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;At the server. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Where is a procedure return in an external pl/sql  library executed at the client or at the server? &lt;/b&gt; &lt;br /&gt;At the client. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is coordination Event? &lt;/b&gt;&lt;br /&gt;Any event that makes a different record in the master  block the current record is a coordination causing  event. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between OLE Server &amp;amp; Ole  Container? &lt;/b&gt;&lt;br /&gt;An Ole server application creates ole Objects that are  embedded or linked in ole Containers ex. Ole servers are  ms_word &amp;amp; ms_excel. OLE containers provide a place to  store, display and manipulate objects that are created  by ole server applications. Ex. oracle forms is an  example of an ole Container. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is an object group?  &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;An object group is a container for a group of  objects; you define an object group when you want to  package related objects, so that you copy or reference  them in other modules. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an LOV? &lt;/b&gt;&lt;br /&gt;An LOV is a scrollable popup window that provides the  operator with either a single or multi column selection  list. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;At what point of report execution is the before Report  trigger fired? &lt;/b&gt;&lt;br /&gt;After the query is executed but before the report is  executed and the records are displayed. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the built -ins used for Modifying a groups  structure? &lt;/b&gt;&lt;br /&gt;ADD-GROUP_COLUMN (function)&lt;br /&gt;ADD_GROUP_ROW (procedure)&lt;br /&gt;DELETE_GROUP_ROW(procedure) &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an user exit used for? &lt;/b&gt;&lt;br /&gt;A way in which to pass control (and possibly arguments )  form Oracle report to another Oracle products of 3 GL  and then return control ( and ) back to Oracle reports. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the User-Named Editor? &lt;/b&gt;&lt;br /&gt;A user named editor has the same text editing  functionality as the default editor, but, because it is  a named object, you can specify editor attributes such  as windows display size, position, and title.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;My database was terminated while in BACKUP MODE, do I  need to recover? (for DBA)&lt;/b&gt;&lt;br /&gt;If a database was terminated while one of its  tablespaces was in BACKUP MODE (ALTER TABLESPACE xyz  BEGIN BACKUP;), it will tell you that media recovery is  required when you try to restart the database. The DBA  is then required to recover the database and apply all  archived logs to the database. However, from Oracle7.2,  you can simply take the individual datafiles out of  backup mode and restart the database. &lt;br /&gt;ALTER DATABASE DATAFILE '/path/filename' END BACKUP;&lt;br /&gt;One can select from V$BACKUP to see which datafiles are  in backup mode. This normally saves a significant amount  of database down time. &lt;br /&gt;Thiru Vadivelu contributed the following:&lt;br /&gt;From Oracle9i onwards, the following command can be used  to take all of the datafiles out of hot backup mode: &lt;br /&gt;ALTER DATABASE END BACKUP;&lt;br /&gt;The above commands need to be issued when the database  is mounted. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Static Record Group? &lt;/b&gt;&lt;br /&gt;A static record group is not associated with a query,  rather, you define its structure and row values at  design time, and they remain fixed at runtime. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a record group? &lt;/b&gt;&lt;br /&gt;A record group is an internal Oracle Forms that  structure that has a column/row framework similar to a  database table. However, unlike database tables, record  groups are separate objects that belong to the form  module which they are defined. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;My database is down and I cannot restore. What now? (for  DBA )&lt;/b&gt;&lt;br /&gt;Recovery without any backup is normally not supported,  however, Oracle Consulting can sometimes extract data  from an offline database using a utility called DUL  (Disk UnLoad). This utility reads data in the data files  and unloads it into SQL*Loader or export dump files. DUL  does not care about rollback segments, corrupted blocks,  etc, and can thus not guarantee that the data is not  logically corrupt. It is intended as an absolute last  resort and will most likely cost your company a lot of  money!!! &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;I've lost my REDOLOG files, how can I get my DB back?  (for DBA)&lt;/b&gt;&lt;br /&gt;The following INIT.ORA parameter may be required if your  current redo logs are corrupted or blown away. Caution  is advised when enabling this parameter as you might  end-up losing your entire database. Please contact  Oracle Support before using it. _allow_resetlogs_corruption  = true &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a property clause? &lt;/b&gt;&lt;br /&gt;A property clause is a named object that contains a list  of properties and their settings. Once you create a  property clause you can base other object on it. An  object based on a property can inherit the setting of  any property in the clause that makes sense for that  object. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a physical page ? &amp;amp; What is a logical page ? &lt;/b&gt; &lt;br /&gt;A physical page is a size of a page. That is output by  the printer. The logical page is the size of one page of  the actual report as seen in the Previewer. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;I've lost some Rollback Segments, how can I get my DB  back? (for DBA)&lt;/b&gt;&lt;br /&gt;Re-start your database with the following INIT.ORA  parameter if one of your rollback segments is corrupted.  You can then drop the corrupted rollback segments and  create it from scratch. &lt;br /&gt;Caution is advised when enabling this parameter, as  uncommitted transactions will be marked as committed.  One can very well end up with lost or inconsistent  data!!! Please contact Oracle Support before using it. _Corrupted_rollback_segments  = (rbs01, rbs01, rbs03, rbs04) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the differences between EBU and RMAN? (for DBA)&lt;/b&gt;&lt;br /&gt;Enterprise Backup Utility (EBU) is a functionally rich,  high performance interface for backing up Oracle7  databases. It is sometimes referred to as OEBU for  Oracle Enterprise Backup Utility. The Oracle Recovery  Manager (RMAN) utility that ships with Oracle8 and above  is similar to Oracle7's EBU utility. However, there is  no direct upgrade path from EBU to RMAN. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one create a RMAN recovery catalog? (for DBA)&lt;/b&gt;&lt;br /&gt;Start by creating a database schema (usually called rman).  Assign an appropriate tablespace to it and grant it the  recovery_catalog_owner role. Look at this example: &lt;br /&gt;sqlplus sys&lt;br /&gt;SQL&amp;gt;create user rman identified by rman;&lt;br /&gt;SQL&amp;gt; alter user rman default tablespace tools temporary  tablespace temp;&lt;br /&gt;SQL&amp;gt; alter user rman quota unlimited on tools;&lt;br /&gt;SQL&amp;gt; grant connect, resource, recovery_catalog_owner to  rman;&lt;br /&gt;SQL&amp;gt; exit;&lt;br /&gt;Next, log in to rman and create the catalog schema.  Prior to Oracle 8i this was done by running the  catrman.sql script. rman catalog rman/rman&lt;br /&gt;RMAN&amp;gt;create catalog tablespace tools;&lt;br /&gt;RMAN&amp;gt; exit;&lt;br /&gt;You can now continue by registering your databases in  the catalog. Look at this example: &lt;br /&gt;rman catalog rman/rman target backdba/backdba&lt;br /&gt;RMAN&amp;gt; register database;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can a group in a cross products be visually  distinguished from a group that does not form a cross  product? &lt;/b&gt;&lt;br /&gt;A group that forms part of a cross product will have a  thicker border. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the frame &amp;amp; repeating frame? &lt;/b&gt;&lt;br /&gt;A frame is a holder for a group of fields. A repeating  frame is used to display a set of records when the no.  of records that are to displayed is not known before. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a combo box? &lt;/b&gt;&lt;br /&gt;A combo box style list item combines the features found  in list and text item. Unlike the pop list or the text  list style list items, the combo box style list item  will both display fixed values and accept one operator  entered value. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What are three panes that appear in the run time pl/sql  interpreter?&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;1. Source pane.&lt;br /&gt;2. interpreter pane.&lt;br /&gt;3. Navigator pane. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the two panes that Appear in the design time  pl/sql interpreter? &lt;/b&gt;&lt;br /&gt;1. Source pane.&lt;br /&gt;2. Interpreter pane &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the two ways by which data can be generated for  a parameters list of values? &lt;/b&gt;&lt;br /&gt;1. Using static values.&lt;br /&gt;2. Writing select statement. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the various methods of performing a calculation  in a report ? &lt;/b&gt;&lt;br /&gt;1. Perform the calculation in the SQL statements itself.&lt;br /&gt;2. Use a calculated / summary column in the data model. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the default extensions of the files created by  menu module? &lt;/b&gt;&lt;br /&gt;.mmb,&lt;br /&gt;.mmx &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the default extensions of the files created by  forms modules? &lt;/b&gt;&lt;br /&gt;.fmb - form module binary&lt;br /&gt;.fmx - form module executable &lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-3187260130527882453?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3187260130527882453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3187260130527882453'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/09/oracle-part-v-interview-question-and.html' title='Oracle (Part V) Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-9054124031438532234</id><published>2010-08-24T03:47:00.000-07:00</published><updated>2010-11-24T03:48:07.720-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part VII) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the Object and Class classes used  for?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The Object class is the highest-level class in the Java class hierarchy.  The Class class is used to represent the classes and interfaces that are  loaded by a Java program. &lt;/span&gt; &lt;br /&gt;&lt;b&gt; &lt;span class="for_questions_blue"&gt;What is Serialization and deserialization ? &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Serialization is the process of writing the state of an object to a byte  stream. Deserialization is the process of restoring these objects. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Explain the usage of Java packages.  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;This is a way to organize files when a project consists of multiple  modules. It also helps resolve naming conflicts when different packages  have classes with the same names. Packages access level also allows you  to protect data from being used by the non-authorized classes. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Does the code in finally block get executed if there is an exception  and a return statement in a catch block? &lt;/b&gt; &lt;br /&gt;If an exception occurs and there is a return statement in catch block,  the finally block is still executed. The finally block will not be  executed when the System.exit(1) statement is executed earlier or the  system shut down earlier or the memory is used up earlier before the  thread goes to finally block.&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Is Java a super set of JavaScript? &lt;/b&gt; &lt;br /&gt;No. They are completely different. Some syntax may be similar. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is a Container in a GUI?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;A Container contains and arranges other components (including other  containers) through the use of layout managers, which use specific  layout policies to determine where components should go as a function of  the size of the container. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How the object oriented approach helps us keep complexity of software  development under control? &lt;br /&gt;&lt;/b&gt;  We can discuss such issue from the following aspects: &lt;br /&gt;Objects allow procedures to be encapsulated with their data to reduce  potential interference. &lt;br /&gt;Inheritance allows well-tested procedures to be reused and enables  changes to make once and have effect in all relevant places. &lt;br /&gt;The well-defined separations of interface and implementation allow  constraints to be imposed on inheriting classes while still allowing the  flexibility of overriding and overloading. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is polymorphism? &lt;/b&gt; &lt;br /&gt;Polymorphism means "having many forms". It allows methods (may be  variables) to be written that needn't be concerned about the specifics  of the objects they will be applied to. That is, the method can be  specified at a higher level of abstraction and can be counted on to work  even on objects of un-conceived classes.&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is design by contract? &lt;/b&gt; &lt;br /&gt;The design by contract specifies the obligations of a method to any  other methods that may use its services and also theirs to it. For  example, the preconditions specify what the method required to be true  when the method is called. Hence making sure that preconditions are.  Similarly, postconditions specify what must be true when the method is  finished, thus the called method has the responsibility of satisfying  the post conditions. &lt;br /&gt;In Java, the exception handling facilities support the use of design by  contract, especially in the case of checked exceptions. The assert  keyword can be used to make such contracts. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are use cases? &lt;br /&gt;&lt;/b&gt; A use case describes a situation that a program might encounter and what  behavior the program should exhibit in that circumstance. It is part of  the analysis of a program. The collection of use cases should, ideally,  anticipate all the standard circumstances and many of the extraordinary  circumstances possible so that the program will be robust. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is scalability and performance?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Performance is a measure of "how fast can you perform this task." and  scalability describes how an application behaves as its workload and  available computing resources increase. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the benefit of subclass? &lt;/b&gt; &lt;br /&gt;Generally: The sub class inherits all the public methods and the  implementation. &lt;br /&gt;The sub class inherits all the protected methods and their  implementation. &lt;br /&gt;The sub class inherits all the default(non-access modifier) methods and  their implementation. &lt;br /&gt;The sub class also inherits all the public, protected and default member  variables from the super class. &lt;br /&gt;The constructors are not part of this inheritance model.&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How to add menushortcut to menu item? &lt;/b&gt; &lt;br /&gt;If you have a button instance called aboutButton, you may add menu short  cut by calling aboutButton.setMnemonic('A'), so the user may be able to  use Alt+A to click the button.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;In System.out.println(),what is System,out  and println,pls explain?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;System is a predefined final class,out is a PrintStream object acting as  a field member and println is a built-in overloaded method in the out  object. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Can you write a Java class that could be used both as an applet as  well as an application? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;A. Yes. Add a main() method to the applet.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Can you make an instance of an abstract class? For example -  java.util.Calender is an abstract class with a method getInstance()  which returns an instance of the Calender class. &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;No! You cannot make an instance of an abstract class. An abstract class  has to be sub-classed. If you have an abstract class and you want to use  a method which has been implemented, you may need to subclass that  abstract class, instantiate your subclass and then call that method.  &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the output of x &amp;gt; y? a:b = p*q when x=1,y=2,p=3,q=4? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;When this kind of question has been asked, find the problems you think  is necessary to ask back before you give an answer. Ask if variables a  and b have been declared or initialized. If the answer is yes. You can  say that the syntax is wrong. If the statement is rewritten as: x &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between Swing and AWT components? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;AWT components are heavy-weight, whereas Swing components are  lightweight. Heavy weight components depend on the local windowing  toolkit. For example, java.awt.Button is a heavy weight component, when  it is running on the Java platform for Unix platform, it maps to a real  Motif button. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Why Java does not support pointers? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Because pointers are unsafe. Java uses reference types to hide pointers  and programmers feel easier to deal with reference types without  pointers. This is why Java and C-sharp shine. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Parsers? DOM vs SAX parser &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  Parsers are fundamental xml components, a bridge between XML documents  and applications that process that XML. The parser is responsible for  handling xml syntax, checking the contents of the document against  constraints established in a DTD or Schema.&lt;br /&gt;DOM&lt;br /&gt;1. Tree of nodes&lt;br /&gt;2. Memory: Occupies more memory, preffered for small XML documents&lt;br /&gt;3. Slower at runtime &lt;br /&gt;4. Stored as objects &lt;br /&gt;5. Programmatically easy &lt;br /&gt;6. Ease of navigation &lt;br /&gt;SAX &lt;br /&gt;1. Sequence of events &lt;br /&gt;2. Doesn't use any memory preferred for large documents&lt;br /&gt;3. Faster at runtime&lt;br /&gt;4. Objects are to be created&lt;br /&gt;5. Need to write code for creating objects&lt;br /&gt;6. Backward navigation is not possible as it sequentially processes the  document&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can you declare a class as private?  &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;Yes, we can declare a private class as an inner class. For example,&lt;br /&gt;&lt;br /&gt;class MyPrivate {&lt;br /&gt;private static class MyKey {&lt;br /&gt;String key = "12345";&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;System.out.println(new MyKey().key);//prints 12345&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;}&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between shallow copy and deep copy?&lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  Shallow copy shares the same reference with the original object like  cloning, whereas the deep copy get a duplicate instance of the original  object. If the shallow copy has been changed, the original object will  be reflected and vice versa. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Can one create a method which gets a String and modifies it? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;No. In Java, Strings are constant or immutable; their values cannot be  changed after they are created, but they can be shared. Once you change  a string, you actually create a new object. For example: &lt;br /&gt;String s = "abc"; //create a new String object representing "abc" &lt;br /&gt;s = s.toUpperCase(); //create another object representing "ABC" &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Why is multiple inheritance not possible in Java? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;It depends on how you understand "inheritance". Java can only "extends"  one super class, but can "implements" many interfaces; that doesn't mean  the multiple inheritance is not possible. You may use interfaces to make  inheritance work for you. Or you may need to work around. For example,  if you cannot get a feature from a class because your class has a super  class already, you may get that class's feature by declaring it as a  member field or getting an instance of that class. So the answer is that  multiple inheritance in Java is possible. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What's the difference between constructors and other methods? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Constructors must have the same name as the class and can not return a  value. They are only called once while regular methods could be called  many times.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-9054124031438532234?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/9054124031438532234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/9054124031438532234'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/08/core-java-part-vii-interview-questions.html' title='Core Java (Part VII) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-3223587824765229012</id><published>2010-08-24T03:45:00.000-07:00</published><updated>2010-11-24T03:46:58.033-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part VI) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between the  Reader/Writer class hierarchy and the InputStream/OutputStream class  hierarchy?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;The Reader/Writer class hierarchy is character-oriented, and the  InputStream/OutputStream class hierarchy is byte-oriented. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What classes of exceptions may be caught by  a catch clause? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;A catch clause can catch any exception that may be assigned to the  Throwable type. This includes the Error and Exception types. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between throw and throws keywords? &lt;/b&gt; &lt;br /&gt;The throw keyword denotes a statement that causes an exception to be  initiated. It takes the Exception object to be thrown as argument. The  exception will be caught by an immediately encompassing try-catch  construction or propagated further up the calling hierarchy. &lt;br /&gt;The throws keyword is a modifier of a method that designates that  exceptions may come out of the method, either by virtue of the method  throwing the exception itself or because it fails to catch such  exceptions that a method it calls may throw.&lt;br /&gt;&lt;b class="for_questions_blue"&gt;If a class is declared without any access modifiers, where may the  class be accessed? &lt;/b&gt; &lt;br /&gt;A class that is declared without any access modifiers is said to have  package or friendly access. This means that the class can only be  accessed by other classes and interfaces that are defined within the  same package. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the Map interface?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The Map interface replaces the JDK 1.1 Dictionary class and is used  associate keys with values. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Does a class inherit the constructors of its super class? &lt;/b&gt; &lt;br /&gt;A class does not inherit constructors from any of its superclasses. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Name primitive Java types. &lt;br /&gt;&lt;/b&gt;  The primitive types are byte, char, short, int, long, float, double, and  Boolean. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which class should you use to obtain design information about an  object? &lt;/b&gt; &lt;br /&gt;The Class class is used to obtain information about an object's design. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;How can a GUI component handle its own events? &lt;/b&gt; &lt;br /&gt;A component can handle its own events by implementing the required  event-listener interface and adding itself as its own event listener. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How are the elements of a GridBagLayout organized?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The elements of a GridBagLayout are organized according to a grid.  However, the elements are of different sizes and may occupy more than  one row or column of the grid. In addition, the rows and columns may  have different sizes. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What advantage do Java's layout managers provide over traditional  windowing systems? &lt;/b&gt; &lt;br /&gt;Java uses layout managers to lay out components in a consistent manner  across all windowing platforms. Since Java's layout managers aren't tied  to absolute sizing and positioning, they are able to accommodate  platform-specific differences among windowing systems. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are the problems faced by Java programmers who don't use layout  managers? &lt;br /&gt;&lt;/b&gt;  Without layout managers, Java programmers are faced with determining how  their GUI will be displayed across multiple windowing systems and  finding a common sizing and positioning that will work within the  constraints imposed by each windowing system.&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between static and non-static variables? &lt;/b&gt; &lt;br /&gt;A static variable is associated with the class as a whole rather than  with specific instances of a class. Non-static variables take on unique  values with each object instance. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between the paint() and repaint() methods? &lt;/b&gt; &lt;br /&gt;The paint() method supports painting via a Graphics object. The  repaint() method is used to cause paint() to be invoked by the AWT  painting thread. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the purpose of the File class? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The File class is used to create objects that provide access to the  files and directories of a local file system.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Why would you use a synchronized block vs. synchronized method? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Synchronized blocks place locks for shorter periods than synchronized  methods.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What restrictions are placed on method  overriding?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;Overridden methods must have the same name, argument list, and return  type. The overriding method may not limit the access of the method it  overrides. The overriding method may not throw any exceptions that may  not be thrown by the overridden method. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is casting? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;There are two types of casting, casting between primitive numeric types  and casting between object references. Casting between numeric types is  used to convert larger values, such as double values, to smaller values,  such as byte values. Casting between object references is used to refer  to an object by a compatible class, interface, or array type reference. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Explain the usage of the keyword transient? &lt;/b&gt; &lt;br /&gt;This keyword indicates that the value of this member variable does not  have to be serialized with the object. When the class will be  de-serialized, this variable will be initialized with a default value of  its data type (i.e. zero for integers). &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What class allows you to read objects directly from a stream? &lt;/b&gt; &lt;br /&gt;The ObjectInputStream class supports the reading of objects from input  streams. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;How are this() and super() used with constructors? &lt;/b&gt; &lt;br /&gt;this() is used to invoke a constructor of the same class. super() is  used to invoke a superclass constructor. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How is it possible for two String objects with identical values not  to be equal under the == operator? How are this() and super() used with  constructors? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;The == operator compares two objects to determine if they are the same  objects in memory. It is possible for two String objects to have the  same value, but located in different areas of memory.&lt;/span&gt; &lt;span class="for_questions_blue"&gt;&lt;b&gt;What is an IO filter? &lt;br /&gt;&lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt;  An IO filter is an object that reads from one stream and writes to  another, usually altering the data in some way as it is passed from one  stream to another. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the Set interface? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Set interface provides methods for accessing the elements of a  finite mathematical set. Sets do not allow duplicate elements. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How can you force garbage collection? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;You can't force GC, but could request it by calling System.gc(). JVM  does not guarantee that GC will be started immediately. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the purpose of the enableEvents() method? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The enableEvents() method is used to enable an event for a particular  object. Normally, an event is enabled when a listener is added to an  object for a particular event. The enableEvents() method is used by  objects that handle events by overriding their event-dispatch methods. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between the File and RandomAccessFile classes? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The File class encapsulates the files and directories of the local file  system. The RandomAccessFile class provides the methods needed to  directly access data contained in any part of a file. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What interface must an object implement before it can be written to a  stream as an object? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;An object must implement the Serializable or Externalizable interface  before it can be written to a stream as an object.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the ResourceBundle class? &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  The ResourceBundle class is used to store locale-specific resources that  can be loaded by a program to tailor the program's appearance to the  particular locale in which it is being run. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How do you know if an explicit object casting is needed? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;If you assign a superclass object to a variable of a subclass's data  type, you need to do explicit casting. For example: &lt;br /&gt;Object a; Customer b; b = (Customer) a; &lt;br /&gt;When you assign a subclass to a variable having a supeclass type, the  casting is performed automatically. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is a Java package and how is it used? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A Java package is a naming context for classes and interfaces. A package  is used to create a separate name space for groups of classes and  interfaces. Packages are also used to organize related classes and  interfaces into a single API unit and to control accessibility to these  classes and interfaces.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How do you restrict a user to cut and paste from the html page? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Using Servlet or client side scripts to lock keyboard keys. It is one of  solutions.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-3223587824765229012?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3223587824765229012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3223587824765229012'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/08/core-java-part-vi-interview-questions.html' title='Core Java (Part VI) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-6632720397109708776</id><published>2010-07-24T04:04:00.000-07:00</published><updated>2010-11-24T04:05:43.687-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle (Part IV) Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the Maximum allowed length of Record group  Column?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;Record group column names cannot exceed 30 characters. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Which parameter can be used to set read level  consistency across multiple queries? &lt;/b&gt;&lt;br /&gt;Read only &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different types of Record Groups? &lt;/b&gt;&lt;br /&gt;Query Record Groups&lt;br /&gt;NonQuery Record Groups&lt;br /&gt;State Record Groups &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;From which designation is it preferred to send the  output to the printed? &lt;/b&gt;&lt;br /&gt;Previewer &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are difference between post database commit and  post-form commit? &lt;/b&gt;&lt;br /&gt;Post-form commit fires once during the post and commit  transactions process, after the database commit occurs.  The post-form-commit trigger fires after inserts,  updates and deletes have been posted to the database but  before the transactions have been finalized in the  issuing the command. The post-database-commit trigger  fires after oracle forms issues the commit to finalized  transactions. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different display styles of list items? &lt;/b&gt; &lt;br /&gt;Pop_listText_listCombo box &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which of the above methods is the faster method?  &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;performing the calculation in the query is faster. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;With which function of summary item is the compute at  options required? &lt;/b&gt;&lt;br /&gt;percentage of total functions. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are parameters? &lt;/b&gt;&lt;br /&gt;Parameters provide a simple mechanism for defining and  setting the valuesof inputs that are required by a form  at startup. Form parameters are variables of type  char,number,date that you define at design time. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the three types of user exits available ? &lt;/b&gt; &lt;br /&gt;Oracle Precompiler exits, Oracle call interface,  NonOracle user exits. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How many windows in a form can have console? &lt;/b&gt;&lt;br /&gt;Only one window in a form can display the console, and  you cannot change the console assignment at runtime.&lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What is an administrative (privileged) user? (for DBA )&lt;/b&gt;&lt;br /&gt;Oracle DBAs and operators typically use administrative  accounts to manage the database and database instance.  An administrative account is a user that is granted  SYSOPER or SYSDBA privileges. SYSDBA and SYSOPER allow  access to a database instance even if it is not running.  Control of these privileges is managed outside of the  database via password files and special operating system  groups. This password file is created with the orapwd  utility. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the two repeating frame always associated with  matrix object? &lt;/b&gt;&lt;br /&gt;One down repeating frame below one across repeating  frame. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the master-detail triggers?&lt;/b&gt;&lt;br /&gt;On-Check_delete_masterOn_clear_detailsOn_populate_details &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;How does one connect to an administrative user? (for DBA  )&lt;/b&gt;&lt;br /&gt;If an administrative user belongs to the "dba" group on  Unix, or the "ORA_DBA" (ORA_sid_DBA) group on NT, he/she  can connect like this: &lt;br /&gt;connect / as sysdba&lt;br /&gt;No password is required. This is equivalent to the  desupported "connect internal" method. &lt;br /&gt;A password is required for "non-secure" administrative  access. These passwords are stored in password files.  Remote connections via Net8 are classified as  non-secure. Look at this example: &lt;br /&gt;connect sys/password as sysdba &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;How does one create a password file? (for DBA )&lt;/b&gt;&lt;br /&gt;The Oracle Password File ($ORACLE_HOME/dbs/orapw or  orapwSID) stores passwords for users with administrative  privileges. One needs to create a password files before  remote administrators (like OEM) will be allowed to  connect. &lt;br /&gt;Follow this procedure to create a new password file: &lt;br /&gt;. Log in as the Oracle software owner &lt;br /&gt;. Runcommand: orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID  password=mypasswd &lt;br /&gt;. Shutdown the database (SQLPLUS&amp;gt; SHUTDOWN IMMEDIATE) &lt;br /&gt;. Edit the INIT.ORA file and ensure  REMOTE_LOGIN_PASSWORDFILE=exclusive is set. &lt;br /&gt;. Startup the database (SQLPLUS&amp;gt; STARTUP) &lt;br /&gt;NOTE: The orapwd utility presents a security risk in  that it receives a password from the command line. This  password is visible in the process table of many  systems. Administrators needs to be aware of this! &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Is it possible to modify an external query in a report  which contains it? &lt;/b&gt;&lt;br /&gt;No. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Does a grouping done for objects in the layout editor  affect the grouping done in the data model editor? &lt;/b&gt; &lt;br /&gt;No. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;How does one add users to a password file? (for DBA )&lt;/b&gt;&lt;br /&gt;One can select from the SYS.V_$PWFILE_USERS view to see  which users are listed in the password file. New users  can be added to the password file by granting them  SYSDBA or SYSOPER privileges, or by using the orapwd  utility. GRANT SYSDBA TO scott; &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;If a break order is set on a column would it affect  columns which are under the column? &lt;/b&gt;&lt;br /&gt;No &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Why are OPS$ accounts a security risk in a client/server  environment? (for DBA)&lt;/b&gt;&lt;br /&gt;If you allow people to log in with OPS$ accounts from  Windows Workstations, you cannot be sure who they really  are. With terminals, you can rely on operating system  passwords, with Windows, you cannot. &lt;br /&gt;If you set REMOTE_OS_AUTHENT=TRUE in your init.ora file,  Oracle assumes that the remote OS has authenticated the  user. If REMOTE_OS_AUTHENT is set to FALSE  (recommended), remote users will be unable to connect  without a password. IDENTIFIED EXTERNALLY will only be  in effect from the local host. Also, if you are using  "OPS$" as your prefix, you will be able to log on  locally with or without a password, regardless of  whether you have identified your ID with a password or  defined it to be IDENTIFIED EXTERNALLY.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Do user parameters appear in the data modal editor in  2.5? &lt;/b&gt;&lt;br /&gt;No &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can you pass data parameters to forms? &lt;/b&gt;&lt;br /&gt;No &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Is it possible to link two groups inside a cross  products after the cross products group has been  created? &lt;/b&gt;&lt;br /&gt;no &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different modals of windows? &lt;/b&gt;&lt;br /&gt;Modalless windows&lt;br /&gt;Modal windows &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are modal windows? &lt;/b&gt;&lt;br /&gt;Modal windows are usually used as dialogs, and have  restricted functionality compared to modelless windows.  On some platforms for example operators cannot resize,  scroll or iconify a modal window. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the different default triggers created when  Master Deletes Property is set to Non-isolated? &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;Master Deletes Property Resulting Triggers&lt;br /&gt;----------------------------------------------------&lt;br /&gt;Non-Isolated(the default) On-Check-Delete-Master&lt;br /&gt;On-Clear-Details&lt;br /&gt;On-Populate-Details &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the different default triggers created when  Master Deletes Property is set to isolated? &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;Master Deletes Property Resulting Triggers&lt;br /&gt;---------------------------------------------------&lt;br /&gt;Isolated On-Clear-Details&lt;br /&gt;On-Populate-Details &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different default triggers created when  Master Deletes Property is set to Cascade? &lt;/b&gt;&lt;br /&gt;Master Deletes Property Resulting Triggers&lt;br /&gt;---------------------------------------------------&lt;br /&gt;Cascading On-Clear-Details&lt;br /&gt;On-Populate-Details&lt;br /&gt;Pre-delete &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the diff. bet. setting up of parameters in  reports 2.0 reports2.5? &lt;/b&gt;&lt;br /&gt;LOVs can be attached to parameters in the reports 2.5  parameter form. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the difference between lov &amp;amp; list item? &lt;/b&gt; &lt;br /&gt;Lov is a property where as list item is an item. A list  item can have only one column, lov can have one or more  columns.&lt;/div&gt;&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the advantage of the library?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;Libraries provide a convenient means of storing  client-side program units and sharing them among  multiple applications. Once you create a library, you  can attach it to any other form, menu, or library  modules. When you can call library program units from  triggers menu items commands and user named routine, you  write in the modules to which you have attach the  library. When a library attaches another library,  program units in the first library can reference program  units in the attached library. Library support dynamic  loading-that is library program units are loaded into an  application only when needed. This can significantly  reduce the run-time memory requirements of applications. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is lexical reference? How can it be created? &lt;/b&gt; &lt;br /&gt;Lexical reference is place_holder for text that can be  embedded in a sql statements. A lexical reference can be  created using &amp;amp; before the column or parameter name. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is system.coordination_operation? &lt;/b&gt;&lt;br /&gt;It represents the coordination causing event that occur  on the master block in master-detail relation. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is synchronize?  &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;It is a terminal screen with the internal state of  the form. It updates the screen display to reflect the  information that oracle forms has in its internal  representation of the screen. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What use of command line parameter cmd file? &lt;/b&gt;&lt;br /&gt;It is a command line argument that allows you to specify  a file that contain a set of arguments for r20run. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Text_io Package? &lt;/b&gt;&lt;br /&gt;It allows you to read and write information to a file in  the file system. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is forms_DDL? &lt;/b&gt;&lt;br /&gt;Issues dynamic Sql statements at run time, including  server side pl/SQl and DDL &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How is link tool operation different bet. reports 2 &amp;amp;  2.5? &lt;/b&gt;&lt;br /&gt;In Reports 2.0 the link tool has to be selected and then  two fields to be linked are selected and the link is  automatically created. In 2.5 the first field is  selected and the link tool is then used to link the  first field to the second field. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different styles of activation of ole  Objects? &lt;/b&gt;&lt;br /&gt;In place activationExternal activation &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you reference a Parameter? &lt;/b&gt;&lt;br /&gt;In Pl/Sql, You can reference and set the values of form  parameters using bind variables syntax. Ex. PARAMETER  name = '' or :block.item = PARAMETER Parameter name&lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What is the difference between object embedding &amp;amp;  linking in Oracle forms? &lt;/b&gt;&lt;br /&gt;In Oracle forms, Embedded objects become part of the  form module, and linked objects are references from a  form module to a linked source file. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Name of the functions used to get/set canvas properties? &lt;/b&gt;&lt;br /&gt;Get_view_property, Set_view_property &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the built-ins that are used for setting the LOV  properties at runtime? &lt;/b&gt;&lt;br /&gt;get_lov_property&lt;br /&gt;set_lov_property &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the built-ins used for processing rows? &lt;/b&gt; &lt;br /&gt;Get_group_row_count(function)&lt;br /&gt;Get_group_selection_count(function)&lt;br /&gt;Get_group_selection(function)&lt;br /&gt;Reset_group_selection(procedure)&lt;br /&gt;Set_group_selection(procedure)&lt;br /&gt;Unset_group_selection(procedure) &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are built-ins used for Processing rows? &lt;/b&gt;&lt;br /&gt;GET_GROUP_ROW_COUNT(function)&lt;br /&gt;GET_GROUP_SELECTION_COUNT(function)&lt;br /&gt;GET_GROUP_SELECTION(function)&lt;br /&gt;RESET_GROUP_SELECTION(procedure)&lt;br /&gt;SET_GROUP_SELECTION(procedure)&lt;br /&gt;UNSET_GROUP_SELECTION(procedure) &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the built-in used for getting cell values? &lt;/b&gt; &lt;br /&gt;Get_group_char_cell(function)&lt;br /&gt;Get_groupcell(function)&lt;br /&gt;Get_group_number_cell(function) &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the built-ins used for Getting cell values? &lt;/b&gt; &lt;br /&gt;GET_GROUP_CHAR_CELL (function)&lt;br /&gt;GET_GROUPCELL(function)&lt;br /&gt;GET_GROUP_NUMBET_CELL(function) &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Atleast how many set of data must a data model have  before a data model can be base on it? &lt;/b&gt;&lt;br /&gt;Four&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;To execute row from being displayed that still use  column in the row which property can be used? &lt;/b&gt;&lt;br /&gt;Format trigger. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are different types of modules available in oracle  form? &lt;/b&gt;&lt;br /&gt;Form module - a collection of objects and code routines  Menu modules - a collection of menus and menu item  commands that together make up an application menu  library module - a collection of user named procedures,  functions and packages that can be called from other  modules in the application &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the remove on exit property?  &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;For a modelless window, it determines whether oracle  forms hides the window automatically when the operators  navigates to an item in the another window. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is WHEN-Database-record trigger? &lt;/b&gt;&lt;br /&gt;Fires when oracle forms first marks a record as an  insert or an update. The trigger fires as soon as oracle  forms determines through validation that the record  should be processed by the next post or commit as an  insert or update. c generally occurs only when the  operators modifies the first item in the record, and  after the operator attempts to navigate out of the item. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a difference between pre-select and pre-query? &lt;/b&gt;&lt;br /&gt;Fires during the execute query and count query  processing after oracle forms constructs the select  statement to be issued, but before the statement is  actually issued. The pre-query trigger fires just before  oracle forms issues the select statement to the database  after the operator as define the example records by  entering the query criteria in enter query mode.Pre-query  trigger fires before pre-select trigger. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are built-ins associated with timers? &lt;/b&gt;&lt;br /&gt;find_timercreate_timerdelete_timer &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the built-ins used for finding object ID  functions? &lt;/b&gt;&lt;br /&gt;Find_group(function)&lt;br /&gt;Find_column(function) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the built-ins used for finding Object ID  function? &lt;/b&gt;&lt;br /&gt;FIND_GROUP(function)&lt;br /&gt;FIND_COLUMN(function) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Any attempt to navigate programmatically to disabled  form in a call_form stack is allowed? &lt;/b&gt;&lt;br /&gt;False &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Use the Add_group_row procedure to add a row to a static  record group 1. true or false? &lt;/b&gt;&lt;br /&gt;False&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-6632720397109708776?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6632720397109708776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6632720397109708776'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/07/oracle-part-iv-interview-question-and.html' title='Oracle (Part IV) Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-5072379196423122832</id><published>2010-07-24T03:44:00.000-07:00</published><updated>2010-11-24T03:45:45.383-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part V) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;Name Component subclasses that support painting ?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The Canvas, Frame, Panel, and Applet classes support painting.  &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is a native method? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;A native method is a method that is implemented in a language other than  Java. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How can you write a loop indefinitely? &lt;/b&gt; &lt;br /&gt;for(;;)--for loop; while(true)--always true, etc. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can an anonymous class be declared as implementing an interface and  extending a class? &lt;/b&gt;&lt;br /&gt;An anonymous class may implement an interface or extend a superclass,  but may not be declared to do both. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the purpose of finalization? &lt;/b&gt; &lt;br /&gt;The purpose of finalization is to give an unreachable object the  opportunity to perform any cleanup processing before the object is  garbage collected. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;When should the method invokeLater()be used?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;This method is used to ensure that Swing components are updated through  the event-dispatching thread. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How many methods in Object class? &lt;/b&gt; &lt;br /&gt;This question is not asked to test your memory. It tests you how well  you know Java. Ten in total.&lt;br /&gt;clone() &lt;br /&gt;equals() &amp;amp; hashcode() &lt;br /&gt;getClass() &lt;br /&gt;finalize() &lt;br /&gt;wait() &amp;amp; notify() &lt;br /&gt;toString() &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;How does Java handle integer overflows and underflows? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It uses low order bytes of the result that can fit into the size of the  type allowed by the operation.&lt;/span&gt; &lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the numeric promotion? &lt;br /&gt;&lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt;  Numeric promotion is used with both unary and binary bitwise operators.  This means that byte, char, and short values are converted to int values  before a bitwise operator is applied.&lt;br /&gt;If a binary bitwise operator has one long operand, the other operand is  converted to a long value.&lt;br /&gt;The type of the result of a bitwise operation is the type to which the  operands have been promoted. For example:&lt;br /&gt;short a = 5;&lt;br /&gt;byte b = 10;&lt;br /&gt;long c = 15;&lt;br /&gt;The type of the result of (a+b) is int, not short or byte. The type of  the result of (a+c) or (b+c) is long. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Is the numeric promotion available in other platform? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Yes. Because Java is implemented using a platform-independent virtual  machine, bitwise operations always yield the same result, even when run  on machines that use radically different CPUs. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between the Boolean &amp;amp; operator and the &amp;amp;&amp;amp;  operator? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;If an expression involving the Boolean &amp;amp; operator is evaluated, both  operands are evaluated. Then the &amp;amp; operator is applied to the operand.  When an expression involving the &amp;amp;&amp;amp; operator is evaluated, the first  operand is evaluated. If the first operand returns a value of true then  the second operand is evaluated. The &amp;amp;&amp;amp; operator is then applied to the  first and second operands. If the first operand evaluates to false, the  evaluation of the second operand is skipped. &lt;br /&gt;Operator &amp;amp; has no chance to skip both sides evaluation and &amp;amp;&amp;amp; operator  does. If asked why, give details as above. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;When is the ArithmeticException throwQuestion: What is the  GregorianCalendar class?&lt;/span&gt; &lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt;The GregorianCalendar provides support for traditional Western  calendars. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the SimpleTimeZone class? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The SimpleTimeZone class provides support for a Gregorian calendar. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How can a subclass call a method or a constructor defined in a superclass? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Use the following syntax: super.myMethod(); To call a constructor of the  superclass, just write super(); in the first line of the subclass's  constructor. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the Properties class? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The properties class is a subclass of Hashtable that can be read from or  written to a stream. It also provides the capability to specify a set of  default values to be used. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the purpose of the Runtime class? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The purpose of the Runtime class is to provide access to the Java  runtime system.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the purpose of the System class?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The purpose of the System class is to provide access to system  resources. &lt;/span&gt; &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the  purpose of the finally clause of a try-catch-finally statement? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;The finally clause is used to provide the capability to execute code no  matter whether or not an exception is thrown or caught. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the Locale class? &lt;/b&gt; &lt;br /&gt;The Locale class is used to tailor program output to the conventions of  a particular geographic, political, or cultural region. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is an abstract method? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;An abstract method is a method whose implementation is deferred to a  subclass. Or, a method that has no implementation. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between interface and abstract class? &lt;/b&gt; &lt;br /&gt;interface contains methods that must be abstract; abstract class may  contain concrete methods. interface contains variables that must be  static and final; abstract class may contain non-final and final  variables. members in an interface are public by default, abstract class  may contain non-public members. interface is used to "implements";  whereas abstract class is used to "extends". interface can be used to  achieve multiple inheritance; abstract class can be used as a single  inheritance. interface can "extends" another interface, abstract class  can "extends" another class and "implements" multiple interfaces.  interface is absolutely abstract; abstract class can be invoked if a  main() exists. interface is more flexible than abstract class because  one class can only "extends" one super class, but "implements" multiple  interfaces. If given a choice, use interface instead of abstract class. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is a static method? &lt;/b&gt; &lt;br /&gt;A static method is a method that belongs to the class rather than any  object of the class and doesn't apply to an object or even require that  any objects of the class have been instantiated. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is a protected method? &lt;br /&gt;&lt;/b&gt;  A protected method is a method that can be accessed by any method in its  package and inherited by any subclass of its class. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between a static and a non-static inner class? &lt;/b&gt; &lt;br /&gt;A non-static inner class may have object instances that are associated  with instances of the class's outer class. A static inner class does not  have any object instances. &lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is an object's lock and which object's have locks? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;An object's lock is a mechanism that is used by multiple threads to  obtain synchronized access to the object. A thread may execute a  synchronized method of an object only after it has acquired the object's  lock. All objects and classes have locks. A class's lock is acquired on  the class's Class object.&lt;/span&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;When can an object reference be cast to an interface reference? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;An object reference can be cast to an interface reference when the  object implements the referenced interface. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between a Window and a Frame? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Frame class extends Window to define a main application window that  can have a menu bar. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between a Window and a Frame? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Heavy weight components like Abstract Window Toolkit (AWT), depend on  the local windowing toolkit. For example, java.awt.Button is a heavy  weight component, when it is running on the Java platform for Unix  platform, it maps to a real Motif button. In this relationship, the  Motif button is called the peer to the java.awt.Button. If you create  two Buttons, two peers and hence two Motif Buttons are also created. The  Java platform communicates with the Motif Buttons using the Java Native  Interface. For each and every component added to the application, there  is an additional overhead tied to the local windowing system, which is  why these components are called heavy weight. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Which package has light weight components? &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  javax.Swing package. All components in Swing, except JApplet, JDialog,  JFrame and JWindow are lightweight components.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are peerless components?  &lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;The peerless components are called light weight components.  &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the difference between the Font and FontMetrics classes?&lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;The FontMetrics class is used to define implementation-specific  properties, such as ascent and descent, of a Font object&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-5072379196423122832?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5072379196423122832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5072379196423122832'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/07/core-java-part-v-interview-questions.html' title='Core Java (Part V) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-3075425228167694454</id><published>2010-06-24T04:03:00.000-07:00</published><updated>2010-11-24T04:04:22.362-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle (Part III) Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;What is SGA?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;The System Global Area in an Oracle database is the area  in memory to facilitate the transfer of information  between users. It holds the most recently requested  structural information between users. It holds the most  recently requested structural information about the  database. The structure is database buffers, dictionary  cache, redo log buffer and shared pool area. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a shared pool? &lt;/b&gt;&lt;br /&gt;The data dictionary cache is stored in an area in SGA  called the shared pool. This will allow sharing of  parsed SQL statements among concurrent users. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is mean by Program Global Area (PGA)?  &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;It is area in memory that is used by a single Oracle  user process. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a data segment? &lt;/b&gt;&lt;br /&gt;Data segment are the physical areas within a database  block in which the data associated with tables and  clusters are stored. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the factors causing the reparsing of SQL  statements in SGA? &lt;/b&gt;&lt;br /&gt;Due to insufficient shared pool size.&lt;br /&gt;Monitor the ratio of the reloads takes place while  executing SQL statements. If the ratio is greater than 1  then increase the SHARED_POOL_SIZE. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are clusters? &lt;/b&gt;&lt;br /&gt;Clusters are groups of one or more tables physically  stores together to share common columns and are often  used together. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is cluster key? &lt;/b&gt;&lt;br /&gt;The related columns of the tables in a cluster are  called the cluster key. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Do a view contain data? &lt;/b&gt;&lt;br /&gt;Views do not contain or store data. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is user Account in Oracle database? &lt;/b&gt;&lt;br /&gt;A user account is not a physical structure in database  but it is having important relationship to the objects  in the database and will be having certain privileges. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you enforce security using stored procedures? &lt;/b&gt;&lt;br /&gt;Don't grant user access directly to tables within the  application. Instead grant the ability to access the  procedures that access the tables. When procedure  executed it will execute the privilege of procedures  owner. Users cannot access tables except via the  procedure. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the dictionary tables used to monitor a  database space? &lt;/b&gt;&lt;br /&gt;DBA_FREE_SPACE&lt;br /&gt;DBA_SEGMENTS&lt;br /&gt;DBA_DATA_FILES.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can a property clause itself be based on a property  clause? &lt;/b&gt;&lt;br /&gt;Yes &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;If a parameter is used in a query without being  previously defined, what diff. exist between. report 2.0  and 2.5 when the query is applied? &lt;/b&gt;&lt;br /&gt;While both reports 2.0 and 2.5 create the parameter,  report 2.5 gives a message that a bind parameter has  been created. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the sql clauses supported in the link property  sheet?&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;Where start with having. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is trigger associated with the timer? &lt;/b&gt;&lt;br /&gt;When-timer-expired. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the trigger associated with image items? &lt;/b&gt; &lt;br /&gt;When-image-activated fires when the operators double  clicks on an image itemwhen-image-pressed fires when an  operator clicks or double clicks on an image item &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different windows events activated at  runtimes? &lt;/b&gt;&lt;br /&gt;When_window_activated&lt;br /&gt;When_window_closed&lt;br /&gt;When_window_deactivated&lt;br /&gt;When_window_resized&lt;br /&gt;Within this triggers, you can examine the built in  system variable system. event_window to determine the  name of the window for which the trigger fired. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;When do you use data parameter type? &lt;/b&gt;&lt;br /&gt;When the value of a data parameter being passed to a  called product is always the name of the record group  defined in the current form. Data parameters are used to  pass data to products invoked with the run_product  built-in subprogram. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is difference between open_form and call_form? &lt;/b&gt; &lt;br /&gt;when one form invokes another form by executing  open_form the first form remains displayed, and  operators can navigate between the forms as desired.  when one form invokes another form by executing  call_form, the called form is modal with respect to the  calling form. That is, any windows that belong to the  calling form are disabled, and operators cannot navigate  to them until they first exit the called form. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is new_form built-in? &lt;/b&gt;&lt;br /&gt;When one form invokes another form by executing new_form  oracle form exits the first form and releases its memory  before loading the new form calling new form completely  replace the first with the second. If there are changes  pending in the first form, the operator will be prompted  to save them before the new form is loaded. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the "LOV of Validation" Property of an item?  What is the use of it? &lt;/b&gt;&lt;br /&gt;When LOV for Validation is set to True, Oracle Forms  compares the current value of the text item to the  values in the first column displayed in the LOV.  Whenever the validation event occurs. If the value in  the text item matches one of the values in the first  column of the LOV, validation succeeds, the LOV is not  displayed, and processing continues normally. If the  value in the text item does not match one of the values  in the first column of the LOV, Oracle Forms displays  the LOV and uses the text item value as the search  criteria to automatically reduce the list.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the diff. when Flex mode is mode on and when it  is off? &lt;/b&gt;&lt;br /&gt;When flex mode is on, reports automatically resizes the  parent when the child is resized. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the diff. when confine mode is on and when it is  off? &lt;/b&gt;&lt;br /&gt;When confine mode is on, an object cannot be moved  outside its parent in the layout. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are visual attributes? &lt;/b&gt;&lt;br /&gt;Visual attributes are the font, color, pattern  proprieties that you set for form and menu objects that  appear in your application interface. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Which of the two views should objects according to  possession? &lt;/b&gt;&lt;br /&gt;view by structure. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the two types of views available in the object  navigator(specific to report 2.5)? &lt;/b&gt;&lt;br /&gt;View by structure and view by type . &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the vbx controls? &lt;/b&gt;&lt;br /&gt;Vbx control provide a simple method of building and  enhancing user interfaces. The controls can use to  obtain user inputs and display program outputs.vbx  control where originally develop as extensions for the  ms visual basic environments and include such items as  sliders, rides and knobs. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of transactional triggers? &lt;/b&gt;&lt;br /&gt;Using transactional triggers we can control or modify  the default functionality of the oracle forms. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you create a new session while open a new form? &lt;/b&gt;&lt;br /&gt;Using open_form built-in setting the session option Ex.  Open_form('Stocks ',active, session). when invoke the  multiple forms with open form and call_form in the same  application, state whether the following are true/False &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the ways to monitor the performance of the  report? &lt;/b&gt;&lt;br /&gt;Use reports profile executable statement. Use SQL trace  facility. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;If two groups are not linked in the data model editor,  What is the hierarchy between them? &lt;/b&gt;&lt;br /&gt;Two group that is above are the left most rank higher  than the group that is to right or below it.&lt;/div&gt;&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;An open form can not be execute the call_form  procedure if you chain of called forms has been  initiated by another open form?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;True &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain about horizontal, Vertical tool bar canvas  views? &lt;/b&gt;&lt;br /&gt;Tool bar canvas views are used to create tool bars for  individual windows. Horizontal tool bars are display at  the top of a window, just under its menu bar. Vertical  Tool bars are displayed along the left side of a window &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the purpose of the product order option in the  column property sheet?&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;To specify the order of individual group evaluation in a  cross products. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of image_zoom built-in? &lt;/b&gt;&lt;br /&gt;To manipulate images in image items. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you reference a parameter indirectly? &lt;/b&gt;&lt;br /&gt;To indirectly reference a parameter use the NAME IN,  COPY 'built-ins to indirectly set and reference the  parameters value' Example name_in ('capital parameter my  param'), Copy ('SURESH','Parameter my_param') &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a timer? &lt;/b&gt;&lt;br /&gt;Timer is an "internal time clock" that you can  programmatically create to perform an action each time  the times. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the two phases of block coordination? &lt;/b&gt;&lt;br /&gt;There are two phases of block coordination: the clear  phase and the population phase. During, the clear phase,  Oracle Forms navigates internally to the detail block  and flushes the obsolete detail records. During the  population phase, Oracle Forms issues a SELECT statement  to repopulate the detail block with detail records  associated with the new master record. These operations  are accomplished through the execution of triggers. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are Most Common types of Complex master-detail  relationships? &lt;/b&gt;&lt;br /&gt;There are three most common types of complex  master-detail relationships:&lt;br /&gt;master with dependent details&lt;br /&gt;master with independent details&lt;br /&gt;detail with two masters &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a text list? &lt;/b&gt;&lt;br /&gt;The text list style list item appears as a rectangular  box which displays the fixed number of values. When the  text list contains values that can not be displayed, a  vertical scroll bar appears, allowing the operator to  view and select undisplayed values. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is term? &lt;/b&gt;&lt;br /&gt;The term is terminal definition file that describes the  terminal form which you are using r20run.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is use of term? &lt;/b&gt;&lt;br /&gt;The term file which key is correspond to which oracle  report functions. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is pop list? &lt;/b&gt;&lt;br /&gt;The pop list style list item appears initially as a  single field (similar to a text item field). When the  operator selects the list icon, a list of available  choices appears. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the maximum no of chars the parameter can store? &lt;/b&gt;&lt;br /&gt;The maximum no of chars the parameter can store is only  valid for char parameters, which can be upto 64K. No  parameters default to 23Bytes and Date parameter default  to 7Bytes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the default extensions of the files created by  library module? &lt;/b&gt;&lt;br /&gt;The default file extensions indicate the library module  type and storage format .pll - pl/sql library module  binary &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the Coordination Properties in a Master-Detail  relationship? &lt;/b&gt;&lt;br /&gt;The coordination properties are&lt;br /&gt;Deferred&lt;br /&gt;Auto-Query&lt;br /&gt;These Properties determine when the population phase of  block&lt;br /&gt;coordination should occur. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you display console on a window ? &lt;/b&gt;&lt;br /&gt;The console includes the status line and message line,  and is displayed at the bottom of the window to which it  is assigned.To specify that the console should be  displayed, set the console window form property to the  name of any window in the form. To include the console,  set console window to Null. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different Parameter types? &lt;/b&gt;&lt;br /&gt;Text ParametersData Parameters &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;State any three mouse events system variables? &lt;/b&gt;&lt;br /&gt;System.mouse_button_pressedSystem.mouse_button_shift &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the types of calculated columns available? &lt;/b&gt; &lt;br /&gt;Summary, Formula, Placeholder column. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain about stacked canvas views? &lt;/b&gt;&lt;br /&gt;Stacked canvas view is displayed in a window on top of,  or "stacked" on the content canvas view assigned to that  same window. Stacked canvas views obscure some part of  the underlying content canvas view, and or often shown  and hidden programmatically.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one do off-line database backups? (for DBA )&lt;/b&gt;&lt;br /&gt;Shut down the database from sqlplus or server manager.  Backup all files to secondary storage (eg. tapes).  Ensure that you backup all data files, all control files  and all log files. When completed, restart your  database.&lt;br /&gt;Do the following queries to get a list of all files that  needs to be backed up: &lt;br /&gt;select name from sys.v_$datafile;&lt;br /&gt;select member from sys.v_$logfile;&lt;br /&gt;select name from sys.v_$controlfile;&lt;br /&gt;Sometimes Oracle takes forever to shutdown with the  "immediate" option. As workaround to this problem,  shutdown using these commands: &lt;br /&gt;alter system checkpoint;&lt;br /&gt;shutdown abort&lt;br /&gt;startup restrict&lt;br /&gt;shutdown immediate&lt;br /&gt;Note that if you database is in ARCHIVELOG mode, one can  still use archived log files to roll forward from an  off-line backup. If you cannot take your database down  for a cold (off-line) backup at a convenient time,  switch your database into ARCHIVELOG mode and perform  hot (on-line) backups. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between SHOW_EDITOR and  EDIT_TEXTITEM? &lt;/b&gt;&lt;br /&gt;Show editor is the generic built-in which accepts any  editor name and takes some input string and returns  modified output string. Whereas the edit_textitem  built-in needs the input focus to be in the text item  before the built-in is executed. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the built-ins that are used to Attach an LOV  programmatically to an item? &lt;/b&gt;&lt;br /&gt;set_item_property&lt;br /&gt;get_item_property&lt;br /&gt;(by setting the LOV_NAME property) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one do on-line database backups? (for DBA )&lt;/b&gt;&lt;br /&gt;Each tablespace that needs to be backed-up must be  switched into backup mode before copying the files out  to secondary storage (tapes). Look at this simple  example. &lt;br /&gt;ALTER TABLESPACE xyz BEGIN BACKUP;&lt;br /&gt;! cp xyfFile1 /backupDir/&lt;br /&gt;ALTER TABLESPACE xyz END BACKUP;&lt;br /&gt;It is better to backup tablespace for tablespace than to  put all tablespaces in backup mode. Backing them up  separately incurs less overhead. When done, remember to  backup your control files. Look at this example:&lt;br /&gt;ALTER SYSTEM SWITCH LOGFILE; -- Force log switch to  update control file headers &lt;br /&gt;ALTER DATABASE BACKUP CONTROLFILE TO '/backupDir/control.dbf';&lt;br /&gt;NOTE: Do not run on-line backups during peak processing  periods. Oracle will write complete database blocks  instead of the normal deltas to redo log files while in  backup mode. This will lead to excessive database  archiving and even database freezes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one backup a database using RMAN? (for DBA )&lt;/b&gt;&lt;br /&gt;The biggest advantage of RMAN is that it only backup  used space in the database. Rman doesn't put tablespaces  in backup mode, saving on redo generation overhead. RMAN  will re-read database blocks until it gets a consistent  image of it. Look at this simple backup example. &lt;br /&gt;rman target sys/*** nocatalog &lt;br /&gt;run { &lt;br /&gt;allocate channel t1 type disk;&lt;br /&gt;backup &lt;br /&gt;format '/app/oracle/db_backup/%d_t%t_s%s_p%p'&lt;br /&gt;( database ); &lt;br /&gt;release channel t1; &lt;br /&gt;}&lt;br /&gt;Example RMAN restore: &lt;br /&gt;rman target sys/*** nocatalog &lt;br /&gt;run {&lt;br /&gt;allocate channel t1 type disk;&lt;br /&gt;# set until time 'Aug 07 2000 :51';&lt;br /&gt;restore tablespace users; &lt;br /&gt;recover tablespace users; &lt;br /&gt;release channel t1; &lt;br /&gt;}&lt;br /&gt;The examples above are extremely simplistic and only  useful for illustrating basic concepts. By default  Oracle uses the database controlfiles to store  information about backups. Normally one would rather  setup a RMAN catalog database to store RMAN metadata in.  Read the Oracle Backup and Recovery Guide before  implementing any RMAN backups. &lt;br /&gt;Note: RMAN cannot write image copies directly to tape.  One needs to use a third-party media manager that  integrates with RMAN to backup directly to tape.  Alternatively one can backup to disk and then manually  copy the backups to tape. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different file extensions that are created  by oracle reports? &lt;/b&gt;&lt;br /&gt;Rep file and Rdf file. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is strip sources generate options? &lt;/b&gt;&lt;br /&gt;Removes the source code from the library file and  generates a library files that contains only pcode. The  resulting file can be used for final deployment, but can  not be subsequently edited in the designer.ex. f45gen  module=old_lib.pll userid=scott/tiger strip_source YES  output_file &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one put a database into ARCHIVELOG mode? (for  DBA )&lt;/b&gt;&lt;br /&gt;The main reason for running in archivelog mode is that  one can provide 24-hour availability and guarantee  complete data recoverability. It is also necessary to  enable ARCHIVELOG mode before one can start to use  on-line database backups. To enable ARCHIVELOG mode,  simply change your database startup command script, and  bounce the database: &lt;br /&gt;SQLPLUS&amp;gt; connect sys as sysdba&lt;br /&gt;SQLPLUS&amp;gt; startup mount exclusive;&lt;br /&gt;SQLPLUS&amp;gt; alter database archivelog;&lt;br /&gt;SQLPLUS&amp;gt; archive log start;&lt;br /&gt;SQLPLUS&amp;gt; alter database open;&lt;br /&gt;NOTE1: Remember to take a baseline database backup right  after enabling archivelog mode. Without it one would not  be able to recover. Also, implement an archivelog backup  to prevent the archive log directory from filling-up. &lt;br /&gt;NOTE2: ARCHIVELOG mode was introduced with Oracle V6,  and is essential for database point-in-time recovery.  Archiving can be used in combination with on-line and  off-line database backups. &lt;br /&gt;NOTE3: You may want to set the following INIT.ORA  parameters when enabling ARCHIVELOG mode:  log_archive_start=TRUE, log_archive_dest=... and  log_archive_format=... &lt;br /&gt;NOTE4: You can change the archive log destination of a  database on-line with the ARCHIVE LOG START TO  'directory'; statement. This statement is often used to  switch archiving between a set of directories. &lt;br /&gt;NOTE5: When running Oracle Real Application Server (RAC),  you need to shut down all nodes before changing the  database to ARCHIVELOG mode. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the basic data structure that is required for  creating an LOV? &lt;/b&gt;&lt;br /&gt;Record Group. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one backup archived log files? (for DBA )&lt;/b&gt;&lt;br /&gt;One can backup archived log files using RMAN or any  operating system backup utility. Remember to delete  files after backing them up to prevent the archive log  directory from filling up. If the archive log directory  becomes full, your database will hang! Look at this  simple RMAN backup script: &lt;br /&gt;RMAN&amp;gt; run {&lt;br /&gt;2&amp;gt; allocate channel dev1 type disk;&lt;br /&gt;3&amp;gt; backup&lt;br /&gt;4&amp;gt; format '/app/oracle/arch_backup/log_t%t_s%s_p%p'&lt;br /&gt;5&amp;gt; (archivelog all delete input);&lt;br /&gt;6&amp;gt; release channel dev1;&lt;br /&gt;7&amp;gt; } &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Does Oracle write to data files in begin/hot backup  mode? (for DBA )&lt;/b&gt;&lt;br /&gt;Oracle will stop updating file headers, but will  continue to write data to the database files even if a  tablespace is in backup mode. &lt;br /&gt;In backup mode, Oracle will write out complete changed  blocks to the redo log files. Normally only deltas  (changes) are logged to the redo logs. This is done to  enable reconstruction of a block if only half of it was  backed up (split blocks). Because of this, one should  notice increased log activity and archiving during  on-line backups.&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-3075425228167694454?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3075425228167694454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3075425228167694454'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/06/oracle-part-iii-interview-question-and.html' title='Oracle (Part III) Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-9177960256679996922</id><published>2010-05-24T04:02:00.000-07:00</published><updated>2010-11-24T04:03:21.058-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle (Part II) Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;Define Transaction ?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;A Transaction is a logical unit of work that comprises  one or more SQL statements executed by a single user. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Read-Only Transaction ? &lt;/b&gt;&lt;br /&gt;A Read-Only transaction ensures that the results of each  query executed in the transaction are consistant with  respect to the same point in time. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is a deadlock ? Explain .&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;Two processes wating to update the rows of a table which  are locked by the other process then deadlock arises. In  a database environment this will often happen because of  not issuing proper row lock commands. Poor design of  front-end application may cause this situation and the  performance of server will reduce drastically.&lt;br /&gt;These locks will be released automatically when a  commit/rollback operation performed or any one of this  processes being killed externally. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Schema ? &lt;/b&gt;&lt;br /&gt;The set of objects owned by user account is called the  schema. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a cluster Key ? &lt;/b&gt;&lt;br /&gt;The related columns of the tables are called the cluster  key. The cluster key is indexed using a cluster index  and its value is stored only once for multiple tables in  the cluster. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Parallel Server ? &lt;/b&gt;&lt;br /&gt;Multiple instances accessing the same database (Only In  Multi-CPU environments) &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the basic element of Base configuration of an  oracle Database ? &lt;/b&gt;&lt;br /&gt;It consists of&lt;br /&gt;one or more data files.&lt;br /&gt;one or more control files.&lt;br /&gt;two or more redo log files.&lt;br /&gt;The Database contains&lt;br /&gt;multiple users/schemas&lt;br /&gt;one or more rollback segments&lt;br /&gt;one or more tablespaces&lt;br /&gt;Data dictionary tables&lt;br /&gt;User objects (table,indexes,views etc.,)&lt;br /&gt;The server that access the database consists of&lt;br /&gt;SGA (Database buffer, Dictionary Cache Buffers, Redo log  buffers, Shared SQL pool)&lt;br /&gt;SMON (System MONito)&lt;br /&gt;PMON (Process MONitor)&lt;br /&gt;LGWR (LoG Write)&lt;br /&gt;DBWR (Data Base Write)&lt;br /&gt;ARCH (ARCHiver)&lt;br /&gt;CKPT (Check Point)&lt;br /&gt;RECO&lt;br /&gt;Dispatcher&lt;br /&gt;User Process with associated PGS&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is clusters ? &lt;/b&gt;&lt;br /&gt;Group of tables physically stored together because they  share common columns and are often used together is  called Cluster. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Index ? How it is implemented in Oracle  Database ? &lt;/b&gt;&lt;br /&gt;An index is a database structure used by the server to  have direct access of a row in a table. An index is  automatically created when a unique of primary key  constraint clause is specified in create table comman (Ver  7.0) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Database instance ? Explain &lt;/b&gt;&lt;br /&gt;A database instance (Server) is a set of memory  structure and background processes that access a set of  database files.&lt;br /&gt;The process can be shared by all users. The memory  structure that are used to store most queried data from  database. This helps up to improve database performance  by decreasing the amount of I/O performed against data  file. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the use of ANALYZE command ? &lt;/b&gt;&lt;br /&gt;To perform one of these function on an index, table, or  cluster:&lt;br /&gt;- To collect statistics about object used by the  optimizer and store them in the data dictionary.&lt;br /&gt;- To delete statistics about the object used by object  from the data dictionary.&lt;br /&gt;- To validate the structure of the object.&lt;br /&gt;- To identify migrated and chained rows of the table or  cluster. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is default tablespace ? &lt;/b&gt;&lt;br /&gt;The Tablespace to contain schema objects created without  specifying a tablespace name. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the system resources that can be controlled  through Profile ? &lt;/b&gt;&lt;br /&gt;The number of concurrent sessions the user can establish  the CPU processing time available to the user's session  the CPU processing time available to a single call to  ORACLE made by a SQL statement the amount of logical I/O  available to the user's session the amout of logical I/O  available to a single call to ORACLE made by a SQL  statement the allowed amount of idle time for the user's  session the allowed amount of connect time for the  user's session. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Tablespace Quota ? &lt;/b&gt;&lt;br /&gt;The collective amount of disk space available to the  objects in a schema on a particular tablespace. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different Levels of Auditing ? &lt;/b&gt;&lt;br /&gt;Statement Auditing, Privilege Auditing and Object  Auditing. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Statement Auditing ? &lt;/b&gt;&lt;br /&gt;Statement auditing is the auditing of the powerful  system privileges without regard to specifically named  objects.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the database administrators utilities available  ? &lt;/b&gt;&lt;br /&gt;SQL * DBA - This allows DBA to monitor and control an  ORACLE database. SQL * Loader - It loads data from  standard operating system files (Flat files) into ORACLE  database tables. Export (EXP) and Import (imp) utilities  allow you to move existing data in ORACLE format to and  from ORACLE database. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can you enable automatic archiving ? &lt;/b&gt;&lt;br /&gt;Shut the database&lt;br /&gt;Backup the database&lt;br /&gt;Modify/Include LOG_ARCHIVE_START_TRUE in init.ora file.&lt;br /&gt;Start up the database. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are roles? How can we implement roles ? &lt;/b&gt;&lt;br /&gt;Roles are the easiest way to grant and manage common  privileges needed by different groups of database users.  Creating roles and assigning provides to roles. Assign  each role to group of users. This will simplify the job  of assigning privileges to individual users. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are Roles ? &lt;/b&gt;&lt;br /&gt;Roles are named groups of related privileges that are  granted to users or other roles. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the use of Roles ? &lt;/b&gt;&lt;br /&gt;REDUCED GRANTING OF PRIVILEGES - Rather than explicitly  granting the same set of privileges to many users a  database administrator can grant the privileges for a  group of related users granted to a role and then grant  only the role to each member of the group. &lt;br /&gt;DYNAMIC PRIVILEGE MANAGEMENT - When the privileges of a  group must change, only the privileges of the role need  to be modified. The security domains of all users  granted the group's role automatically reflect the  changes made to the role.&lt;br /&gt;SELECTIVE AVAILABILITY OF PRIVILEGES - The roles granted  to a user can be selectively enable (available for use)  or disabled (not available for use). This allows  specific control of a user's privileges in any given  situation.&lt;br /&gt;APPLICATION AWARENESS - A database application can be  designed to automatically enable and disable selective  roles when a user attempts to use the application. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Privilege Auditing ? &lt;/b&gt;&lt;br /&gt;Privilege auditing is the auditing of the use of  powerful system privileges without regard to  specifically named objects. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Object Auditing ?  &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;Object auditing is the auditing of accesses to  specific schema objects without regard to user. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Auditing ? &lt;/b&gt;&lt;br /&gt;Monitoring of user access to aid in the investigation of  database use.&lt;/div&gt;&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;How does one see the uptime for a database? (for DBA  )&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;Look at the following SQL query: &lt;br /&gt;SELECT to_char (startup_time,'DD-MON-YYYY HH24: MI: SS')  "DB Startup Time"&lt;br /&gt;FROM sys.v_$instance;&lt;br /&gt;Marco Bergman provided the following alternative  solution: &lt;br /&gt;SELECT to_char (logon_time,'Dy dd Mon HH24: MI: SS') "DB  Startup Time"&lt;br /&gt;FROM sys.v_$session&lt;br /&gt;WHERE Sid=1 /* this is pmon */&lt;br /&gt;/&lt;br /&gt;Users still running on Oracle 7 can try one of the  following queries: &lt;br /&gt;Column STARTED format a18 head 'STARTUP TIME'&lt;br /&gt;Select C.INSTANCE,&lt;br /&gt;to_date (JUL.VALUE, 'J')&lt;br /&gt;|| to_char (floor (SEC.VALUE/3600), '09')&lt;br /&gt;|| ':'&lt;br /&gt;-- || Substr (to_char (mod (SEC.VALUE/60, 60), '09'), 2,  2)&lt;br /&gt;|| Substr (to_char (floor (mod (SEC.VALUE/60, 60)),  '09'), 2, 2)&lt;br /&gt;|| '.'&lt;br /&gt;|| Substr (to_char (mod (SEC.VALUE, 60), '09'), 2, 2)  STARTED&lt;br /&gt;from SYS.V_$INSTANCE JUL,&lt;br /&gt;SYS.V_$INSTANCE SEC,&lt;br /&gt;SYS.V_$THREAD C&lt;br /&gt;Where JUL.KEY like '%JULIAN%'&lt;br /&gt;and SEC.KEY like '%SECOND%';&lt;br /&gt;Select to_date (JUL.VALUE, 'J')&lt;br /&gt;|| to_char (to_date (SEC.VALUE, 'SSSSS'), ' HH24:MI:SS')  STARTED&lt;br /&gt;from SYS.V_$INSTANCE JUL,&lt;br /&gt;SYS.V_$INSTANCE SEC&lt;br /&gt;where JUL.KEY like '%JULIAN%'&lt;br /&gt;and SEC.KEY like '%SECOND%';&lt;br /&gt;select to_char (to_date (JUL.VALUE, 'J') + (SEC.VALUE/86400),  -Return a DATE&lt;br /&gt;'DD-MON-YY HH24:MI:SS') STARTED&lt;br /&gt;from V$INSTANCE JUL,&lt;br /&gt;V$INSTANCE SEC&lt;br /&gt;where JUL.KEY like '%JULIAN%'&lt;br /&gt;and SEC.KEY like '%SECOND%';&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Where are my TEMPFILES, I don't see them in V$DATAFILE  or DBA_DATA_FILE? (for DBA )&lt;/b&gt;&lt;br /&gt;Tempfiles, unlike normal datafiles, are not listed in  v$datafile or dba_data_files. Instead query v$tempfile  or dba_temp_files: &lt;br /&gt;SELECT * FROM v$tempfile;&lt;br /&gt;SELECT * FROM dba_temp_files; &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do I find used/free space in a TEMPORARY tablespace?  (for DBA )&lt;/b&gt;&lt;br /&gt;Unlike normal tablespaces, true temporary tablespace  information is not listed in DBA_FREE_SPACE. Instead use  the V$TEMP_SPACE_HEADER view: &lt;br /&gt;SELECT tablespace_name, SUM (bytes used), SUM (bytes  free)&lt;br /&gt;FROM V$temp_space_header&lt;br /&gt;GROUP BY tablespace_name;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a profile ? &lt;/b&gt;&lt;br /&gt;Each database user is assigned a Profile that specifies  limitations on various system resources available to the  user. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How will you enforce security using stored procedures? &lt;/b&gt;&lt;br /&gt;Don't grant user access directly to tables within the  application. Instead grant the ability to access the  procedures that access the tables. When procedure  executed it will execute the privilege of procedures  owner. Users cannot access tables except via the  procedure. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can one see who is using a temporary segment? (for  DBA )&lt;/b&gt;&lt;br /&gt;For every user using temporary space, there is an entry  in SYS.V$_LOCK with type 'TS'. &lt;br /&gt;All temporary segments are named 'ffff.bbbb' where 'ffff'  is the file it is in and 'bbbb' is first block of the  segment. If your temporary tablespace is set to  TEMPORARY, all sorts are done in one large temporary  segment. For usage stats, see SYS.V_$SORT_SEGMENT &lt;br /&gt;From Oracle 8.0, one can just query SYS.v$sort_usage.  Look at these examples: &lt;br /&gt;select s.username, u."USER", u.tablespace, u.contents,  u.extents, u.blocks&lt;br /&gt;from sys.v_$session s, sys.v_$sort_usage u&lt;br /&gt;where s.addr = u.session_addr&lt;br /&gt;/&lt;br /&gt;select s.osuser, s.process, s.username, s.serial#,&lt;br /&gt;Sum (u.blocks)*vp.value/1024 sort_size&lt;br /&gt;from sys.v_$session s, sys.v_$sort_usage u,  sys.v_$parameter VP&lt;br /&gt;where s.saddr = u.session_addr&lt;br /&gt;and vp.name = 'db_block_size'&lt;br /&gt;and s.osuser like '&amp;amp;1'&lt;br /&gt;group by s.osuser, s.process, s.username, s.serial#,  vp.value&lt;br /&gt;/&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one get the view definition of fixed  views/tables? &lt;/b&gt;&lt;br /&gt;Query v$fixed_view_definition. Example: SELECT * FROM  v$fixed_view_definition WHERE view_name='V$SESSION'; &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the dictionary tables used to monitor a  database spaces ? &lt;/b&gt;&lt;br /&gt;DBA_FREE_SPACE&lt;br /&gt;DBA_SEGMENTS&lt;br /&gt;DBA_DATA_FILES.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can we specify the Archived log file name format and  destination? &lt;/b&gt;&lt;br /&gt;By setting the following values in init.ora file.  LOG_ARCHIVE_FORMAT = arch %S/s/T/tarc (%S - Log sequence  number and is zero left paded, %s - Log sequence number  not padded. %T - Thread number lef-zero-paded and %t -  Thread number not padded). The file name created is arch  0001 are if %S is used. LOG_ARCHIVE_DEST = path. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is user Account in Oracle database? &lt;/b&gt;&lt;br /&gt;An user account is not a physical structure in Database  but it is having important relationship to the objects  in the database and will be having certain privileges. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;When will the data in the snapshot log be used? &lt;/b&gt;&lt;br /&gt;We must be able to create a after row trigger on table  (i.e., it should be not be already available) After  giving table privileges. We cannot specify snapshot log  name because oracle uses the name of the master table in  the name of the database objects that support its  snapshot log. The master table name should be less than  or equal to 23 characters. (The table name created will  be MLOGS_tablename, and trigger name will be TLOGS  name). &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What dynamic data replication? &lt;/b&gt;&lt;br /&gt;Updating or Inserting records in remote database through  database triggers. It may fail if remote database is  having any problem. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Two-Phase Commit ? &lt;/b&gt;&lt;br /&gt;Two-phase commit is mechanism that guarantees a  distributed transaction either commits on all involved  nodes or rolls back on all involved nodes to maintain  data consistency across the global distributed database.  It has two phase, a Prepare Phase and a Commit Phase. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can you Enforce Referential Integrity in snapshots ? &lt;/b&gt;&lt;br /&gt;Time the references to occur when master tables are not  in use. Peform the reference the manually immdiately  locking the master tables. We can join tables in  snopshots by creating a complex snapshots that will  based on the master tables. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a SQL * NET? &lt;/b&gt;&lt;br /&gt;SQL *NET is ORACLE's mechanism for interfacing with the  communication protocols used by the networks that  facilitate distributed processing and distributed  databases. It is used in Clint-Server and Server-Server  communications. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a SNAPSHOT ? &lt;/b&gt;&lt;br /&gt;Snapshots are read-only copies of a master table located  on a remote node which is periodically refreshed to  reflect changes made to the master table. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the mechanism provided by ORACLE for table  replication ? &lt;/b&gt;&lt;br /&gt;Snapshots and SNAPSHOT LOGs &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is snapshots? &lt;/b&gt;&lt;br /&gt;Snapshot is an object used to dynamically replicate data  between distribute database at specified time intervals.  In ver 7.0 they are read only. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the various type of snapshots? &lt;/b&gt;&lt;br /&gt;Simple and Complex.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Describe two phases of Two-phase commit ? &lt;/b&gt;&lt;br /&gt;Prepare phase - The global coordinator (initiating node)  ask a participants to prepare (to promise to commit or  rollback the transaction, even if there is a failure)  Commit - Phase - If all participants respond to the  coordinator that they are prepared, the coordinator asks  all nodes to commit the transaction, if all participants  cannot prepare, the coordinator asks all nodes to roll  back the transaction. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is snapshot log ? &lt;/b&gt;&lt;br /&gt;It is a table that maintains a record of modifications  to the master table in a snapshot. It is stored in the  same database as master table and is only available for  simple snapshots. It should be created before creating  snapshots. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the benefits of distributed options in  databases? &lt;/b&gt;&lt;br /&gt;Database on other servers can be updated and those  transactions can be grouped together with others in a  logical unit.&lt;br /&gt;Database uses a two phase commit. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the options available to refresh snapshots ? &lt;/b&gt;&lt;br /&gt;COMPLETE - Tables are completely regenerated using the  snapshots query and the master tables every time the  snapshot referenced.&lt;br /&gt;FAST - If simple snapshot used then a snapshot log can  be used to send the changes to the snapshot tables.&lt;br /&gt;FORCE - Default value. If possible it performs a FAST  refresh; Otherwise it will perform a complete refresh. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a SNAPSHOT LOG ?&lt;/b&gt;&lt;br /&gt;A snapshot log is a table in the master database that is  associated with the master table. ORACLE uses a snapshot  log to track the rows that have been updated in the  master table. Snapshot logs are used in updating the  snapshots based on the master table. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Distributed database ? &lt;/b&gt;&lt;br /&gt;A distributed database is a network of databases managed  by multiple database servers that appears to a user as  single logical database. The data of all databases in  the distributed database can be simultaneously accessed  and modified. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can we reduce the network traffic? &lt;/b&gt;&lt;br /&gt;- Replication of data in distributed environment.&lt;br /&gt;- Using snapshots to replicate data.&lt;br /&gt;- Using remote procedure calls. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Differentiate simple and complex, snapshots ? &lt;/b&gt;&lt;br /&gt;- A simple snapshot is based on a query that does not  contains GROUP BY clauses, CONNECT BY clauses, JOINs,  sub-query or snashot of operations.&lt;br /&gt;- A complex snapshots contain atleast any one of the  above. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the Built-ins used for sending Parameters to  forms? &lt;/b&gt;&lt;br /&gt;You can pass parameter values to a form when an  application executes the call_form, New_form, Open_form  or Run_product. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can you have more than one content canvas view attached  with a window? &lt;/b&gt;&lt;br /&gt;Yes. Each window you create must have atleast one  content canvas view assigned to it. You can also create  a window that has manipulated content canvas view. At  run time only one of the content canvas views assign to  a window is displayed at a time.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Is the After report trigger fired if the report  execution fails? &lt;/b&gt;&lt;br /&gt;Yes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Does a Before form trigger fire when the parameter form  is suppressed? &lt;/b&gt;&lt;br /&gt;Yes.&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-9177960256679996922?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/9177960256679996922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/9177960256679996922'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/05/oracle-part-ii-interview-question-and.html' title='Oracle (Part II) Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-7982549578133662785</id><published>2010-04-30T03:42:00.000-07:00</published><updated>2010-11-24T03:43:26.979-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part IV) Interview Questions and Answers</title><content type='html'>&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is synchronization and why is it  important?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;With respect to multithreading, synchronization is the capability to  control the access of multiple threads to shared resources. Without  synchronization, it is possible for one thread to modify a shared object  while another thread is in the process of using or updating that  object's value. This often causes dirty data and leads to significant  errors. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are synchronized methods and synchronized statements? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Synchronized methods are methods that are used to control access to a  method or an object. A thread only executes a synchronized method after  it has acquired the lock for the method's object or class. Synchronized  statements are similar to synchronized methods. A synchronized statement  can only be executed after a thread has acquired the lock for the object  or class referenced in the synchronized statement. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are three ways in which a thread can enter the waiting state? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A thread can enter the waiting state by invoking its sleep() method, by  blocking on IO, by unsuccessfully attempting to acquire an object's  lock, or by invoking an object's wait() method. It can also enter the  waiting state by invoking its (deprecated) suspend() method. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can a lock be acquired on a class? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Yes, a lock can be acquired on a class. This lock is acquired on the  class's Class object. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What's new with the stop(), suspend() and resume() methods in JDK  1.2? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The stop(), suspend() and resume() methods have been deprecated in JDK  1.2. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the preferred size of a component? &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  The preferred size of a component is the minimum component size that  will allow the component to display normally. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What's the difference between J2SDK 1.5 and J2SDK 5.0? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;There's no difference, Sun Microsystems just re-branded this version. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What would you use to compare two String variables - the operator ==  or the method equals()? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;I'd use the method equals() to compare the values of the Strings and the  == to check if two variables point at the same instance of a String  object.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is thread?&lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;A thread is an independent path of execution in a system. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is multi-threading? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Multi-threading means various threads that run in a system. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How does multi-threading take place on a computer with a single CPU? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The operating system's task scheduler allocates execution time to  multiple tasks. By quickly switching between executing tasks, it creates  the impression that tasks execute sequentially. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How to create a thread in a program? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;You have two ways to do so. First, making your class "extends" Thread  class. Second, making your class "implements" Runnable interface. Put  jobs in a run() method and call start() method to start the thread.  &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can Java object be locked down for exclusive use by a given thread? &lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt; Yes. You can lock an object by putting it in a "synchronized" block. The  locked object is inaccessible to any thread other than the one that  explicitly claimed it. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Can each Java object keep track of all the threads that want to  exclusively access to it?&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;Yes. Use Thread.currentThread() method to track the accessing thread. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Does it matter in what order catch statements for  FileNotFoundException and IOExceptipon are written? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Yes, it does. The FileNoFoundException is inherited from the IOException.  Exception's subclasses have to be caught first. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What invokes a thread's run() method? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;After a thread is started, via its start() method of the Thread class,  the JVM invokes the thread's run() method when the thread is initially  executed.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the purpose of the wait(),  notify(), and notifyAll() methods?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;The wait(),notify(), and notifyAll() methods are used to provide an  efficient way for threads to communicate each other. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are the high-level thread states? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The high-level thread states are ready, running, waiting, and dead.  &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between yielding and sleeping? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;When a task invokes its yield() method, it returns to the ready state.  When a task invokes its sleep() method, it returns to the waiting state. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What happens when a thread cannot acquire a lock on an object? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;If a thread attempts to execute a synchronized method or synchronized  statement and is unable to acquire an object's lock, it enters the  waiting state until the lock becomes available. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between Process and  Thread? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A process can contain multiple threads. In most multithreading operating  systems, a process gets its own memory address space; a thread doesn't. Threads  typically share the heap belonging to their parent process. For instance, a JVM  runs in a single process in the host O/S. Threads in the JVM share the heap  belonging to that process; that's why several threads may access the same  object. Typically, even though they share a common heap, threads have their own  stack space. This is how one thread's invocation of a method is kept separate  from another's. This is all a gross oversimplification, but it's accurate enough  at a high level. Lots of details differ between operating systems. Process vs.  Thread A program vs. similar to a sequential program an run on its own vs.  Cannot run on its own Unit of allocation vs. Unit of execution Have its own  memory space vs. Share with others Each process has one or more threads vs. Each  thread belongs to one process Expensive, need to context switch vs. Cheap, can  use process memory and may not need to context switch More secure. One process  cannot corrupt another process vs. Less secure. A thread can write the memory  used by another thread &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Can an inner class declared inside of a method  access local variables of this method? &lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt;  It's possible if these variables are final. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What can go wrong if you replace &amp;amp;emp;&amp;amp;emp;  with &amp;amp;emp; in the following code: String a=null; if (a!=null &amp;amp;&amp;amp; a.length()&amp;gt;10)  {...} &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A single ampersand here would lead to a NullPointerException.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the Vector class? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Vector class provides the capability to implement a  growable array of objects &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What modifiers may be used with an inner class  that is a member of an outer class? &lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;A (non-local) inner class may be declared as  public, protected, private, static, final, or abstract. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;If a method is declared as protected, where may  the method be accessed? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A protected method may only be accessed by classes or interfaces of the  same package or by subclasses of the class in which it is declared. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is an Iterator interface? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;The Iterator interface is used to step through the elements of a  Collection. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How many bits are used to represent Unicode,  ASCII, UTF-16, and UTF-8 characters? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII  character set uses only 7 bits, it is usually represented as 8 bits. UTF-8  represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and  larger bit patterns. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What's the main difference between a Vector and  an ArrayList? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Java Vector class is internally synchronized and ArrayList is not. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are wrapped classes? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Wrapped classes are classes that allow primitive types to be accessed as  objects. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Does garbage collection guarantee that a  program will not run out of memory? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;No, it doesn't. It is possible for programs to use up memory resources  faster than they are garbage collected. It is also possible for programs to  create objects that are not subject to garbage collection. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What is the difference between preemptive  scheduling and time slicing? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Under preemptive scheduling, the highest priority task executes until it  enters the waiting or dead states or a higher priority task comes into  existence. Under time slicing, a task executes for a predefined slice of time  and then reenters the pool of ready tasks. The scheduler then determines which  task should execute next, based on priority and other factors.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-7982549578133662785?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/7982549578133662785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/7982549578133662785'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/04/core-java-part-iv-interview-questions.html' title='Core Java (Part IV) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-6951451056973397733</id><published>2010-04-24T03:40:00.000-07:00</published><updated>2010-11-24T03:41:16.113-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='core java'/><title type='text'>Core Java (Part III) Interview Questions and Answers</title><content type='html'>&lt;div style="color: black;"&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b&gt;&lt;span class="style54"&gt;What&amp;nbsp; is Java?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;Java is an object-oriented programming language developed initially by  James Gosling and colleagues at Sun Microsystems. The language,  initially called Oak (named after the oak trees outside Gosling's  office), was intended to replace C++, although the feature set better  resembles that of Objective C. Java should not be confused with  JavaScript, which shares only the name and a similar C-like syntax. Sun  Microsystems currently maintains and updates Java regularly. &lt;/span&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue"&gt;&lt;/span&gt; &lt;b&gt;What does a well-written OO program look like? &lt;/b&gt; &lt;br /&gt;&lt;span class="answers"&gt;A well-written OO program exhibits recurring structures that promote  abstraction, flexibility, modularity and elegance. &lt;/span&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;Can you have virtual functions in Java?&lt;/b&gt;&lt;b class="for_questions_blue"&gt;&lt;b class="style54"&gt; &lt;/b&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Yes, all functions in Java are virtual by default. This is actually a  pseudo trick question because the word "virtual" is not part of the  naming convention in Java (as it is in C++, C-sharp and VB.NET), so this  would be a foreign concept for someone who has only coded in Java.  Virtual functions or virtual methods are functions or methods that will  be redefined in derived classes. &lt;/span&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Jack developed a program by using a Map container to hold key/value  pairs. He wanted to make a change to the map. He decided to make a clone  of the map in order to save the original data on side. What do you think  of it? ? &lt;/b&gt; &lt;/span&gt;&lt;span class="style54"&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class="answers"&gt;If Jack made a clone of the map, any changes to the clone or the  original map would be seen on both maps, because the clone of Map is a  shallow copy. So Jack made a wrong decision. &lt;/span&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is more advisable to create a thread, by implementing a Runnable  interface or by extending Thread class? &lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;  Strategically speaking, threads created by implementing Runnable  interface are more advisable. If you create a thread by extending a  thread class, you cannot extend any other class. If you create a thread  by implementing Runnable interface, you save a space for your class to  extend another class now or in future. &lt;/span&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is NullPointerException and how to handle it? &lt;/b&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="answers"&gt;When an object is not initialized, the default value is null. When the  following things happen, the NullPointerException is thrown: &lt;br /&gt;--Calling the instance method of a null object.&lt;br /&gt;--Accessing or modifying the field of a null object.&lt;br /&gt;--Taking the length of a null as if it were an array.&lt;br /&gt;--Accessing or modifying the slots of null as if it were an array.&lt;br /&gt;--Throwing null as if it were a Throwable value.&lt;br /&gt;The NullPointerException is a runtime exception. The best practice is to  catch such exception even if it is not required by language design.  &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue" style="color: black;"&gt; &lt;b&gt;An application needs to load a library before it starts to run, how  to code?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;One option is to use a static block to load a library before anything is  called. For example, &lt;br /&gt;class Test { &lt;br /&gt;static {&lt;br /&gt;System.loadLibrary("path-to-library-file");&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;....&lt;br /&gt;} &lt;br /&gt;When you call new Test(), the static block will be called first before  any initialization happens. Note that the static block position may  matter. &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;How could Java classes direct program messages to the system console,  but error messages, say to a file?&lt;/b&gt;&lt;b class="style54"&gt; &lt;br /&gt;&lt;/b&gt;&lt;span class="answers"&gt;  The class System has a variable out that represents the standard output,  and the variable err that represents the standard error device. By  default, they both point at the system console. This how the standard  output could be re-directed: &lt;br /&gt;Stream st = new Stream(new FileOutputStream("output.txt"));  System.setErr(st); System.setOut(st);&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue" style="color: black;"&gt; &lt;b&gt;What's the difference between an interface and an abstract class? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;An abstract class may contain code in method bodies, which is not  allowed in an interface. With abstract classes, you have to inherit your  class from it and Java does not allow multiple inheritance. On the other  hand, you can implement multiple interfaces in your class. &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue" style="color: black;"&gt; &lt;b&gt;Name the containers which uses Border Layout as their default layout? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Containers which uses Border Layout as their default are: window, Frame  and Dialog classes. &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue" style="color: black;"&gt; &lt;b&gt;What do you understand by Synchronization? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Synchronization is a process of controlling the access of shared  resources by the multiple threads in such a manner that only one thread  can access one resource at a time. In non synchronized multithreaded  application, it is possible for one thread to modify a shared object  while another thread is in the process of using or updating the object's  value.&lt;br /&gt;Synchronization prevents such type of data corruption.&lt;br /&gt;E.g. Synchronizing a function:&lt;br /&gt;public synchronized void Method1 () {&lt;br /&gt;// Appropriate method-related code. &lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;E.g. Synchronizing a block of code inside a function:&lt;br /&gt;public myFunction (){&lt;br /&gt;synchronized (this) { &lt;br /&gt;// Synchronized code here.&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;}&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;What is Collection API ?&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;The Collection API is a set of classes and interfaces that  support operation on collections of objects. These classes and  interfaces are more flexible, more powerful, and more regular than the  vectors, arrays, and hashtables if effectively replaces. &lt;br /&gt;Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and  TreeMap.&lt;br /&gt;Example of interfaces: Collection, Set, List and Map.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;Is Iterator a Class or Interface? What is its use? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Answer: Iterator is an interface which is used to step through the  elements of a Collection. &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;What is similarities/difference between an Abstract class and  Interface? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Differences are as follows: &lt;br /&gt;Interfaces provide a form of multiple inheritance. A class can extend  only one other class. Interfaces are limited to public methods and  constants with no implementation. Abstract classes can have a partial  implementation, protected parts, static methods, etc. &lt;br /&gt;A Class may implement several interfaces. But in case of abstract class,  a class may extend only one abstract class. Interfaces are slow as it  requires extra indirection to to find corresponding method in in the  actual class. Abstract classes are fast. &lt;br /&gt;Similarities: &lt;br /&gt;&lt;br /&gt;Neither Abstract classes or Interface can be instantiated. &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Java Interview Questions - How to define an Abstract class?&lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;A class containing abstract method is called Abstract class. An Abstract  class can't be instantiated.&lt;br /&gt;Example of Abstract class:&lt;br /&gt;abstract class testAbstractClass {&lt;br /&gt;protected String myString; &lt;br /&gt;public String getMyString() { &lt;br /&gt;return myString; &lt;br /&gt;} &lt;br /&gt;public abstract string anyAbstractFunction();&lt;br /&gt;} &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;How to define an Interface in Java ? &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  In Java Interface defines the methods but does not implement them.  Interface can include constants. A class that implements the interfaces  is bound to implement all the methods defined in Interface.&lt;br /&gt;Emaple of Interface:&lt;br /&gt;&lt;br /&gt;public interface sampleInterface {&lt;br /&gt;public void functionOne();&lt;br /&gt;&lt;br /&gt;public long CONSTANT_ONE = 1000; &lt;br /&gt;&lt;/span&gt;}&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;If a class is located in a package, what do you need to change in the  OS environment to be able to use it? &lt;/b&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span class="answers"&gt;You need to add a directory or a jar file that contains the package  directories to the CLASSPATH environment variable. Let's say a class  Employee belongs to a package com.xyz.hr; and is located in the file  c:\dev\com\xyz\hr\Employee.java. In this case, you'd need to add c:\dev  to the variable CLASSPATH. If this class contains the method main(), you  could test it from a command prompt window as follows:&lt;br /&gt;c:\&amp;gt;java com.xyz.hr.Employee &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;How many methods in the Serializable interface? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;There is no method in the Serializable interface. The Serializable  interface acts as a marker, telling the object serialization tools that  your class is serializable. &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;How many methods in the Externalizable interface? &lt;br /&gt;&lt;/b&gt; &lt;span class="answers"&gt;  There are two methods in the Externalizable interface. You have to  implement these two methods in order to make your class externalizable.  These two methods are readExternal() and writeExternal(). &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between Serializalble and Externalizable  interface? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;When you use Serializable interface, your class is serialized  automatically by default. But you can override writeObject() and  readObject() two methods to control more complex object serailization  process. When you use Externalizable interface, you have a complete  control over your class's serialization process.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b class="for_questions_blue"&gt;What is a transient variable in Java? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;A transient variable is a variable that may not be serialized. If you  don't want some field to be serialized, you can mark that field  transient or static.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which containers use a border layout as their default layout?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;The Window, Frame and Dialog classes use a border layout as their  default layout.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How are Observer and Observable used?  &lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;Objects that subclass the Observable class maintain a list of observers.  When an Observable object is updated, it invokes the update() method of  each of its observers to notify the observers that it has changed state.  The Observer interface is implemented by objects that observe Observable  objects.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-6951451056973397733?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6951451056973397733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6951451056973397733'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/11/core-java-part-iii-interview-questions.html' title='Core Java (Part III) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-5385452898402819755</id><published>2010-04-10T04:00:00.000-07:00</published><updated>2010-11-24T04:02:00.630-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle (Part I) Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;b&gt; &lt;span class="for_questions_blue"&gt;What are the components of physical database  structure of Oracle database?&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;Oracle database is comprised of three types of files.  One or more datafiles, two are more redo log files, and  one or more control files. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the components of logical database structure of  Oracle database?  &lt;/b&gt;&lt;br /&gt;There are tablespaces and database's schema objects. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a tablespace?   &lt;/b&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;A database is divided into Logical Storage Unit called  tablespaces. A tablespace is used to grouped related  logical structures together. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is SYSTEM tablespace and when is it created?   &lt;/b&gt; &lt;br /&gt;Every Oracle database contains a tablespace named  SYSTEM, which is automatically created when the database  is created. The SYSTEM tablespace always contains the  data dictionary tables for the entire database. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain the relationship among database, tablespace and  data file ?&lt;/b&gt;&lt;br /&gt;Each databases logically divided into one or more  tablespaces one or more data files are explicitly  created for each tablespace. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is schema?  &lt;/b&gt;&lt;br /&gt;A schema is collection of database objects of a user. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are Schema Objects?   &lt;/b&gt;&lt;br /&gt;Schema objects are the logical structures that directly  refer to the database's data. Schema objects include  tables, views, sequences, synonyms, indexes, clusters,  database triggers, procedures, functions packages and  database links. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can objects of the same schema reside in different  tablespaces?  &lt;/b&gt;&lt;br /&gt;Yes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can a tablespace hold objects from different schemes? &lt;/b&gt;&lt;br /&gt;Yes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Oracle table?   &lt;/b&gt;&lt;br /&gt;A table is the basic unit of data storage in an Oracle  database. The tables of a database hold all of the user  accessible data. Table data is stored in rows and  columns. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Oracle view?   &lt;/b&gt;&lt;br /&gt;A view is a virtual table. Every view has a query  attached to it. (The query is a SELECT statement that  identifies the columns and rows of the table(s) the view  uses.)&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt; What is Partial Backup ?   &lt;/b&gt;&lt;br /&gt;A Partial Backup is any operating system backup short of  a full backup, taken while the database is open or shut  down. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Mirrored on-line Redo Log ?&lt;/b&gt;&lt;/div&gt;&lt;div class="answers"&gt; A mirrored on-line redo log consists of copies of  on-line redo log files physically located on separate  disks, changes made to one member of the group are made  to all members. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What is Full Backup ?   &lt;/b&gt;&lt;br /&gt;A full backup is an operating system backup of all data  files, on-line redo log files and control file that  constitute ORACLE database and the parameter. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Can a View based on another View ?   &lt;/b&gt;&lt;br /&gt;Yes. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Can a Tablespace hold objects from different Schemes ?  &lt;/b&gt;&lt;br /&gt;Yes. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Can objects of the same Schema reside in different  tablespace ?  &lt;/b&gt;&lt;br /&gt;Yes. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What is the use of Control File ?   &lt;/b&gt;&lt;br /&gt;When an instance of an ORACLE database is started, its  control file is used to identify the database and redo  log files that must be opened for database operation to  proceed. It is also used in database recovery. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;Do View contain Data ?   &lt;/b&gt;&lt;br /&gt;Views do not contain or store data. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the Referential actions supported by FOREIGN  KEY integrity constraint ?  &lt;/b&gt;&lt;br /&gt;UPDATE and DELETE Restrict - A referential integrity  rule that disallows the update or deletion of referenced  data. DELETE Cascade - When a referenced row is deleted  all associated dependent rows are deleted. &lt;/div&gt;&lt;div class="answers"&gt; &lt;b class="for_questions_blue"&gt;What are the type of Synonyms? &lt;/b&gt;&lt;br /&gt;There are two types of Synonyms Private and Public.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt; What is a Redo Log ? &lt;/b&gt;&lt;br /&gt;The set of Redo Log files YSDATE,UID,USER or USERENV SQL  functions, or the pseudo columns LEVEL or ROWNUM. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Index Segment ?   &lt;/b&gt;&lt;br /&gt;Each Index has an Index segment that stores all of its  data. &lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain the relationship among Database, Tablespace and  Data file?  &lt;/b&gt;&lt;br /&gt;Each databases logically divided into one or more  tablespaces one or more data files are explicitly  created for each tablespace &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different type of Segments ?   &lt;/b&gt;&lt;br /&gt;Data Segment, Index Segment, Rollback Segment and  Temporary Segment. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are Clusters ?  &lt;/b&gt;&lt;br /&gt;Clusters are groups of one or more tables physically  stores together to share common columns and are often  used together. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Integrity Constrains ? &lt;/b&gt;&lt;br /&gt;An integrity constraint is a declarative way to define a  business rule for a column of a table. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Index ?  &lt;/b&gt;&lt;br /&gt;An Index is an optional structure associated with a  table to have direct access to rows, which can be  created to increase the performance of data retrieval.  Index can be created on one or more columns of a table. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Extent ?  &lt;/b&gt;&lt;br /&gt;An Extent is a specific number of contiguous data  blocks, obtained in a single allocation, and used to  store a specific type of information. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a View ?  &lt;/b&gt;&lt;br /&gt;A view is a virtual table. Every view has a Query  attached to it. (The Query is a SELECT statement that  identifies the columns and rows of the table(s) the view  uses.) &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Table ?  &lt;/b&gt;&lt;br /&gt;A table is the basic unit of data storage in an ORACLE  database. The tables of a database hold all of the user  accessible data. Table data is stored in rows and  columns.&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;Can a view based on another view?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;Yes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the advantages of views? &lt;/b&gt;&lt;br /&gt;- Provide an additional level of table security, by  restricting access to a predetermined set of rows and  columns of a table.&lt;br /&gt;- Hide data complexity.&lt;br /&gt;- Simplify commands for the user.&lt;br /&gt;- Present the data in a different perspective from that  of the base table.&lt;br /&gt;- Store complex queries. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Oracle sequence? &lt;/b&gt;&lt;br /&gt;A sequence generates a serial list of unique numbers for  numerical columns of a database's tables. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a synonym? &lt;/b&gt;&lt;br /&gt;A synonym is an alias for a table, view, sequence or  program unit. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the types of synonyms? &lt;/b&gt;&lt;br /&gt;There are two types of synonyms private and public. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a private synonym? &lt;/b&gt;&lt;br /&gt;Only its owner can access a private synonym. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a public synonym? &lt;/b&gt;&lt;br /&gt;Any database user can access a public synonym. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are synonyms used for? &lt;/b&gt;&lt;br /&gt;- Mask the real name and owner of an object.&lt;br /&gt;- Provide public access to an object&lt;br /&gt;- Provide location transparency for tables, views or  program units of a remote database.&lt;br /&gt;- Simplify the SQL statements for database users. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Oracle index? &lt;/b&gt;&lt;br /&gt;An index is an optional structure associated with a  table to have direct access to rows, which can be  created to increase the performance of data retrieval.  Index can be created on one or more columns of a table. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How are the index updates? &lt;/b&gt;&lt;br /&gt;Indexes are automatically maintained and used by Oracle.  Changes to table data are automatically incorporated  into all relevant indexes.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Tablespace? &lt;/b&gt;&lt;br /&gt;A database is divided into Logical Storage Unit called  tablespace. A tablespace is used to grouped related  logical structures together &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Rollback Segment ? &lt;/b&gt;&lt;br /&gt;A Database contains one or more Rollback Segments to  temporarily store "undo" information. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the Characteristics of Data Files ? &lt;/b&gt;&lt;br /&gt;A data file can be associated with only one database.  Once created a data file can't change size. One or more  data files form a logical unit of database storage  called a tablespace. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How to define Data Block size ? &lt;/b&gt;&lt;br /&gt;A data block size is specified for each ORACLE database  when the database is created. A database users and  allocated free database space in ORACLE data blocks.  Block size is specified in INIT.ORA file and can’t be  changed latter. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What does a Control file Contain ? &lt;/b&gt;&lt;br /&gt;A Control file records the physical structure of the  database. It contains the following information. &lt;br /&gt;Database Name&lt;br /&gt;Names and locations of a database's files and redolog  files.&lt;br /&gt;Time stamp of database creation. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is difference between UNIQUE constraint and PRIMARY  KEY constraint ? &lt;/b&gt;&lt;/div&gt;&lt;div class="answers"&gt;A column defined as UNIQUE can contain Nulls while a  column defined as PRIMARY KEY can't contain Nulls. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Index Cluster ? &lt;/b&gt;&lt;br /&gt;A Cluster with an index on the Cluster Key &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;When does a Transaction end ? &lt;/b&gt;&lt;br /&gt;When it is committed or Rollbacked. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the effect of setting the value "ALL_ROWS" for  OPTIMIZER_GOAL parameter of the ALTER SESSION command ?  What are the factors that affect OPTIMIZER in choosing  an Optimization approach ? &lt;/b&gt;&lt;br /&gt;Answer The OPTIMIZER_MODE initialization parameter  Statistics in the Data Dictionary the OPTIMIZER_GOAL  parameter of the ALTER SESSION command hints in the  statement. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the effect of setting the value "CHOOSE" for  OPTIMIZER_GOAL, parameter of the ALTER SESSION Command ? &lt;/b&gt;&lt;br /&gt;The Optimizer chooses Cost_based approach and optimizes  with the goal of best throughput if statistics for  atleast one of the tables accessed by the SQL statement  exist in the data dictionary. Otherwise the OPTIMIZER  chooses RULE_based approach.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one create a new database? (for DBA) &lt;/b&gt;&lt;br /&gt;One can create and modify Oracle databases using the  Oracle "dbca" (Database Configuration Assistant)  utility. The dbca utility is located in the $ORACLE_HOME/bin  directory. The Oracle Universal Installer (oui) normally  starts it after installing the database server software. &lt;br /&gt;One can also create databases manually using scripts.  This option, however, is falling out of fashion, as it  is quite involved and error prone. Look at this example  for creating and Oracle 9i database: &lt;br /&gt;CONNECT SYS AS SYSDBA&lt;br /&gt;ALTER SYSTEM SET DB_CREATE_FILE_DEST='/u01/oradata/';&lt;br /&gt;ALTER SYSTEM SET DB_CREATE_ONLINE_LOG_DEST_1='/u02/oradata/';&lt;br /&gt;ALTER SYSTEM SET DB_CREATE_ONLINE_LOG_DEST_2='/u03/oradata/';&lt;br /&gt;CREATE DATABASE;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What database block size should I use? (for DBA) &lt;/b&gt; &lt;br /&gt;Oracle recommends that your database block size match,  or be multiples of your operating system block size. One  can use smaller block sizes, but the performance cost is  significant. Your choice should depend on the type of  application you are running. If you have many small  transactions as with OLTP, use a smaller block size.  With fewer but larger transactions, as with a DSS  application, use a larger block size. If you are using a  volume manager, consider your "operating system block  size" to be 8K. This is because volume manager products  use 8K blocks (and this is not configurable). &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different approaches used by Optimizer in  choosing an execution plan ? &lt;/b&gt;&lt;br /&gt;Rule-based and Cost-based. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What does ROLLBACK do ? &lt;/b&gt;&lt;br /&gt;ROLLBACK retracts any of the changes resulting from the  SQL statements in the transaction. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one coalesce free space ? (for DBA) &lt;/b&gt;&lt;br /&gt;SMON coalesces free space (extents) into larger,  contiguous extents every 2 hours and even then, only for  a short period of time. &lt;br /&gt;SMON will not coalesce free space if a tablespace's  default storage parameter "pctincrease" is set to 0.  With Oracle 7.3 one can manually coalesce a tablespace  using the ALTER TABLESPACE ... COALESCE; command, until  then use:&lt;br /&gt;SQL&amp;gt; alter session set events 'immediate trace name  coalesce level n';&lt;br /&gt;Where 'n' is the tablespace number you get from SELECT  TS#, NAME FROM SYS.TS$; &lt;br /&gt;You can get status information about this process by  selecting from the SYS.DBA_FREE_SPACE_COALESCED  dictionary view. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one prevent tablespace fragmentation? (for DBA) &lt;/b&gt;&lt;br /&gt;Always set PCTINCREASE to 0 or 100.&lt;br /&gt;Bizarre values for PCTINCREASE will contribute to  fragmentation. For example if you set PCTINCREASE to 1  you will see that your extents are going to have weird  and wacky sizes: 100K, 100K, 101K, 102K, etc. Such  extents of bizarre size are rarely re-used in their  entirety. PCTINCREASE of 0 or 100 gives you nice round  extent sizes that can easily be reused. E.g.. 100K, 100K,  200K, 400K, etc. &lt;br /&gt;&lt;br /&gt;Use the same extent size for all the segments in a given  tablespace. Locally Managed tablespaces (available from  8i onwards) with uniform extent sizes virtually  eliminates any tablespace fragmentation. Note that the  number of extents per segment does not cause any  performance issue anymore, unless they run into  thousands and thousands where additional I/O may be  required to fetch the additional blocks where extent  maps of the segment are stored. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Where can one find the high water mark for a table? (for  DBA) &lt;/b&gt;&lt;br /&gt;There is no single system table, which contains the high  water mark (HWM) for a table. A table's HWM can be  calculated using the results from the following SQL  statements: &lt;br /&gt;SELECT BLOCKS&lt;br /&gt;FROM DBA_SEGMENTS&lt;br /&gt;WHERE OWNER=UPPER(owner) AND SEGMENT_NAME = UPPER(table);&lt;br /&gt;ANALYZE TABLE owner.table ESTIMATE STATISTICS;&lt;br /&gt;SELECT EMPTY_BLOCKS&lt;br /&gt;FROM DBA_TABLES&lt;br /&gt;WHERE OWNER=UPPER(owner) AND SEGMENT_NAME = UPPER(table);&lt;br /&gt;Thus, the tables' HWM = (query result 1) - (query result  2) - 1 &lt;br /&gt;NOTE: You can also use the DBMS_SPACE package and  calculate the HWM = TOTAL_BLOCKS - UNUSED_BLOCKS - 1. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is COST-based approach to optimization ? &lt;/b&gt;&lt;br /&gt;Considering available access paths and determining the  most efficient execution plan based on statistics in the  data dictionary for the tables accessed by the statement  and their associated clusters and indexes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What does COMMIT do ? &lt;/b&gt;&lt;br /&gt;COMMIT makes permanent the changes resulting from all  SQL statements in the transaction. The changes made by  the SQL statements of a transaction become visible to  other user sessions transactions that start only after  transaction is committed. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How are extents allocated to a segment? (for DBA) &lt;/b&gt; &lt;br /&gt;Oracle8 and above rounds off extents to a multiple of 5  blocks when more than 5 blocks are requested. If one  requests 16K or 2 blocks (assuming a 8K block size),  Oracle doesn't round it up to 5 blocks, but it allocates  2 blocks or 16K as requested. If one asks for 8 blocks,  Oracle will round it up to 10 blocks. &lt;br /&gt;Space allocation also depends upon the size of  contiguous free space available. If one asks for 8  blocks and Oracle finds a contiguous free space that is  exactly 8 blocks, it would give it you. If it were 9  blocks, Oracle would also give it to you. Clearly Oracle  doesn't always round extents to a multiple of 5 blocks. &lt;br /&gt;The exception to this rule is locally managed  tablespaces. If a tablespace is created with local  extent management and the extent size is 64K, then  Oracle allocates 64K or 8 blocks assuming 8K-block size.  Oracle doesn't round it up to the multiple of 5 when a  tablespace is locally managed. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can one rename a database user (schema)? (for DBA) &lt;/b&gt; &lt;br /&gt;No, this is listed as Enhancement Request 158508.  Workaround: &lt;br /&gt;Do a user-level export of user A&lt;br /&gt;create new user B&lt;br /&gt;Import system/manager fromuser=A touser=B&lt;br /&gt;Drop user A&lt;/div&gt;&lt;div class="answers"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-5385452898402819755?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5385452898402819755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5385452898402819755'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/04/oracle-part-i-interview-question-and.html' title='Oracle (Part I) Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-3926550244922684307</id><published>2010-03-27T02:23:00.000-07:00</published><updated>2010-03-27T02:23:52.571-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bluetooth'/><title type='text'>Bluetooth (Part-III) Interview Questions and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Under what frequency range  does Bluetooth work?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;2.45 GHz is the frequency range.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the frequency range  used for Bluetooth in Europe and United States?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;2402 MHz to 2480 MHz are the frequency ranges used in USA and Europe&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the frequency range  used for Bluetooth in Japan?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;2472 to 2497 MHz is the frequency range used for Bluetooth in Japan.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Piconet?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;A collection of devices connected through Bluetooth technology in an ad hoc  fashion.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a Bluetooth dongle?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;A device that hangs outside of a computer, or phone to provide Bluetooth  connection.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Why can Bluetooth equipment  integrate easily in TCP/IP network?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Because Bluetooth uses wireless LAN standards IEEE for data transmission.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which method is used for  Data transfer?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Asynchronous Connectionless (ACL) is Data transfer method in Bluetooth&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Give a generic description  of Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth is a low-cost, short-range (RF) links between mobile PCs, mobile  phones and other portable devices. Bluetooth can transmit through solid,  non-metal objects.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How does Bluetooth use  frequency hopping for security?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth picks a random frequency out of 79 and then hops around the range  about 1600 times per second.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Why is Bluetooth called a  cable replacement technology?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth technology allows the creation of Personal Area Networks without  cables or wires that are usual in home networks.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is FCC and how does it  relate to Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;FCC is Federal Communication Commission, which issues licenses to the stations  for specific frequencies. It also decides who is able to use which frequency for  what purpose. Since Bluetooth is using unlicensed spectrum, FCC has no direct  involvement with Bluetooth&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is FEC in Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Forward Error Correction is a method by which Bluetooth increases its noise  immunity. FEC is a method that enables a receiver to not only detect, but also  correct errors in a transmission.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Airport?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Airport is a wireless communications system, like Bluetooth. It is based on the  IEEE 802.11 recommendation. It also uses 2.4 GHz frequency band, but its range  is about 45 meters and it boasts a transmission speed of 11 Mbit/second. It is  developed by Lucent Technologies.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which technology is used in  Bluetooth for avoiding interference?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Frequency hopping is the technology used in Bluetooth.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How many SCO links are there  in a piconet?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;In a piconet, there can be up to three SCO links of 64,000 bits per second each.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which Bluetooth version uses  adaptive frequency hopping? Why?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;In Version 1.2 Adaptive frequency hopping method is used, which improves  resistance to radio interference, and provides higher transmission speed.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Is it possible to connect  multiple Bluetooth hubs?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;No, only one hub can be used at a time with a computer. USB or Serial devices  can be added.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;List some Technology  characteristic of Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Omni directional, Adaptive output power to minimize interference, Support  Synchronous &amp;amp; asynchronous services, Fast Frequency Hopping to avoid  interference, Short data packets to maximize capacity during interface.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which method is primarily  used for Voice transfer?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Synchronous Connection Oriented (SCO) is a method primarily used for Voice  transfer.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the strength of the  signal transmitted by powerful cell phones?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The powerful cell phones can transmit a signal of 3 watts.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the other  (competing or not) wireless technologies?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Wi-Fi, IrDa, EDGE, UWB (Ultra Wide Band)&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-3926550244922684307?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3926550244922684307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3926550244922684307'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/bluetooth-part-iii-interview-questions.html' title='Bluetooth (Part-III) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-2463350548185546235</id><published>2010-03-27T02:21:00.000-07:00</published><updated>2010-03-27T02:24:30.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bluetooth'/><title type='text'>Bluetooth (Part-II) Interview Questions and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What types of companies are  likely to adopt or promote Bluetooth technology?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Companies likely to adopt this technology include, but are not limited to,  software developers, network vendors, silicon vendors, peripheral and camera  manufacturers, mobile PC and handheld device manufacturers, consumer electronics  manufacturers and more.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What companies are involved  in the Bluetooth initiative?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Global technology leaders Ericsson, Nokia, IBM, Intel and Toshiba founded the  Bluetooth SIG in 1998. These companies are now supported by over 1,000 other  organizations with a wide range of expertise, including Widcomm, Inc.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Are different brands of  Bluetooth products compatible?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Yes. They have to. The Bluetooth Logo Certification Program requires Bluetooth  products to interoperate with products manufactured by other vendors; those  products that don’t interoperate will not be allowed to use the Bluetooth logo.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue" style="color: black;"&gt;Is Bluetooth practical for  use with mobile devices?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Yes. One concern for mobile computing users is power consumption. Bluetooth  radios are very low power, drawing as little as 0.3mA in standby mode and 30mA  during sustained data transmissions. Bluetooth radios alternate among  power-saving modes in which device activity is lowered to maximize the mobile  power supply.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What kind of encryption will  be used for Bluetooth security?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The Bluetooth specification 1.0 describes the link encryption algorithm as a  stream cipher using 4 LFSR (linear feedback shift registers). The sum of the  width of the LFSRs is 128, and the spec says “the effective key length is  selectable between 8 and 128 bits”. This arrangement allows Bluetooth to be used  in countries with regulations limiting encryption strength, and “facilitate a  future upgrade path for the security without the need for a costly redesign of  the algorithms and encryption hardware” according to the Bluetooth  specification. Key generation and authentication seems to be using the 8-round  SAFER+ encryption algorithm. The information available suggests that Bluetooth  security will be adequate for most purposes; but users with higher security  requirements will need to employ stronger algorithms to ensure the security of  their data.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the range of  Bluetooth transmitter/receivers?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth is designed for very low power use, and the transmission range will  only be 10m, about 30ft. High-powered Bluetooth devices will enable ranges up to  100m (300ft). Considering the design philosophy behind Bluetooth, even the 10m  range is adequate for the purposes Bluetooth is intended for. Later versions of  the Bluetooth spec may allow longer ranges.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the data throughput  speed of a Bluetooth connection?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth transfers data at a rate of 721 Kbps, which is from three to eight  times the average speed of parallel and serial ports, respectively. This  bandwidth is capable of transmitting voice, data, video and still images&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Will Bluetooth and Wireless  LAN (WLAN) interfere with each other?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;No, both Bluetooth and WLAN can co-exist. Since Bluetooth devices use Frequency  Hopping and most WLANs use Direct Sequence Spreading techniques they each appear  as background noise to the other and should not cause any perceivable  performance issues.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Will other RF (Radio  Frequency) devices interfere with Bluetooth Devices?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;No. Bluetooth radios operate on the unlicensed 2.4 GHz (Industrial, Scientific  and Medical) frequency band that is shared among other devices (microwave ovens,  cordless phones, garage door openers, etc. ). Bluetooth radios switch  frequencies at such a rapid pace (1,600 times per second) and the data packets  are so small that interference from other RF sources is highly unlikely.  Bluetooth is a robust communication system.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Frequency-Hopping  Spread Spectrum (FHSS)?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Frequency-Hopping Spread-Spectrum (FHSS) is a spread spectrum modulation scheme  that uses a narrowband carrier that changes frequency in a pattern known to both  transmitter and receiver. Properly synchronized, they maintain a single logical  channel. To an unintended receiver, FHSS appears as short-duration impulse  noise. More simply, the data is broken down into packets and transmitted to the  receiver of other devices over numerous “hop frequencies” (79 total) in a pseudo  random pattern. Only transmitters and receivers that are synchronized on the  same hop frequency pattern will have access to the transmitted data. The  transmitter switches hop frequencies 1,600 times per second to assure a high  degree of data security&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How secure is a Bluetooth  network?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth is extremely secure in that it employs several layers of data  encryption and user authentication measures. Bluetooth devices use a combination  of the Personal Identification Number (PIN) and a Bluetooth address to identify  other Bluetooth devices. Data encryption (i.e., 128-bit) can be used to further  enhance the degree of Bluetooth security. The transmission scheme (FHSS)  provides another level of security in itself. Instead of transmitting over one  frequency within the 2.4 GHz band, Bluetooth radios use a fast frequency-hopping  spread spectrum (FHSS) technique, allowing only synchronized receivers to access  the transmitted data&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the future direction  of the Bluetooth standard?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;At this time, we anticipate the Bluetooth SIG to evolve the Bluetooth technology  to provide greater bandwidth and distances, thus increasing the potential  platforms and applications used in the emerging personal area networking  marketplace.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How is Bluetooth used?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth can be used to wirelessly synchronize and transfer data among devices.  Bluetooth can be thought of as a cable replacement technology. Typical uses  include automatically synchronizing contact and calendar information among  desktop, notebook and palmtop computers without connecting cables. Bluetooth can  also be used to access a network or the Internet with a notebook computer by  connecting wirelessly to a cellular phone.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Do you Know about OBEX  Protocol?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;IrOBEX (shortly OBEX) is a session protocol developed by the Infrared Data  Association (IrDA) to exchange objects in a simple and spontaneous manner. OBEX,  which provides the same basic functionality as HTTP but in a much lighter  fashion, uses a client-server model and is independent of the transport  mechanism and transport API, provided it realizes a reliable transport base.  Along with the protocol itself, the “grammar” for OBEX conversations between  devices, OBEX also provides a model for representing objects and operations. In  addition, the OBEX protocol defines a folder-listing object, which is used to  browse the contents of folders on remote device. In the first phase, RFCOMM is  used as sole transport layer for OBEX.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Service Discovery  Protocol?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Discovery services are crucial part of the Bluetooth framework. These services  provide the basis for all the usage models. Using SDP, device information,  services and the characteristics of the services can be queried and after that,  a connection between two or more Bluetooth devices can be established. SDP is  defined in the Service Discovery Protocol specification.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Link Manager  Protocol?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The link manager protocol is responsible for link set-up between Bluetooth  devices. This includes setting up of security functions like authentication and  encryption by generating, exchanging and checking of link and encryption keys  and the control and negotiation of baseband packet sizes. Furthermore it  controls the power modes and duty cycles of the Bluetooth radio device, and the  connection states of a Bluetooth unit in a piconet.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Is it possible to connect  multiple Bluetooth hubs?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;No, only one hub can be used at a time with a computer. USB or Serial devices  can be added.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;List some Technology  characteristic of Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Omni directional,&lt;br /&gt;Adaptive output power to minimize interference,&lt;br /&gt;Support Synchronous &amp;amp; asynchronous services,&lt;br /&gt;Fast Frequency Hopping to avoid interference,&lt;br /&gt;Short data packets to maximize capacity during interface.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the total number of  masters and slaves in a piconet?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;1 Master and 7 Slaves.&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-2463350548185546235?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/2463350548185546235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/2463350548185546235'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/bluetooth-part-ii-interview-questions.html' title='Bluetooth (Part-II) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-4367777597713896040</id><published>2010-03-27T02:19:00.000-07:00</published><updated>2010-03-27T02:19:53.116-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bluetooth'/><title type='text'>Bluetooth (Part-I) Interview Questions and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Why is Bluetooth 2.0 better?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The main features of Bluetooth Core Specification Version 2.0 + EDR are:&lt;br /&gt;• 3 times faster transmission speed (up to 10 times in certain cases)&lt;br /&gt;• Lower power consumption through reduced duty cycle&lt;br /&gt;• Simplification of multi-link scenarios due to more available bandwidth&lt;br /&gt;• Backwards compatible to earlier versions&lt;br /&gt;• Further improved BER (Bit Error Rate) performance&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Name few applications of  Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;* Wireless control of and communication between a cell phone and a hands free  headset or car kit. This is the most popular use.&lt;br /&gt;* Wireless networking between PCs in a confined space and where little bandwidth  is required.&lt;br /&gt;* Wireless communications with PC input devices such as mouses and keyboards and  output devices such as printers.&lt;br /&gt;* Transfer of files between devices via OBEX.&lt;br /&gt;* Transfer of contact details, calendar appointments, and reminders between  devices via OBEX.&lt;br /&gt;* Replacement of traditional wired serial communications in test equipment, GPS  receivers and medical equipment.&lt;br /&gt;* For remote controls where infrared was traditionally used.&lt;br /&gt;* Sending small advertisements from Bluetooth enabled advertising hoardings to  other, discoverable, Bluetooth devices.&lt;br /&gt;* Wireless control of a games console, Nintendo’s Wii and Sony’s PlayStation 3  will both use Bluetooth technology for their wireless controllers.&lt;br /&gt;* Sending commands and software to the upcoming LEGO Mindstorms NXT instead of  infra red.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How many devices can  communicate concurrently?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;A Bluetooth device playing the role of the “master” can communicate with up to 7  devices playing the role of the “slave”. This network of “group of up to 8  devices” (1 master + 7 slaves) is called a piconet. A piconet is an ad-hoc  computer network of devices using Bluetooth technology protocols to allow one  master device to interconnect with up to seven active slave devices (because a  three-bit MAC address is used). Up to 255 further slave devices can be inactive,  or parked, which the master device can bring into active status at any time.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Pairing?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Pairs of devices may establish a trusted relationship by learning (by user  input) a shared secret known as a “passkey”. A device that wants to communicate  only with a trusted device can cryptographically authenticate the identity of  the other device. Trusted devices may also encrypt the data that they exchange  over the air so that no one can listen in. The encryption can however be turned  off and passkeys are stored on the device’s file system and not the Bluetooth  chip itself. Since the Bluetooth address is permanent a pairing will be  preserved even if the Bluetooth name is changed. Pairs can be deleted at any  time by either device. Devices will generally require pairing or will prompt the  owner before it allows a remote device to use any or most of its services. Some  devices such as Sony Ericsson phones will usually accept OBEX business cards and  notes without any pairing or prompts. Certain printers and access points will  allow any device to use its services by default much like unsecured Wi-Fi  networks.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How secure a Bluetooth  device is?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth uses the SAFER+ algorithm for authentication and key generation. The  E0 stream cipher is used for encrypting packets. This makes eavesdropping on  Bluetooth-enabled devices more difficult.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Bluetooth SIG?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth Special Interest Group (SIG)&lt;br /&gt;Bluetooth wireless technology is revolutionizing personal connectivity by  providing freedom from wired connections. It is a specification for a small-form  factor, low-cost radio solution providing links between mobile computers, mobile  phones, other portable handheld devices and automobiles, as well as connectivity  to the Internet. The Bluetooth SIG, comprised of leaders in the  telecommunications, computing, automotive and consumer electronics industries,  is driving development of the technology and bringing it to market. The  Bluetooth SIG includes Promoter member companies Agere, Ericsson, IBM, Intel,  Microsoft, Motorola, Nokia and Toshiba, and thousands of Associate and Adopter  member companies. The Bluetooth SIG, Inc. headquarters are located in Overland  Park, Kansas, U.S.A.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the problems with  older versions (1.0 and 1.0 B)?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Versions 1.0 and 1.0 B had numerous problems and the various manufacturers had  great difficulties in making their products interoperable. 1.0 and 1.0B also had  mandatory Bluetooth Hardware Device Address (BD_ADDR) transmission in the  handshaking process, rendering anonymity impossible at a protocol level, which  was a major setback for services planned to be used in Bluetooth environments,  such as Consumerism.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are Different Classes  in Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth is a radio standard and communications protocol primarily designed for  low power consumption, with a short range (power class dependent: 1 meter, 10  meters, 100 meters) based around low-cost transceiver microchip in each device.&lt;br /&gt;&lt;br /&gt;Bluetooth lets these devices communicate with each other when they are in range.  The devices use a radio communications system, so they do not have to be in line  of sight of each other, and can even be in other rooms, so long as the received  power is high enough. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are Bluetooth profiles?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;A profile is a description of how to use a specification to implement a  particular function. The International Standards Organization (ISO) first came  up with the idea of profiles. In Bluetooth, there are several profiles available  and they are arranged in a hierarchical fashion. For example, in order to use  the headset profile, a device must also include the lower level profiles such as  the serial port and general access profiles.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are some of the uses of  Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Depending on the Bluetooth profiles included on the device, Bluetooth technology  has the capability to wirelessly synchronize and transfer data among devices.  The Bluetooth audio capabilities can be used for headset and hands free  applications. The exact functionality provided by a Bluetooth enabled device  depends on the Bluetooth profiles included.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How does Bluetooth fit in  with WiFi?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The 802.11b (WiFi) standard is commonly used for wireless networking. Bluetooth  is not a competitor with 802.11b, but rather a complement to it. While 802.11b  is generally a replacement for wired local area networking, Bluetooth is more  commonly used as a replacement for cables between individual devices. Bluetooth  is designed to link devices within a very short range (up to 33 feet ).  Bluetooth is part of the 802.15 standard.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the history of  Bluetooth?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Bluetooth was initiated by Ericsson, IBM, Intel, Nokia and Toshiba in early  1998. These companies later formed a special interest group known as the  Bluetooth SIG. The Bluetooth 1.0 specifications were released on July 26, 1999,  but the technology has only recently become inexpensive enough for widespread  use.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;What is it - a technology, a  standard, an initiative, or a product?&lt;/span&gt;&lt;br /&gt;Bluetooth wireless technology is a de facto standard, as well as a specification  for small-form factor, low-cost, short range radio links between mobile PCs,  mobile phones and other portable devices. The Bluetooth Special Interest Group  is an industry group consisting of leaders in the telecommunications, computing,  and networking industries that are driving development of the technology and  bringing it to market&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;Is Bluetooth an IEEE  standard, like IEEE 802.11 and Ethernet?&lt;/span&gt;&lt;br /&gt;Being an IEEE standard will be a big plus to widespread adoption of Bluetooth,  and IEEE 802.15 working group for personal area networks (PAN) announced that  they will be adopting Bluetooth as the IEEE 802.15 standard.&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-4367777597713896040?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/4367777597713896040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/4367777597713896040'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/bluetooth-part-i-interview-questions.html' title='Bluetooth (Part-I) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-6212155878208227379</id><published>2010-03-27T02:16:00.000-07:00</published><updated>2010-03-27T02:16:49.065-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><title type='text'>Ajax (Part-III) Interview Questions and Answers</title><content type='html'>&lt;span style="color: black; font-size: small;"&gt;&lt;/span&gt;&lt;div class="KonaBody" style="color: black; font-family: inherit;"&gt;  &lt;span style="font-size: small;"&gt; &lt;b&gt;&lt;span class="style53"&gt;Is the server or the client in control?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="answers"&gt;It depends. With AJAX the answer is more in between.  Control can be more centralized in a server-side  component or as a mix of client-side and server-side  controllers.&lt;br /&gt;&lt;br /&gt;* Centralized server-side controller - When having a  more centralized controller the key is to make sure the  data in client-side page is in sync with that of the  server. Some applications may keep all the state on the  server and push all updates to client DOM via a simple  JavaScript controller.&lt;br /&gt;* Client and server-side controllers - This architecture  would use JavaScript to do all presentation related  control, event processing, page manipulation, and  rendering of model data on the client. The server-side  would be responsible for things such as business logic  and pushing updated model data to the client. In this  case the server would not have intimate knowledge of the  presentation short of the initial page that would be  sent to the client page request.&lt;br /&gt;&lt;br /&gt;There are some use cases where an entire AJAX  application can be written in a single page. Keep in  mind if you choose this type of architecture that  navigation and bookmarking should be considered.&lt;br /&gt;Both methods are viable depending on what you are trying  to accomplish. I tend to prefer spreading the control  across the client and server. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Is Ajax just another name for XMLHttpRequest? &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;No. XMLHttpRequest is only part of the Ajax equation.  XMLHttpRequest is the technical component that makes the  asynchronous server communication possible; Ajax is our  name for the overall approach described in the article,  which relies not only on XMLHttpRequest, but on CSS,  DOM, and other technologies. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;How do I abort the current XMLHttpRequest?&lt;/b&gt;&lt;b class="for_questions_blue"&gt;&lt;b class="style53"&gt; &lt;/b&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Just call the abort() method on the request. &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;What is the minimum version of PHP that needs to be  running in order to use HTML_AJAX?&lt;/b&gt;&lt;b class="for_questions_blue"&gt;&lt;b class="style53"&gt; &lt;/b&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The oldest PHP version i've fully tested HTML_AJAX is  4.3.11, but it should run on 4.2.0 without any problems.  (Testing reports from PHP versions older then 4.3.11  would be appreciated.) &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Why does HTML_AJAX hang on some server installs &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;If you run into an HTML_AJAX problem only on some  servers, chances are your running into a problem with  output compression. If the output compression is handled  in the PHP config we detect that and do the right thing,  but if its done from an apache extension we have no way  of knowing its going to compress the body. Some times  setting HTML_AJAX::sendContentLength to false fixes the  problem, but in other cases you'll need to disabled the  extension for the AJAX pages. &lt;br /&gt;I've also seen problems caused by debugging extensions  like XDebug, disabling the extension on the server page  usually fixes that. Questions dealing with Using  HTML_AJAX, and general JavaScript development &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;How do I get the XMLHttpRequest object?&lt;/b&gt;&lt;b class="for_questions_blue"&gt;&lt;b class="style53"&gt; &lt;/b&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Depending upon the browser... if (window.ActiveXObject)  { // Internet Explorer http_request = new  ActiveXObject("Microsoft.XMLHTTP"); } else if...&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt; Are there any security issues with AJAX?  &lt;/b&gt;&lt;b class="style53"&gt;  &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;JavaScript is in plain view to the user with by  selecting view source of the page. JavaScript can not  access the local filesystem without the user's  permission. An AJAX interaction can only be made with  the servers-side component from which the page was  loaded. A proxy pattern could be used for AJAX  interactions with external services. &lt;br /&gt;You need to be careful not to expose your application  model in such as way that your server-side components  are at risk if a nefarious user to reverse engineer your  application. As with any other web application, consider  using HTTPS to secure the connection when confidential  information is being exchanged. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;What about applets and plugins ?  &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Don't be too quick to dump your plugin or applet based  portions of your application. While AJAX and DHTML can  do drag and drop and other advanced user interfaces  there still limitations especially when it comes to  browser support. Plugins and applets have been around  for a while and have been able to make AJAX like  requests for years. Applets provide a great set of UI  components and APIs that provide developers literally  anything. &lt;br /&gt;Many people disregard applets or plugins because there  is a startup time to initialize the plugin and there is  no guarantee that the needed version of a plugin of JVM  is installed. Plugins and applets may not be as capable  of manipulating the page DOM. If you are in a uniform  environment or can depend on a specific JVM or plugin  version being available (such as in a corporate  environment) a plugin or applet solution is great. &lt;br /&gt;One thing to consider is a mix of AJAX and applets or  plugins. Flickr uses a combination of AJAX interactions/DHTML  for labeling pictures and user interaction and a plugin  for manipulating photos and photo sets to provide a  great user experience. If you design your server-side  components well they can talk to both types of clients. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Why did you feel the need to give this a name?  &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;I needed something shorter than “Asynchronous  JavaScript+CSS+DOM+XMLHttpRequest” to use when  discussing this approach with clients. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Is AJAX code cross browser compatible?&lt;/b&gt;&lt;b class="for_questions_blue"&gt;&lt;b class="style53"&gt; &lt;/b&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Not totally. Most browsers offer a native XMLHttpRequest  JavaScript object, while another one (Internet Explorer)  require you to get it as an ActiveX object.... &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="style53"&gt;Techniques for asynchronous server communication have  been around for years. What makes Ajax a “new” approach?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;What’s new is the prominent use of these techniques in  real-world applications to change the fundamental  interaction model of the Web. Ajax is taking hold now  because these technologies and the industry’s  understanding of how to deploy them most effectively  have taken time to develop. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Is Ajax a technology platform or is it an architectural  style? &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;It’s both. Ajax is a set of technologies being used  together in a particular way.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="KonaBody"&gt;  &lt;span style="font-size: small;"&gt; &lt;b&gt;&lt;span class="style53"&gt;How do I handle the back and forward buttons?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="answers"&gt;While you could go out and create a custom solution that  tracks the current state on your application I recommend  you leave this to the experts. Dojo addresses the  navigation in a browser neutral way as can be seen in  the JavaScript example below. &lt;br /&gt;function updateOnServer(oldId, oldValue, &lt;br /&gt;itemId, itemValue) {&lt;br /&gt;var bindArgs = {&lt;br /&gt;url: "faces/ajax-dlabel-update",&lt;br /&gt;method: "post",&lt;br /&gt;content: {"component-id": itemId, "component-value":&lt;br /&gt;itemValue},&lt;br /&gt;mimetype: "text/xml",&lt;br /&gt;load: function(type, data) {&lt;br /&gt;processUpdateResponse(data);&lt;br /&gt;},&lt;br /&gt;backButton: function() {&lt;br /&gt;alert("old itemid was " + oldId);&lt;br /&gt;},&lt;br /&gt;forwardButton: function(){&lt;br /&gt;alert("forward we must go!");&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;};&lt;br /&gt;dojo.io.bind(bindArgs);&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;The example above will update a value on the server  using dojo.io.bind() with a function as a property that  is responsible for dealing with the browser back button  event. As a developer you are capable of restoring the  value to the oldValue or taking any other action that  you see fit. The underlying details of how the how the  browser button event are detected are hidden from the  developer by Dojo. &lt;br /&gt;AJAX: How to Handle Bookmarks and Back Buttons details  this problem and provides a JavaScript library Really  Simple History framework (RSH) that focuses just on the  back and forward issue. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;How does HTML_AJAX compare with the XAJAX project at  Sourceforge? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;XAJAX uses XML as a transport for data between the  webpage and server, and you don't write your own  javascript data handlers to manipulate the data received  from the server. Instead you use a php class and built  in javascript methods, a combination that works very  similiar to the HTML_AJAX_Action class and haSerializer  combo. XAJAX is designed for simplicity and ease of use. &lt;br /&gt;HTML_AJAX allows for multiple transmission types for  your ajax data - such as urlencoding, json,  phpserialized, plain text, with others planned, and has  a system you can use to write your own serializers to  meet your specific needs. HTML_AJAX has a class to help  generate javascript (HTML_AJAX_Helper) similiar to ruby  on rail's javascript helper (although it isn't  complete), and an action system similiar to XAJAX's  "action pump" that allows you to avoid writing  javascript data handlers if you desire. &lt;br /&gt;But it also has the ability to write your own data  handling routines, automatically register classes and  methods using a server "proxy" script, do different  types of callbacks including grabbing remote urls,  choose between sync and async requests, has iframe  xmlhttprequest emulation fallback capabilities for users  with old browsers or disabled activeX, and is in active  development with more features planned (see the Road Map  for details) &lt;br /&gt;HTML_AJAX has additional features such as client pooling  and priority queues for more advanced users, and even a  javascript utility class. Although you can use HTML_AJAX  the same way you use XAJAX, the additional features make  it more robust, extensible and flexible. And it is a  pear package, you can use the pear installer to both  install and keep it up to date. &lt;br /&gt;If you're asking which is "better" - as with most php  scripts it's a matter of taste and need. Do you need a  quick, simple ajax solution? Or do you want something  that's flexible, extensible, and looking to incorporate  even more great features? It depends on the project, you  as a writer, and your future plans. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;What browsers support AJAX?&lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Internet Explorer 5.0 and up, Opera 7.6 and up, Netscape  7.1 and up, Firefox 1.0 and up, Safari 1.2 and up, among  others.&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;How do I send an image using AJAX?&lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;While it may appear that images are being sent when  using AJAX with an application like Google Maps what is  really happening is that the URLs of images are being  send as the response of an AJAX request and those URLs  are being set using DHTML. &lt;br /&gt;In this example an XML document is returned from an AJAX  interaction and the category bar is populated. &lt;br /&gt;&lt;br /&gt;&amp;lt;categories&amp;gt;&lt;br /&gt;&amp;lt;category&amp;gt;&lt;br /&gt;&amp;lt;cat-id&amp;gt;1&amp;lt;/cat-id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;Books&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;description&amp;gt;Fun to read&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;lt;image-url&amp;gt;books_icon.gif&amp;lt;/image-url&amp;gt;&lt;br /&gt;&amp;lt;/category&amp;gt;&lt;br /&gt;&amp;lt;category&amp;gt;&lt;br /&gt;&amp;lt;cat-id&amp;gt;2&amp;lt;/cat-id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;Electronics&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;description&amp;gt;Must have gadgets&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;lt;image-url&amp;gt;electronics.gif&amp;lt;/image-url&amp;gt;&lt;br /&gt;&amp;lt;/category&amp;gt;&lt;br /&gt;&amp;lt;/categories&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notice that the image-url element contains the location  of the URL for the image representing a category. The  callback method of an AJAX interaction will parse the  response XML document and call the addCategory function  for each category included in the response XML document.  The addCategory function looks up a table row element "categoryTable"  in body of the page and adds a row to the element which  contains the image. &lt;br /&gt;&lt;br /&gt;&amp;lt;scrip type="text/javascript" &amp;gt;&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;function addCategory(id, name, imageSrc) {&lt;br /&gt;&lt;br /&gt;var categoryTable =  document.getElementById("categoryTable");&lt;br /&gt;var row = document.createElement("tr");&lt;br /&gt;var catCell = document.createElement("td");&lt;br /&gt;var img = document.createElement("img");&lt;br /&gt;img.src = ("images\\" + imageSrc);&lt;br /&gt;var link = document.createElement("a");&lt;br /&gt;link.className ="category";&lt;br /&gt;link.appendChild(document.createTextNode(name));&lt;br /&gt;link.setAttribute("onclick", "catalog?command=category&amp;amp;catid="  + id);&lt;br /&gt;catCell.appendChild(img);&lt;br /&gt;catCell.appendChild(link);&lt;br /&gt;row.appendChild(catCell);&lt;br /&gt;categoryTable.appendChild(row);&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&amp;lt;table&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;lt;td width="300" bgoclor="lightGray"&amp;gt;&lt;br /&gt;&amp;lt;table id="categoryTable" border="0" cellpadding="0"&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td id="body" width="100%"&amp;gt;Body Here&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that the source of the image is set to the image  source. The image is loaded by a subsequent HTTP request  for the image at the URL "images/books_icon.gif" or  "images/electronic_icon.gif" that occurs when the img  element is added to the categoryTable.&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Will HTML_AJAX integrate with other Javascript AJAX  libraries such as scriptaculous ? How would this  integration look like?&lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;HTML_AJAX doesn't have specific plans to integrate with  other JavaScript libraries. Part of this is because  external dependencies make for a more complicated  installation process. It might make sense to offer some  optional dependencies on a library like scriptaculous  automatically using its visual effects for the loading  box or something, but there isn't a lot to gain from  making default visuals like that flashier since they are  designed to be easily replaceable.&lt;br /&gt;&lt;br /&gt;Most integration would take place in higher level  components. Its unclear whether higher level components  like that should be part of HTML_AJAX delivered through  PEAR or if they should just be supported by HTML_AJAX  and made available from http://htmlajax.org or some  other site. If your interested in building widgets or  components based on HTML_AJAX please let me know.&lt;br /&gt;&lt;br /&gt;HTML_AJAX does however offer the ability to use its  library loading mechanism with any JavaScript library. I  use scriptaculous in conjunction with HTML_AJAX and I  load both libraries through the server.&lt;br /&gt;&lt;br /&gt;To do this you just need to register the library with  your server and load add its flag to your include line.&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$this-&amp;gt;server-&amp;gt;registerJSLibrary('scriptaculous',&lt;br /&gt;array('prototype.js','scriptaculous.js','builder.js','effects.js','dragdrop.js','controls.js','slider.js'), '/pathto/scriptaculous/');?&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascrpt" src="server.php?client=scriptaculous"&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="KonaBody"&gt;  &lt;span style="font-size: small;"&gt; &lt;b&gt;&lt;span class="style53"&gt;When should I use an Java applet instead of AJAX?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="answers"&gt;Applets provide a rich experience on the client side and  there are many things they can do that an AJAX  application cannot do, such as custom data streaming,  graphic manipulation, threading, and advanced GUIs.  While DHTML with the use of AJAX has been able to push  the boundaries on what you can do on the client, there  are some things that it just cannot do. The reason AJAX  is so popular is that it only requires functionality  built into the browser (namely DHTML and AJAX  capabilities). The user does not need to download and/or  configure plugins. It is easy to incrementally update  functionality and know that that functionality will  readily available, and there are not any complicated  deployment issues. That said, AJAX-based functionality  does need to take browser differences into  consideration. This is why we recommend using a  JavaScript library such as Dojo which abstracts browser  differences. So the "bottom line" is: If you are  creating advanced UIs where you need more advanced  features on the client where you want UI accuracy down  to the pixel, to do complex computations on the client,  use specialized networking techniques, and where you  know that the applet plugin is available for your target  audience, applets are the way to go. AJAX/DHTML works  well for applications where you know the users are using  the latest generation of browsers, where DHTML/AJAX  "good enough" for you, and where your developers have  JavaScript/DHTML/AJAX skills. Many amazing things can be  done with AJAX/DHTML but there are limitations. AJAX and  applets can be used together in the same UIs with AJAX  providing the basic structure and applets providing more  advanced functionality. The Java can communicate to  JavaScript using the Live-Connect APIs. The question  should not be should framed as do I use AJAX or applets,  but rather which technology makes the best sense for  what you are doing. AJAX and applets do not have to be  mutually exclusive. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;What kinds of applications is Ajax best suited for?  &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;We don’t know yet. Because this is a relatively new  approach, our understanding of where Ajax can best be  applied is still in its infancy. Sometimes the  traditional web application model is the most  appropriate solution to a problem. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Does this mean Adaptive Path is anti-Flash?&lt;/b&gt;&lt;b class="for_questions_blue"&gt;&lt;b class="style53"&gt; &lt;/b&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Not at all. Macromedia is an Adaptive Path client, and  we’ve long been supporters of Flash technology. As Ajax  matures, we expect that sometimes Ajax will be the  better solution to a particular problem, and sometimes  Flash will be the better solution. We’re also interested  in exploring ways the technologies can be mixed (as in  the case of Flickr, which uses both). &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Where can I find examples of AJAX?  &lt;/span&gt;&lt;span class="style53"&gt;  &lt;/span&gt; &lt;/b&gt;&lt;span class="style53"&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class="answers"&gt;While components of AJAX have been around for some time  (for instance, 1999 for XMLHttpRequest), it really  didn't become that popular until Google took... &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;What is the XMLHttpRequest object? &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;It offers a non-blocking way for JavaScript to  communicate back to the web server to update only part  of the web page.&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt; Does Ajax have significant accessibility or browser  compatibility limitations? Do Ajax applications break  the back button? Is Ajax compatible with REST? Are there  security considerations with Ajax development? Can Ajax  applications be made to work for users who have  JavaScript turned off? &lt;/b&gt;&lt;b class="style53"&gt;  &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The answer to all of these questions is “maybe”. Many  developers are already working on ways to address these  concerns. We think there’s more work to be done to  determine all the limitations of Ajax, and we expect the  Ajax development community to uncover more issues like  these along the way. &lt;/span&gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How do I access data from other domains to create a  mashup with Java?&lt;/span&gt;&lt;span class="style53"&gt;&lt;/span&gt;&lt;span class="for_questions_blue"&gt;&lt;span class="style53"&gt; &lt;/span&gt; &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;From your JavaScript clients you can access data in  other domains if the return data is provide in JSON  format. In essence you can create a JavaScript client  that runs operates using data from a different server.  This technique is know as JSON with Padding or JSONP.  There are questions as to whether this method is secure  as you are retrieving data from outside your domain and  allowing it to be excuted in the context of your domain.  Not all data from third parties is accessible as JSON  and in some cases you may want an extra level of  protection. With Java you can provide a proxy to third  party services using a web component such as a servlet.  This proxy can manage the communication with a third  party service and provide the data to your clients in a  format of your choosing. You can also cache data at your  proxy and reduce trips to service. For more on using a  Java proxy to create mashups see The XmlHttpProxy Client  for Java. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Does Java have support for Comet style server-side push? &lt;/span&gt;&lt;span class="style53"&gt; &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Current AJAX applications use polling to communicate  changes data between the server and client. Some  applications, such as chat applications, stock tickers,  or score boards require more immediate notifications of  updates to the client. Comet is an event based low  latency server side push for AJAX applications. Comet  communication keeps one of the two connections available  to the browser open to continously communicate events  from the server to the client. A Java based solution for  Comet is being developed for Glassfish on top of the  Grizzly HTTP connector. See Enabling Grizzly by  Jean-Francois Arcand for more details. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;How do I create a thread to do AJAX polling?  &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;JavaScript does not have threads. JavaScript functions  are called when an event happens in a page such as the  page is loaded, a mouse click, or a form element gains  focus. You can create a timer using the setTimeout which  takes a function name and time in milliseconds as  arguments. You can then loop by calling the same  function as can be seen in the JavaScript example below.&lt;br /&gt;&lt;br /&gt;function checkForMessage() {&lt;br /&gt;// start AJAX interaction with processCallback as the  callback function&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;// callback for the request&lt;br /&gt;function processCallback() {&lt;br /&gt;&lt;br /&gt;// do post processing&lt;br /&gt;setTimeout("checkForMessage()", 10000);&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;Notice that the checkForMessage will continue to loop  indefinitely. You may want to vary the increment the  interval based on activity in the page or your use  cases. You may also choose to have logic that would  break out of the loop based on some AJAX response  processing condition.&lt;/span&gt;&lt;/span&gt;  &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b class="for_questions_blue"&gt;Is the XMLHttpRequest object part of a W3C standard? &lt;/b&gt;&lt;b class="style53"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;No. Or not yet. It is part of the DOM Level 3 Load and  Save Specification proposal.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-6212155878208227379?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6212155878208227379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6212155878208227379'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/ajax-part-iii-interview-questions-and.html' title='Ajax (Part-III) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-3532184755279581249</id><published>2010-03-27T02:00:00.002-07:00</published><updated>2010-03-27T02:28:40.834-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><title type='text'>Ajax (Part-II) Interview Questions and Answers</title><content type='html'>&lt;b&gt;Are there Usability Issues with AJAX?&lt;/b&gt;&lt;br /&gt;The nature of updating a page dynamically using data  retrieved via AJAX interactions and DHTML may result in  drastically changing the appearance and state of a page.  A user might choose to use the browser's back or forward  buttons, bookmark a page, copy the URL from the URL bar  and share it with a friend via an email or chat client,  or print a page at any given time. When designing an  AJAX based application you need to consider what the  expected behavior would be in the case of navigation,  bookmarking, printing, and browser support as described  below.&lt;br /&gt;&lt;br /&gt;* Navigation - What would be the expected behavior of  the back, forward, refresh, and bookmark browser buttons  in your application design. While you could implement  history manipulation manually it may be easer to use a  JavaScript frameworks such as Dojo that provides API's  history manipulation and navigation control. &lt;br /&gt;* Bookmarking and URL sharing - Many users want to  bookmark or cut and paste the URL from the browser bar.  Dojo provides client-side for bookmarking and URL  manipulation. &lt;br /&gt;* Printing - In some cases printing dynamically rendered  pages can be problematic. &lt;br /&gt;Other considerations as a developer when using AJAX are:&lt;br /&gt;* Browser Support - Not all AJAX/DHTML features are  supported on all browsers or all versions of a browser.  See quirksmode.org for a list of browser support and  possible workarounds.&lt;br /&gt;* JavaScript disabled - You should also consider what  happens if the user disables JavaScript. Additionally,  there are several legitimate reasons why JavaScript and  CSS support may be unavailable on a user's web browser.&lt;br /&gt;* Latency - Keep in mind latency in your design. A  running application will be much more responsive than  when it is deployed. &lt;br /&gt;Latency problems: myth or reality?&lt;br /&gt;* Accessibility - Guaranteeing your site is accessible  to people with disabilities is not only a noble goal, it  is also requited by law in many markets. Some marvelous  enabling technology is available to help people use the  Web in spite of disabilities including visual, auditory,  physical, speech, cognitive, and neurological  disabilities. With a little forethought, and  comprehension of some well documented best practices,  you can assure that your application is compatible with  that enabling technology. &lt;br /&gt;Degradability is the term used to describe techniques  used by web applications to adapt to the wide range of  web browser capabilities. Many AJAX libraries have  automatic degradability built in. But if you are coding  your own custom AJAX functionality, simply taking some  care to follow the best practices promoted by standards  bodies like the World Wide Web Consortium (W3C), and  grass root movements like the Web Standards community  and many others, your application can run usefully on  browsers that are incapable of AJAX behaviors. Granted,  your application may loose some of the "wow factor" on  these less capable browsers, but your application will  still be usable. &lt;br /&gt;Remember to not design with AJAX just for the sake of  coolness. The reason you built your application is so  people will use it. And people will not use your  application if your application is not compatible with  their web browser. &lt;br /&gt;&lt;b class="for_questions_blue"&gt;Are there any frameworks available to help speedup  development with AJAX? &lt;/b&gt; &lt;b class="style54"&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;There are several browser-side frameworks available,  each with their own uniqueness... &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Is Adaptive Path selling Ajax components or trademarking  the name? Where can I download it? &lt;/b&gt; &lt;b class="style54"&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Ajax isn’t something you can download. It’s an approach  — a way of thinking about the architecture of web  applications using certain technologies. Neither the  Ajax name nor the approach are proprietary to Adaptive  Path. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Should I use an HTTP GET or POST for my AJAX calls?&lt;/b&gt;&lt;b class="style54"&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;AJAX requests should use an HTTP GET request when  retrieving data where the data will not change for a  given request URL. An HTTP POST should be used when  state is updated on the server. This is in line with  HTTP idempotency recommendations and is highly  recommended for a consistent web application  architecture.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How do I debug JavaScript?   &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;There are not that many tools out there that will  support both client-side and server-side debugging. I am  certain this will change as AJAX applications  proliferate. I currently do my client-side and  server-side debugging separately. Below is some  information on the client-side debuggers on some of the  commonly used browsers.&lt;br /&gt;&lt;br /&gt;* Firefox/Mozilla/Netscape - Have a built in debugger  Venkman which can be helpful but there is a Firefox add  on known as FireBug which provides all the information  and AJAX developer would ever need including the ability  to inspect the browser DOM, console access to the  JavaScript runtime in the browser, and the ability to  see the HTTP requests and responses (including those  made by an XMLHttpRequest). I tend to develop my  applications initially on Firefox using Firebug then  venture out to the other browsers.&lt;br /&gt;* Safari - Has a debugger which needs to be enabled. See  the Safari FAQ for details.&lt;br /&gt;* Internet Explorer - There is MSDN Documentation on  debugging JavaScript. A developer toolbar for Internet  Explorer may also be helpful. &lt;br /&gt;&lt;br /&gt;While debuggers help a common technique knowing as  "Alert Debugging" may be used. In this case you place  "alert()" function calls inline much like you would a  System.out.println. While a little primitive it works  for most basic cases. Some frameworks such as Dojo  provide APIs for tracking debug statements. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How do I provide internationalized AJAX interactions?&lt;/b&gt;&lt;b class="for_questions_blue"&gt;&lt;b class="style54"&gt; &lt;/b&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Just because you are using XML does not mean you can  properly send and receive localized content using AJAX  requests. To provide internationalized AJAX components  you need to do the following:&lt;br /&gt;&lt;br /&gt;* Set the charset of the page to an encoding that is  supported by your target languages. I tend to use UTF-8  because it covers the most languages. The following meta  declaration in a HTML/JSP page will set the content  type:&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;&amp;lt;mmeta content="text/html; &lt;br /&gt;charset=UTF-8" http-equiv="Content-Type"&amp;gt;&amp;lt;/mmeta&amp;gt; &lt;br /&gt;&lt;br /&gt;* In the page JavaScript make sure to encode any  parameters sent to the server. JavaScript provides the  escape() function which returns Unicode escape strings  in which localized text will appear in hexadecimal  format. For more details on JavaScript encoding see  Comparing escape(), encodeURI(), and encodeURIComponent().&lt;br /&gt;* On the server-side component set the character  encoding using the  HttpServletRequest.setCharacterEncoding() method. Before  you access the localized parameter using the  HttpServletRequest.getParameter() call. In the case of  UTF this would be request.setCharactherEncoding("UTF-8");.&lt;br /&gt;A server-side component returning AJAX responses needs  to set the encoding of the response to the same encoding  used in the page. &lt;br /&gt;response.setContentType("text/xml;charset=;UTF-8");&lt;br /&gt;response.getWriter().write(" &lt;response&gt;invalid  &lt;/response&gt;"); &lt;br /&gt;&lt;br /&gt;For more information on using AJAX with Java Enterprise  Edition technologies see AJAX and Internationalization  and for developing multi-lingual applications see  Developing Multilingual Web Applications Using  JavaServer Pages Technology. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Some of the Google examples you cite don’t use XML at  all. Do I have to use XML and/or XSLT in an Ajax  application?&lt;/b&gt;&lt;b class="style54"&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;No. XML is the most fully-developed means of getting  data in and out of an Ajax client, but there’s no reason  you couldn’t accomplish the same effects using a  technology like JavaScript Object Notation or any  similar means of structuring data for interchange.  &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="style54"&gt;Are Ajax applications easier to develop than traditional  web applications?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;Not necessarily. Ajax applications inevitably involve  running complex JavaScript code on the client. Making  that complex code efficient and bug-free is not a task  to be taken lightly, and better development tools and  frameworks will be needed to help us meet that  challenge. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;When do I use a synchronous versus a asynchronous  request?  &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Good question. They don't call it AJAX for nothing! A  synchronous request would block in page event processing  and I don't see many use cases where a synchronous  request is preferable.&lt;/span&gt;&lt;br /&gt;&lt;div class="KonaBody"&gt;&lt;b&gt;&lt;span class="style54"&gt;How do I handle concurrent AJAX requests?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;With JavaScript you can have more than one AJAX request  processing at a single time. In order to insure the  proper post processing of code it is recommended that  you use JavaScript Closures. The example below shows an XMLHttpRequest object abstracted by a JavaScript object  called AJAXInteraction. As arguments you pass in the URL  to call and the function to call when the processing is  done. &lt;br /&gt;function AJAXInteraction(url, callback) {&lt;br /&gt;&lt;br /&gt;var req = init();&lt;br /&gt;req.onreadystatechange = processRequest;&lt;br /&gt;&lt;br /&gt;function init() {&lt;br /&gt;if (window.XMLHttpRequest) {&lt;br /&gt;return new XMLHttpRequest();&lt;br /&gt;} else if (window.ActiveXObject) {&lt;br /&gt;return new ActiveXObject("Microsoft.XMLHTTP");&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;function processRequest () {&lt;br /&gt;if (req.readyState == 4) {&lt;br /&gt;if (req.status == 200) {&lt;br /&gt;if (callback) callback(req.responseXML);&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;this.doGet = function() {&lt;br /&gt;req.open("GET", url, true);&lt;br /&gt;req.send(null);&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;this.doPost = function(body) {&lt;br /&gt;req.open("POST", url, true);&lt;br /&gt;req.setRequestHeader("Content-Type", "&lt;br /&gt;application/x-www-form-urlencoded");&lt;br /&gt;req.send(body);&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;function makeRequest() {&lt;br /&gt;var ai = new AJAXInteraction("processme", &lt;br /&gt;function() { alert("Doing Post Process");});&lt;br /&gt;ai.doGet();&lt;br /&gt;&lt;/span&gt;}&lt;span class="answers"&gt;&lt;br /&gt;&lt;br /&gt;The function makeRequest() in the example above creates  an AJAXInteraction with a URL to of "processme" and an  inline function that will show an alert dialog with the  message "Doing Post Process". When ai.doGet() is called  the AJAX interaction is initiated and when server-side  component mapped to the URL "processme" returns a  document which is passed to the callback function that  was specified when the AJAXInteraction was created. &lt;br /&gt;Using this closures insures that the proper callback  function associated with a specific AJAX interaction is  called. Caution should still be taken when creating  multiple closure objects in that make XmlHttpRequests as  to there is a limited number of sockets that are used to  make requests at any given time. Because there are  limited number of requests that can be made  concurrently. Internet Explorer for example only allows  for two concurrent AJAX requests at any given time.  Other browsers may allow more but it is generally  between three and five requests. You may choose to use  pool of AJAXInteraction objects. &lt;br /&gt;One thing to note when making multiple AJAX calls from  the client is that the calls are not guaranteed to  return in any given order. Having closures within the  callback of a closure object can be used to ensure  dependencies are processed correctly. &lt;br /&gt;There is a discussion titled Ajaxian Fire and Forget  Pattern that is helpful. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What do I do on the server to interact with an AJAX  client? &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The "Content-Type" header needs to be set to"text/xml".  In servlets this may be done using the  HttpServletResponse.setContentType()should be set to  "text/xml" when the return type is XML. Many  XMLHttpRequest implementations will result in an error  if the "Content-Type" header is set The code below shows  how to set the "Content-Type".&lt;br /&gt;&lt;br /&gt;response.setContentType("text/xml");&lt;br /&gt;response.getWriter().write("&lt;response&gt;invalid&lt;/response&gt;"); &lt;br /&gt;&lt;br /&gt;You may also want to set whether or not to set the  caches header for cases such as autocomplete where you  may want to notify proxy servers/and browsers not to  cache the results.&lt;br /&gt;&lt;br /&gt;response.setContentType("text/xml");&lt;br /&gt;response.setHeader("Cache-Control", "no-cache");&lt;br /&gt;response.getWriter().write("&lt;response&gt;invalid&lt;/response&gt;"); &lt;br /&gt;&lt;br /&gt;Note to the developer: Internet Explorer will  automatically use a cached result of any AJAX response  from a HTTP GET if this header is not set which can make  things difficult for a developer. During development  mode you may want set this header. Where do I store  state with an AJAX client&lt;br /&gt;&lt;br /&gt;As with other browser based web applications you have a  few options which include:&lt;br /&gt;* On the client in cookies - The size is limited  (generally around 4KB X 20 cookies per domain so a total  of 80KB) and the content may not be secure unless  encrypted which is difficult but not impossible using  JavaScript.&lt;br /&gt;* On the client in the page - This can be done securely  but can be problematic and difficult to work with. See  my blog entry on Storing State on the Client for more  details on this topic.&lt;br /&gt;* On the client file system - This can be done if the  client grants access to the browser to write to the  local file system. Depending on your uses cases this may  be necessary but caution is advised.&lt;br /&gt;* On the Server - This is closer to the traditional  model where the client view is of the state on the  server. Keeping the data in sync can be a bit  problematic and thus we have a solution Refreshing Data  on this. As more information processing and control  moves to the client where state is stored will need to  be re-evaluated. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;Whats with the -alpha in the install instructions?&lt;/b&gt;&lt;b class="style54"&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;HTML_AJAX hasn't had a stable release yet and the pear  installer doesn't install non stable packages by default  unless you specify a version.&lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;How do I submit a form or a part of a form without a  page refresh? &lt;/b&gt;&lt;span class="answers"&gt; &lt;/span&gt;&lt;br /&gt;&lt;form onsubmit="doAJAXSubmit();return false;"&gt;&lt;span class="answers"&gt; &lt;text&gt;&lt;/text&gt;&lt;/span&gt;&lt;span class="answers"&gt;When creating a form make sure that the "form" element "onSubmit"  attribute is set to a JavaScript function that returns  false. &lt;br /&gt;&amp;lt;form onSubmit="doAJAXSubmit();return false;" &amp;gt;&lt;br /&gt;&amp;lt;input type="text" id="tf1" /&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" id="submit1" value="Update"/&amp;gt;&lt;br /&gt;&amp;lt;/&amp;gt;&lt;br /&gt;&lt;br /&gt;You can also submit data by associating a function with  a form button in a similar way.&lt;br /&gt;&lt;br /&gt;&amp;lt;form onSubmit="doAJAXSubmit();return false;" &amp;gt;&lt;br /&gt;&amp;lt;input type="text" id="tf1" /&amp;gt;&lt;br /&gt;&amp;lt;input type="button" id="button1" onClick="doAJAXSubmit()"  value="Update"/&amp;gt;&lt;br /&gt;&amp;lt;/&amp;gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;/span&gt;&lt;/form&gt;&lt;form onsubmit="doAJAXSubmit();return false;"&gt;&lt;span class="answers"&gt; &lt;/span&gt;&lt;span class="answers"&gt;Note that the form "onSubmit" attribute is still set. If  the user hits the enter key in the text field the form  will be submitted so you still need to handle that case.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;When updating the page it is recommend you wait to make  sure that the AJAX update of the form data was  successful before updating the data in the page.  Otherwise, the data may not properly update and the user  may not know. I like to provide an informative message  when doing a partial update and upon a successful AJAX  interaction I will then update the page. &lt;/span&gt;&lt;/form&gt;&lt;span class="answers"&gt;&lt;/span&gt; &lt;b class="for_questions_blue"&gt;How do I test my AJAX code? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;There is a port of JUnit for client-side JavaScript  called JsUnit &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What exactly is the W3C DOM?  &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;The W3C Document Object Model (DOM) is defined by the  W3C as the following: The Document Object Model is a  platform- and language-neutral interface... &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;When will HTML_AJAX have a stable release?&lt;/b&gt;&lt;b class="style54"&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Once all the major features are complete and the API has  been tested, the roadmap gives an idea of whats left to  be done. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What parts of the HTML_AJAX API are stable?&lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;We don't have a list right now, but most of the API is  stable as of 0.3.0. There should be no major changes at  this point, though there will be lots of new additions. &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What Browsers does HTML_AJAX work with?&lt;/span&gt;&lt;span class="style54"&gt; &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;As of 0.3.0, all the examples that ship with HTML_AJAX  have been verified to work with&lt;br /&gt;* Firefox 1.0+&lt;br /&gt;* Internet Explorer 5.5+ (5.0 should work but it hasn't  been tested)&lt;br /&gt;Most things work with&lt;br /&gt;* Safari 2+&lt;br /&gt;* Opera 8.5+&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-3532184755279581249?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3532184755279581249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/3532184755279581249'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/ajax-part-ii-interview-questions-and.html' title='Ajax (Part-II) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-4225443755601678939</id><published>2010-03-27T01:57:00.000-07:00</published><updated>2010-03-27T02:28:08.371-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><title type='text'>Ajax (Part-I) Interview Questions and Answers</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What's AJAX ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;AJAX (Asynchronous JavaScript and XML) is a newly  coined term for two powerful browser features that have  been around for years, but were overlooked by many web  developers until recently when applications such as Gmail, Google Suggest, and Google Maps hit the streets.&lt;br /&gt;&lt;br /&gt;Asynchronous JavaScript and XML, or Ajax (pronounced  "Aye-Jacks"), is a web development technique for  creating interactive web applications using a  combination of&amp;nbsp; XHTML (or HTML) and CSS for marking  up and styling information. (XML is commonly used,  although any format will work, including preformatted  HTML, plain text, JSON and even EBML).&lt;br /&gt;The Document Object Model manipulated through JavaScript  to dynamically display and interact with the information  presented&lt;br /&gt;The XMLHttpRequest object to exchange data  asynchronously with the web server. In some Ajax  frameworks and in some situations, an IFrame object is  used instead of the XMLHttpRequest object to exchange  data with the web server.&lt;br /&gt;Like DHTML, LAMP, or SPA, Ajax is not a technology in  itself, but a term that refers to the use of a group of  technologies together. In fact, derivative/composite  technologies based substantially upon Ajax, such as  AFLAX, are already appearing.&lt;br /&gt;Ajax applications are mostly executed on the user's  computer; they can perform a number of tasks without  their performance being limited by the network. This  permits the development of interactive applications, in  particular reactive and rich graphic user interfaces.&lt;br /&gt;Ajax applications target a well-documented platform,  implemented by all major browsers on most existing  platforms. While it is uncertain that this compatibility  will resist the advent of the next generations of  browsers (in particular, Firefox), at the moment, Ajax  applications are effectively cross-platform.&lt;br /&gt;While the Ajax platform is more restricted than the Java  platform, current Ajax applications effectively fill  part of the one-time niche of Java applets: extending  the browser with portable, lightweight  mini-applications.&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="answers" style="font-family: inherit;"&gt;&lt;span class="answers" style="font-size: small;"&gt;Ajax isn’t a technology. It’s really several  technologies, each flourishing in its own right, coming  together in powerful new ways. Ajax incorporates:&lt;br /&gt;* standards-based presentation using XHTML and CSS;&lt;br /&gt;* dynamic display and interaction using the Document  Object Model;&lt;br /&gt;* data interchange and manipulation using XML and XSLT;  * asynchronous data retrieval using XMLHttpRequest;&lt;br /&gt;* and JavaScript binding everything together.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt; &lt;span class="for_questions_blue"&gt; Who’s Using Ajax ?&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;Google is making a huge investment in developing the  Ajax approach. All of the major products Google has  introduced over the last year — Orkut, Gmail, the latest  beta version of Google Groups, Google Suggest, and  Google Maps — are Ajax applications. (For more on the  technical nuts and bolts of these Ajax implementations,  check out these excellent analyses of Gmail, Google  Suggest, and Google Maps.) Others are following suit:  many of the features that people love in Flickr depend  on Ajax, and Amazon’s A9.com search engine applies  similar techniques. &lt;br /&gt;These projects demonstrate that Ajax is not only  technically sound, but also practical for real-world  applications. This isn’t another technology that only  works in a laboratory. And Ajax applications can be any  size, from the very simple, single-function Google  Suggest to the very complex and sophisticated Google  Maps. &lt;/span&gt;&lt;/span&gt;  &lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="answers" style="font-size: small;"&gt;At Adaptive Path, we’ve been doing our own work with  Ajax over the last several months, and we’re realizing  we’ve only scratched the surface of the rich interaction  and responsiveness that Ajax applications can provide.  Ajax is an important development for Web applications,  and its importance is only going to grow. And because  there are so many developers out there who already know  how to use these technologies, we expect to see many  more organizations following Google’s lead in reaping  the competitive advantage Ajax provides.&lt;br /&gt;Moving Forward&lt;br /&gt;&lt;br /&gt;The biggest challenges in creating Ajax applications are  not technical. The core Ajax technologies are mature,  stable, and well understood. Instead, the challenges are  for the designers of these applications: to forget what  we think we know about the limitations of the Web, and  begin to imagine a wider, richer range of possibilities&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Should I consider AJAX?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;AJAX definitely has the buzz right now, but it might not  be the right thing for you. AJAX is limited to the  latest browsers, exposes browser compatibility issues,  and requires new skill-sets for many. There is a good  blog entry by Alex Bosworth on AJAX Mistakes which is a  good read before you jump full force into AJAX. &lt;br /&gt;On the other hand you can achieve highly interactive  rich web applications that are responsive and appear  really fast. While it is debatable as to whether an AJAX  based application is really faster, the user feels a  sense of immediacy because they are given active  feedback while data is exchanged in the background. If  you are an early adopter and can handle the browser  compatibility issues, and are willing to learn some more  skills, then AJAX is for you. It may be prudent to start  off AJAX-ifying a small portion or component of your  application first. We all love technology, but just  remember the purpose of AJAX is to enhance your user's  experience and not hinder it. &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Does AJAX work with Java?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;Absolutely. Java is a great fit for AJAX! You can use  Java Enterprise Edition servers to generate AJAX client  pages and to serve incoming AJAX requests, manage server  side state for AJAX clients, and connect AJAX clients to  your enterprise resources. The JavaServer Faces  component model is a great fit for defining and using  AJAX components.&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;  &lt;span class="for_questions_blue"&gt; Won't my server-side framework provide me with AJAX?&lt;/span&gt;&lt;span class="style53"&gt;  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;You may be benefiting from AJAX already. Many existing  Java based frameworks already have some level of AJAX  interactions and new frameworks and component libraries  are being developed to provide better AJAX support. I  won't list all the Java frameworks that use AJAX here,  out of fear of missing someone, but you can find a good  list at www.ajaxpatterns.org/Java_Ajax_Frameworks. &lt;br /&gt;If you have not chosen a framework yet it is recommended  you consider using JavaServer Faces or a JavaServer  Faces based framework. JavaServer Faces components can  be created and used to abstract many of the details of  generating JavaScript, AJAX interactions, and DHTML  processing and thus enable simple AJAX used by JSF  application developer and as plug-ins in JSF compatible  IDE's, such as Sun Java Studio Creator. &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Where should I start?&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="answers"&gt;Assuming the framework you are using does not suffice  your use cases and you would like to develop your own  AJAX components or functionality I suggest you start  with the article Asynchronous JavaScript Technology and  XML (AJAX) With Java 2 Platform, Enterprise Edition. &lt;br /&gt;If you would like to see a very basic example that  includes source code you can check out the tech tip  Using AJAX with Java Technology. For a more complete  list of AJAX resources the Blueprints AJAX home page. &lt;br /&gt;Next, I would recommend spending some time investigating  AJAX libraries and frameworks. If you choose to write  your own AJAX clients-side script you are much better  off not re-inventing the wheel. &lt;br /&gt;AJAX in Action by Dave Crane and Eric Pascarello with  Darren James is good resource. This book is helpful for  the Java developer in that in contains an appendix for  learning JavaScript for the Java developer.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Did Adaptive Path invent Ajax? Did Google? Did  Adaptive Path help build Google’s Ajax applications?&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;Neither Adaptive Path nor Google invented Ajax. Google’s  recent products are simply the highest-profile examples  of Ajax applications. Adaptive Path was not involved in  the development of Google’s Ajax applications, but we  have been doing Ajax work for some of our other clients.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Is it possible to set session variables from javascript?&lt;/span&gt;&lt;span class="style54"&gt; &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;It's not possible to set any session variables directly  from javascript as it is purely a client side  technology. You can use AJAX though to asyncronously... &lt;br /&gt;&lt;br /&gt;Cannot parse XML generated by JSP I am generating an XML  using JSP, when i run the JSP in IE it shows the XML as  per DOM, but when i try to parse it using Javascript ,  the command xmldoc.documentElement... &lt;br /&gt;&lt;br /&gt;This is working code I am using, it might help you. if  (!isIE) xmldoc = req.responseXML; else { //IE does not  take the responseXML as... &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;What do I need to know to create my own AJAX  functionality?&lt;/span&gt;&lt;span class="style54"&gt; &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;If you plan not to reuse and existing AJAX component  here are some of the things you will need to know. &lt;br /&gt;Plan to learn Dynamic HTML (DHTML), the technology that  is the foundation for AJAX. DHTML enables browser-base  real time interaction between a user and a web page.  DHTML is the combination of JavaScript, the Document  Object Model (DOM) and Cascading Style Sheets (CSS).&lt;br /&gt;* JavaScript - JavaScript is a loosely typed object  based scripting language supported by all major browsers  and essential for AJAX interactions. JavaScript in a  page is called when an event in a page occurs such as a  page load, a mouse click, or a key press in a form  element.&lt;br /&gt;* DOM - An API for accessing and manipulating structured  documents. In most cases DOM represent the structure of  XML and HTML documents.&lt;br /&gt;* CSS - Allows you to define the presentation of a page  such as fonts, colors, sizes, and positioning. CSS allow  for a clear separation of the presentation from the  content and may be changed programmatically by  JavaScript. &lt;br /&gt;Understanding the basic request/response nature of HTTP  is also important. Many subtle bugs can result if you  ignore the differences between the GET and OIst methods  when configuring an XMLHttpRequest and HTTP response  codes when processing callbacks. &lt;br /&gt;JavaScript is the client-side glue, in a sense.  JavaScript is used to create the XMLHttpRequest Object  and trigger the asynchronous call. JavaScript is used to  parse the returned content. JavaScript is used to  analyze the returned data and process returned messages.  JavaScript is used to inject the new content into the  HTML using the DOM API and to modify the CSS. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;Do I really need to learn JavaScript?&lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Basically yes if you plan to develop new AJAX  functionality for your web application. &lt;br /&gt;On the other hand, JSF components and component  libraries can abstract the details of JavaScript, DOM  and CSS. These components can generate the necessary  artifacts to make AJAX interactions possible. Visual  tools such as Java Studio Creator may also use AJAX  enabled JSF components to create applications, shielding  the tool developer from many of the details of&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="answers"&gt;&amp;nbsp;AJAX. If  you plan to develop your own JSF components or wire the  events of components together in a tool it is important  that you have a basic understanding of JavaScript. There  are client-side JavaScript libraries (discussed below)  that you can call from your in page JavaScript that  abstract browser differences. Object Hierarchy and  Inheritance in JavaScript is a great resource for a Java  developer to learn about JavaScript objects. &lt;/span&gt; &lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt; &lt;span class="for_questions_blue"&gt;Do Ajax applications always deliver a better experience  than traditional web applications?&lt;/span&gt; &lt;/b&gt; &lt;span class="answers"&gt;&lt;br /&gt;Not necessarily. Ajax gives interaction designers more  flexibility. However, the more power we have, the more  caution we must use in exercising it. We must be careful  to use Ajax to enhance the user experience of our  applications, not degrade it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt;What JavaScript libraries and frameworks are available?&lt;/span&gt;&lt;span class="for_questions_blue"&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;There are many libraries/frameworks out there (and many  more emerging) that will help abstract such things as  all the nasty browser differences. Three good libraries  are The Dojo Toolkit, Prototype, and DWR.&lt;br /&gt;&lt;br /&gt;* The Dojo Toolkit contains APIs and widgets to support  the development of rich web applications. Dojo contains  an intelligent packaging system, UI effects, drag and  drop APIs, widget APIs, event abstraction, client  storage APIs, and AJAX interaction APIs. Dojo solves  common usability issues such as support for dealing with  the navigation such as the ability to detect the browser  back button, the ability to support changes to the URL  in the URL bar for bookmarking, and the ability to  gracefully degrade when AJAX/JavaScript is not fully  support on the client. Dojo is the Swiss Army Knife of  JavaScript libraries. It provides the widest range of  options in a single library and it does a very good job  supporting new and older browsers.&lt;br /&gt;* Prototype focuses on AJAX interactions including a  JavaScript AJAX object that contains a few objects to do  basic tasks such as make a request, update a portion of  a document, insert content into a document, and update a  portion of a document periodically. Prototype JavaScript  library contains a set of JavaScript objects for  representing AJAX requests and contains utility  functions for accessing in page components and DOM  manipulations. Script.aculo.us and Rico are built on top  of Prototype and provide UI effects, support for drag  and drop, and include common JavaScript centric widgets.  If you are just looking to support AJAX interactions and  a few basic tasks Prototype is great. If you are looking  for UI effects Rico and Script.aculo.us are good  options.&lt;br /&gt;* Yahoo UI Library is a utility library and set of  widgets using the APIs to support rich clients. The  utility library includes support for cross-browser AJAX  interactions, animation, DOM scriptging support, drag  and drop, and cross browser event support. The Yahoo UI  Library is well documnented and contains many examples.&lt;br /&gt;* DWR (Dynamic Web Remoting) is a client-side and  server-side framework that focuses on allowing a  developer to do RPC calls from client-side JavaScript to  plain old Java objects in a Java Enterprise Edition web  container. On the server side DWR uses a Servlet to  interact with the Java objects and returns object  representations of the Java objects or XML documents.  DWR will be easy to get up and running and plays well  with other Java technologies. If you are looking for a  client-side and server-side framework that integrates  well use DWR.&lt;br /&gt;* Google Web Toolkit (GWT) is client/server framework  provided by Google that allows a developer to write an  AJAX application in pure Java. The GWT takes care of the  details of generating all the client-side code using a  Java-to-JavaScript compiler. One of the key benefits of  the GWT Software Developer Kit (SDK) is that it allows  you to debug your applications in what is known as GWT  hosted mode using an embedded browser (IE on Windows and  Mozilla/Gecko on Linux) that is tied to the toolkit. In  GWT hosted mode you setup through the code and debug it  as it is running on both the client and server. The GWT  contains a default set of widgets and widget containers.  An application is built by coding a set of widgets and  containers together much like would be done in a Swing  application. The GWT Software Developer Kit (SDK) is  limited to Linux and Windows XP/2000 though the web  applications it generates are compatible with the latest  generation of the mainstream browsers.&lt;br /&gt;&lt;br /&gt;There are many new and emerging libraries for JavaScript  and this list only reviews some of the more common  libraries. When making a choice choose the library which  suites your needs the best. While it might be better to  choose one, there is nothing stopping you from using  more than one framework. For a more extensive list of  client-side frameworks see: Survey of AJAX/JavaScript  Libraries.&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the difference between proxied and proxyless  calls? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Proxied calls are made through stub objects that mimic  your PHP classes on the JavaScript side. E.g., the  helloworld class from the Hello World example. &lt;br /&gt;Proxyless calls are made using utility javascript  functions like HTML_AJAX.replace() and HTML_AJAX.append(). &lt;/span&gt; &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Should I use XML or text, JavaScript, or HTML as a  return type?&lt;/span&gt;&lt;span class="style54"&gt; &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;It depends. Clearly the 'X' in AJAX stands for XML, but  several AJAX proponents are quick to point out that  nothing in AJAX, per se, precludes using other types of  payload, such as, JavaScript, HTML, or plain text.&lt;br /&gt;&lt;br /&gt;* XML - Web Services and AJAX seem made for one another.  You can use client-side API's for downloading and  parsing the XML content from RESTful Web Services.  (However be mindful with some SOAP based Web Services  architectures the payloads can get quite large and  complex, and therefore may be inappropriate with AJAX techniqes.)&lt;br /&gt;* Plain Text - In this case server-generated text may be  injected into a document or evaluated by client-side  logic.&lt;br /&gt;* JavaScript - This is an extension to the plain text  case with the exception that a server-side component  passes a fragment of JavaScript including JavaScript  object declarations. Using the JavaScript eval()  function you can then create the objects on the client.  JavaScript Object Notation (JSON), which is a JavaScript  object based data exchange specification, relies on this  technique. &lt;br /&gt;* HTML - Injecting server-generated HTML fragments  directly into a document is generally a very effective  AJAX technique. However, it can be complicated keeping  the server-side component in sync with what is displayed  on the client. &lt;br /&gt;&lt;br /&gt;Mashup is a popular term for creating a completely new  web application by combining the content from disparate  Web Services and other online API's. A good example of a  mashup is housingmaps.com which graphically combines  housing want-ads from craiglist.org and maps from  maps.google.com.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-4225443755601678939?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/4225443755601678939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/4225443755601678939'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/ajax-part-i-interview-questions-and.html' title='Ajax (Part-I) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-268047846265187155</id><published>2010-03-27T01:48:00.000-07:00</published><updated>2010-11-24T02:41:28.065-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp Dot Net'/><title type='text'>Asp (Part-III) Interview Questions and Answers</title><content type='html'>&lt;div class="KonaBody" style="color: black;"&gt;&lt;b&gt; &lt;span class="style54"&gt;What are the advantages of using ASP?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;Minimizes network traffic by limiting the need for the browser and  server to talk to each other&lt;br /&gt;Makes for quicker loading time since HTML pages are only downloaded&lt;br /&gt;Allows to run programs in languages that are not supported by the  browser&lt;br /&gt;Can provide the client with data that does not reside on the client’s  machine&lt;br /&gt;Provides improved security measures since the script cannot be viewed by  the browser&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the methods in Application Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Lock prevents clients from modifying the variables stored in the  Application object.&lt;br /&gt;Unlock removes the lock from variables stored in the Application object. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the methods in Application Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Internet Information Server (IIS) on Windows NT&lt;br /&gt;Personal Web Server (PWS) on Windows 95&lt;br /&gt;Peer Web Services on Windows NT &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the browsers that can access ASP pages? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Internet Explorer (supports VBScript, JavaScript)&lt;br /&gt;Netscape Communicator/ Navigator (supports only JavaScript, VBScript can  be also added too)&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;How does the server identify and execute the server-side scripts within  HTML code?&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;Including the RUNAT=SERVER attribute&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the methods by which output stream is controlled? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Flush sends previous buffered output to the client immediately, but  continues processing the script.&lt;br /&gt;Clear erases any already-buffered HTML.&lt;br /&gt;End causes the server to stop processing the script. &lt;/span&gt;&lt;br /&gt;&lt;b class="for_questions_blue"&gt;What are the properties used to control the expiration of the page?&lt;/b&gt;&lt;span class="answers"&gt;&lt;br /&gt;Expires specifies the number of minutes before a page cached on a  browser expires.&lt;br /&gt;ExpiresAbsolute sets the date and time at which a page cached on a  browser expires.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What are the collections of Session Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Contents collection contains all the variables established for a session  without using the tag.&lt;br /&gt;Static collection contains all the objects created &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is the difference between ASP and HTML? Or Why ASP is better than  HTML? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;- ASP executes code on the server side whereas the browser interprets  HTML.&lt;br /&gt;- ASP can use any scripting languages&lt;br /&gt;- Gets feedback from the user and return information to the user&lt;br /&gt;- Create pages that will be customized to display only things that will  be of interest to a particular user&lt;br /&gt;- Can edit contents of a web page by updating a text file or a database  rather than the HTML code itself&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the event handlers of Application Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Application_OnStart- This event will be fired when the first visitor  hits the page.&lt;br /&gt;Application_OnEnd- This event runs when the server is stopped. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Name some of the ASP components? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Ad Rotator component- a way to manage advertisements on the web site.&lt;br /&gt;Content Linker component - a technique to direct users through a set of  pages on a web site by creating a list of URLs and description of the  next and previous pages.&lt;br /&gt;Browser Capabilities component - allows to customize the page to the  ability of the browser viewing it.&lt;br /&gt;Database Access component - allows to access data from the database  &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the tasks performed by &amp;lt; FORM &amp;gt; tags? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;tags provides space for the user to input values&lt;br /&gt;the form has a button to submit information back to the server&lt;br /&gt;It transfers control to another ASP page&lt;br /&gt;It carries the information in the fields to another ASP page &lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="style54"&gt;What are the tags necessary to be present within the &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;form&gt;&lt;b&gt;&lt;span class="style54"&gt;tag?&lt;/span&gt;&lt;span class="answers"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="answers"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;Provides input spaces (text boxes, combo boxes, radio button,  etc.) on a form called fields. It has three attributes TYPE, NAME and  VALUE. TYPE provides the characteristics of the field and the NAME  specifies a name to the field by which it can be referred.&lt;/span&gt; &lt;span class="for_questions_blue"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What are the collections of Application Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;* Contents collection - contains all variables added via scripts in  global.asa.&lt;br /&gt;* Static collection - contains the names of all objects.&lt;/span&gt;&lt;/form&gt;&lt;div class="KonaBody"&gt;&lt;b&gt;&lt;span class="style54"&gt;How do you create a recordset object in  VBScript?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;Answer1 &lt;br /&gt;//First of all declare a variable to hold the Recordset object, ex- &lt;br /&gt;Dim objRs &lt;br /&gt;//Now, Create this varible as a Recordset object, ex- &lt;br /&gt;Set objRs=Server.CreateObject(ADODB.RECORDSET) &lt;br /&gt;&lt;br /&gt;Answer2 &lt;br /&gt;” rs.MoveNext&lt;br /&gt;wend&lt;br /&gt;end if&lt;br /&gt;%’&amp;gt;&lt;br /&gt;*. Create Recordset object&lt;br /&gt;*. Place form field value in a variable named “param”&lt;br /&gt;*. Define query by concatenating strings and variable value&lt;br /&gt;*. Open RecordSet Object. Note that the first parameter is the Command  Text. The second parameter is the Connection String. The Command Object  and Connection Object are created implicitly.&lt;br /&gt;*. Make sure the RecordSet isn’t empty&lt;br /&gt;*. Begin executing a loop which goes through all records in the  RecordSet.&lt;br /&gt;*. Write each record’s “firstname” and “lastname” fields to the page on  a separate line.&lt;br /&gt;*. Move to Next Record. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Explain the difference between POST and GET Method. &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt;&lt;br /&gt;GET requests are string data that is visible to the end user via the URL  and a limit of 2kb, POST requests have no limit on total data and the  user can’t see the data in a query string.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Why do we use Option Explicit? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt;&lt;br /&gt;Answer1&lt;br /&gt;To avoid multiple variables of the same name. &lt;br /&gt;&lt;br /&gt;Answer2:&lt;br /&gt;Correct answer is - This statement force the declaration of variables in  VB before using them. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;How do you write an SQL insert statement? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;insert into tablename (fieldA, fieldB, fieldC)Values(’dataA’, ‘dataB’, ‘dataC’); &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;How can you have different number of cells for each row of a table in  HTML?&lt;/b&gt; &lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;using colspan and rowspan &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What variable can you use to share info across the whole application for  one user? &lt;/b&gt; &lt;/span&gt;&lt;span class="style54"&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class="answers"&gt;Use the sessions object &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is string concatenation function in VBScript? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;the ampersand symbol and ampersand space underscore across multiple  lines &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;How do you get the value of a combo box in Javascript? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Answer1.&lt;br /&gt;document.forms[’formName’].elements[’comboName’].options[i].value &lt;br /&gt;&lt;br /&gt;Answer2.&lt;br /&gt;document.form_name.element_name.value &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is a class in CSS? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Answer1&lt;br /&gt;A class allows you to define different style characteristics to the same  HTML element. &lt;br /&gt;&lt;br /&gt;Answer2 &lt;br /&gt;class is a child to the id, id should be used only once, a css class can  be used multiple times: &lt;br /&gt;div id=”banner”&lt;br /&gt;p class=”alert”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="style54"&gt;When inserting strings into a SQL table in ASP what is the risk and how  can you prevent it?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;SQL Injection, to prevent you probably need to use Stored Procedures  instead of inline/incode SQL &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Which is the default Data types in VBScript? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Variant.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-268047846265187155?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/268047846265187155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/268047846265187155'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/asp-part-iii-interview-questions-and.html' title='Asp (Part-III) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-1081151562825273932</id><published>2010-03-27T01:46:00.001-07:00</published><updated>2010-11-24T02:41:28.066-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp Dot Net'/><title type='text'>Asp (Part-II) Interview Questions and Answers</title><content type='html'>&lt;div class="KonaBody" style="color: black;"&gt;   &lt;b&gt;&lt;span class="style55"&gt;What is a FileSystemObject object?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;It provides access to the physical file system of the web server. It  gets and manipulates information about all drives in a server, folders  and sub-folders on a drive and files inside a folder.&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is a Scripting Language? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It permits to create more interactive Web Pages. Validation, formatting  of web pages can be done. VBScript, JavaScript are some examples. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is a Dictionary object? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It lets you store and retrieve information in a flexible data structure.  Each value or information stored in a Dictionary is associated with a  key through which the information can be retrieved. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is Global.asa file? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It is text file that contains details about an ASP application, such as  when it should begin and end.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is an .ASP file? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;It is a Text File that contains the combination of the following:&lt;br /&gt;Text&lt;br /&gt;HTML tags&lt;br /&gt;Script Commands &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is Response Object? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It controls the information sent to the user. The various methods are:&lt;br /&gt;Response.Write - Sends information directly to a browser&lt;br /&gt;Response.Redirect - Directs a user to a URL other than the requested URL&lt;br /&gt;Response.ContentType - Controls the type of content sent&lt;br /&gt;Response.Cookies - Sets cookie values&lt;br /&gt;Response.Buffer - To Buffer information&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Naming constraints for a variable ? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;It can be up to 255 characters Must start with an alphabet Must not  contain an embedded period or full-stop &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is a TextStream object? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It allows you to access(read/write) the contents of text files stored on  the web server. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is IIS? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;IIS is a Web Server that provides Web services, not only for web pages  but also for ftp sites and video and audio services. It integrates with  the database facilities of SQL Server. &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is Request Object? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Gets information from the user. It has five collections by which values  can be accessed. They are: Query string, Form, Cookies, Server Variables  &amp;amp; Client Certificate&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What are the special sub-types in VBScript? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt;&lt;br /&gt;EMPTY: has no value&lt;br /&gt;NULL: Value does not exist (conjunction with database)&lt;br /&gt;OBJECT: &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is Cookies collection?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;Cookies are text files that store information about the user by which  the web server identifies and marks each different visitor to a web site  and determines where a user has been before. A cookie can store  information only when the user sends it. Individual cookies are limited  to 4KB of data. The maximum number of cookies allowed is 300.&lt;br /&gt;Cookies are stored on client’s machine.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is the difference between Cookies collection and Form/Query string  collection? &lt;/b&gt;&lt;/span&gt; &lt;span class="style55"&gt; &lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;Cookie collection does not have the Count property. Cookies can have  multiple values for the same cookie name but each value can be referred  using a key whereas in a Form/Query string cookie each value has to be  referred using an index value. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue" style="color: black;"&gt; &lt;b&gt;What is Server Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Controls the ASP execution environment. It can set the amount of time  script can run before an error occurs. Converts a virtual path to a  physical path on the server. Takes a user supplied string and encode it  into proper format for a URL string.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;What is Collection? &lt;/b&gt; &lt;span class="answers"&gt; &lt;br /&gt;Collection is a set of name/value pairs where the information supplied  by the client is stored.&lt;/span&gt;&lt;br /&gt;&lt;div class="KonaBody"&gt;   &lt;b&gt;&lt;span class="style53"&gt;How will you delete a Cookie?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt;By setting its Expires property to any date prior to today  Response.Cookies("cookie name"). Expires = Date 1.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is the function of Buffer in Response Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Buffer controls the HTML output stream manually. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;How are scripts executed?&lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;ASP provides scripting engines that execute the corresponding scripting  languages on the server side. Scripts should be encoded within the  Delimiters. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is ASP (Active Server Pages)? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;ASP is a server side-scripting environment for building dynamic and  interactive web pages. Since the scripts run on the server side, the web  server does all the processing. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are ARRAYS? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Arrays are variables that store items of similar information.DIM  ARRAY1(4) (declares an array with the name array1 with 5 elements)  &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is Application-scope?&lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Application-scope means that variables (and objects) can be accessed  from any ASP pages that is part of the application.&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is Extranet? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;An area of a web site available only to a set of registered visitors.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&amp;lt; SCRIPT LANGUAGE="VBScript" RUNAT=Server &amp;gt;&lt;br /&gt;a = 1&lt;br /&gt;&amp;lt; /SCRIPT &amp;gt;&lt;br /&gt;&amp;lt; SCRIPT LANGUAGE="VBScript" &amp;gt;&lt;br /&gt;a = 2&lt;br /&gt;&amp;lt; /SCRIPT &amp;gt;&lt;br /&gt;&amp;lt; %&lt;br /&gt;Response.Write a&lt;br /&gt;% &amp;lt;&lt;span class="style53"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="for_questions_blue"&gt;In the sample code shown above, what will be written to the screen?  &lt;/span&gt; &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A. 1&lt;br /&gt;B. 2&lt;br /&gt;C. 1, 2&lt;br /&gt;D. 1&amp;amp;2&lt;br /&gt;E. Nothing. (Answer)&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&amp;lt; % iPos = Instr("Hello World","r") % &amp;lt;&lt;span class="style53"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span class="style53"&gt;Referring to the above, what is the value of iPos? &lt;/span&gt;  &lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;A. 0&lt;br /&gt;B. 1&lt;br /&gt;C. 2&lt;br /&gt;D. 8&lt;br /&gt;E. 9 (Answer)&lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What are the types of HTML? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Static HTML Browser uses HTTP to request HTML file from the Web Server&lt;br /&gt;Dynamic HTML Browser uses HTTP to request an executable application  rather than a Static HTML file &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the properties of Session Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;SessionID returns the session identification number for each user.&lt;br /&gt;Timeout sets the timeout period assigned to the Session object for any  application, in minutes.&lt;br /&gt;CodePage determines the code page that will be used to display content.&lt;br /&gt;LCID a locale identifier, which determines time zone and language, rules  for the system &lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are the event handlers of Session Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Session _OnStart This event will be fired when a new user begins a  session with the web site.&lt;br /&gt;Session_OnEnd This event is called whenever a session terminates. &lt;/span&gt;&lt;br /&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Name the ASP Objects? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;Request Object&lt;br /&gt;Response Object&lt;br /&gt;Server Object&lt;br /&gt;Session Object&lt;br /&gt;Application Object &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-1081151562825273932?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1081151562825273932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1081151562825273932'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/asp-part-ii-interview-questions-and.html' title='Asp (Part-II) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-1464940651436822185</id><published>2010-02-27T00:23:00.000-08:00</published><updated>2010-03-27T01:44:35.063-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Networking'/><title type='text'>Networking (part - V)  Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is autonomous system?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;It is a collection of routers under the control of a single  administrative authority and that uses a common Interior Gateway  Protocol.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between interior and exterior neighbor gateways? &lt;/b&gt; &lt;br /&gt;Interior gateways connect LANs of one organization, whereas exterior  gateways connect the organization to the outside world. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is MAU? &lt;/b&gt; &lt;br /&gt;In token Ring , hub is called Multistation Access Unit(MAU). &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain 5-4-3 rule.? &lt;/b&gt; &lt;br /&gt;In a Ethernet network, between any two points on the network, there can  be no more than five network segments or four repeaters, and of those  five segments only three of segments can be populated.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is difference between baseband and broadband transmission? &lt;/b&gt; &lt;br /&gt;In a baseband transmission, the entire bandwidth of the cable is  consumed by a single signal. In broadband transmission, signals are sent  on multiple frequencies, allowing multiple signals to be sent  simultaneously. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is ICMP? &lt;/b&gt; &lt;br /&gt;ICMP is Internet Control Message Protocol, a network layer protocol of  the TCP/IP suite used by hosts and gateways to send notification of  datagram problems back to the sender. It uses the echo test / reply to  test whether a destination is reachable and responding. It also handles  both control and error messages. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Brouter? &lt;/b&gt; &lt;br /&gt;Hybrid devices that combine the features of both bridges and routers. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is frame relay, in which layer it comes? &lt;/b&gt; &lt;br /&gt;Frame relay is a packet switching technology. It will operate in the  data link layer. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is External Data Representation? &lt;/b&gt; &lt;br /&gt;External Data Representation is a method of encoding data within an RPC  message, used to ensure that the data is not system-dependent. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Bandwidth? &lt;/b&gt;&lt;br /&gt;Every line has an upper limit and a lower limit on the frequency of  signals it can carry. This limited range is called the bandwidth. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What protocol is used by DNS name servers?  &lt;/b&gt;&lt;br /&gt;DNS uses UDP for communication between servers. It is a better choice  than TCP because of the improved speed a connectionless protocol offers.  Of course, transmission reliability suffers with UDP. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the range of addresses in the classes of internet addresses?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;Class A 0.0.0.0 - 127.255.255.255&lt;br /&gt;Class B 128.0.0.0 - 191.255.255.255&lt;br /&gt;Class C 192.0.0.0 - 223.255.255.255&lt;br /&gt;Class D 224.0.0.0 - 239.255.255.255&lt;br /&gt;Class E 240.0.0.0 - 247.255.255.255&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the important topologies for networks? &lt;/b&gt; &lt;br /&gt;BUS topology:&lt;br /&gt;In this each computer is directly connected to primary network cable in  a single line.&lt;br /&gt;Advantages:&lt;br /&gt;Inexpensive, easy to install, simple to understand, easy to extend.&lt;br /&gt;STAR topology:&lt;br /&gt;In this all computers are connected using a central hub.&lt;br /&gt;Advantages:&lt;br /&gt;Can be inexpensive, easy to install and reconfigure and easy to trouble  shoot physical problems.&lt;br /&gt;RING topology:&lt;br /&gt;In this all computers are connected in loop.&lt;br /&gt;Advantages:&lt;br /&gt;All computers have equal access to network media, installation can be  simple, and signal does not degrade as much as in other topologies  because each computer regenerates it.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Difference between bit rate and baud rate? &lt;/b&gt; &lt;br /&gt;Bit rate is the number of bits transmitted during one second whereas  baud rate refers to the number of signal units per second that are  required to represent those bits.&lt;br /&gt;baud rate = bit rate / N&lt;br /&gt;where N is no-of-bits represented by each signal shift.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is anonymous FTP and why would you  use it?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;Anonymous FTP enables users to connect to a host without using a valid  login and password. Usually, anonymous FTP uses a login called anonymous  or guest, with the password usually requesting the user's ID for  tracking purposes only. Anonymous FTP is used to enable a large number  of users to access files on the host without having to go to the trouble  of setting up logins for them all. Anonymous FTP systems usually have  strict controls over the areas an anonymous user can access. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between an unspecified passive open and a fully  specified passive open? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;An unspecified passive open has the server waiting for a connection  request from a client. A fully specified passive open has the server  waiting for a connection from a specific client. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is virtual path?  &lt;/b&gt;&lt;br /&gt;Along any transmission path from a given source to a given destination,  a group of virtual circuits can be grouped together into what is called  path. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain the function of Transmission Control Block?  &lt;/b&gt;&lt;br /&gt;A TCB is a complex data structure that contains a considerable amount of  information about each connection. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a DNS resource record?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;A resource record is an entry in a name server's database. There are  several types of resource records used, including name-to-address  resolution information. Resource records are maintained as ASCII files. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a pseudo tty? &lt;/b&gt;&lt;br /&gt;A pseudo tty or false terminal enables external machines to connect  through Telnet or rlogin. Without a pseudo tty, no connection can take  place.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the Network Time Protocol? &lt;/b&gt; &lt;/span&gt; &lt;br /&gt;A protocol that assures accurate local timekeeping with reference to  radio and atomic clocks located on the Internet. This protocol is  capable of synchronising distributed clocks within milliseconds over  long time periods. It is defined in STD 12, RFC 1119. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is mesh network? &lt;/b&gt;&lt;br /&gt;A network in which there are multiple network links between computers to  provide multiple paths for data to travel. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is RAID? &lt;/b&gt;&lt;br /&gt;A method for providing fault tolerance by using multiple hard disk  drives. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a Management Information Base (MIB)?  &lt;/span&gt;&lt;br /&gt;&lt;/b&gt;A Management Information Base is part of every SNMP-managed device. Each  SNMP agent has the MIB database that contains information about the  device's status, its performance, connections, and configuration. The  MIB is queried by SNMP. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is cladding? &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;A layer of a glass surrounding the center fiber of glass inside a  fiber-optic cable. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is subnet? &lt;/b&gt;&lt;br /&gt;A generic term for section of a large networks usually separated by a  bridge or router. &lt;br /&gt;&lt;br /&gt;A gateway operates at the upper levels of the OSI model and translates  information between two completely different network architectures or  data formats. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is point-to-point protocol? &lt;/b&gt;&lt;br /&gt;A communications protocol used to connect computers to remote networking  services including Internet service providers. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are 10Base2, 10Base5 and 10BaseT Ethernet LANs ? &lt;/b&gt;&lt;br /&gt;10Base2—An Ethernet term meaning a maximum transfer rate of 10 Megabits  per second that uses baseband signaling, with a contiguous cable segment  length of 100 meters and a maximum of 2 segments &lt;br /&gt;10Base5—An Ethernet term meaning a maximum transfer rate of 10 Megabits  per second that uses baseband signaling, with 5 continuous segments not  exceeding 100 meters per segment. &lt;br /&gt;10BaseT—An Ethernet term meaning a maximum transfer rate of 10 Megabits  per second that uses baseband signaling and twisted pair cabling. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the possible ways of data exchange? &lt;/b&gt;&lt;br /&gt;(i) Simplex&lt;br /&gt;(ii) Half-duplex&lt;br /&gt;(iii) Full-duplex.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the two types of transmission technology available? &lt;/b&gt;&lt;br /&gt;(i) Broadcast&lt;br /&gt;(ii) point-to-point.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do I convert a numeric IP address like 192.18.97.39 into a hostname  like java.sun.com? &lt;/b&gt;&lt;br /&gt;String hostname = InetAddress.getByName("192.18.97.39").getHostName();&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-1464940651436822185?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1464940651436822185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1464940651436822185'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/networking-part-v-interview-question.html' title='Networking (part - V)  Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-1472563407166980737</id><published>2010-02-07T00:22:00.000-08:00</published><updated>2010-03-27T01:44:11.560-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Networking'/><title type='text'>Networking (part - IV)  Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are major types of networks and  explain?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;Server-based network.&lt;br /&gt;Peer-to-peer network.&lt;br /&gt;&lt;br /&gt;Peer-to-peer network, computers can act as both servers sharing  resources and as clients using the resources.&lt;br /&gt;Server-based networks provide centralized control of network resources  and rely on server computers to provide security and network  administration.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is SAP? &lt;/b&gt; &lt;/span&gt; &lt;br /&gt;Series of interface points that allow other computers to communicate  with the other layers of network protocol stack. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is multicast routing? &lt;/b&gt; &lt;br /&gt;Sending a message to a group is called multicasting, and its routing  algorithm is called multicast routing. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the difference between routable and non- routable protocols? &lt;/b&gt; &lt;br /&gt;&lt;/span&gt;Routable protocols can work with a router and can be used to build large  networks. Non-Routable protocols are designed to work on small, local  networks and cannot be used with a router. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is REX? &lt;/b&gt; &lt;br /&gt;Request to Exit (REX) - A signal that informs the controller that  someone has requested to exit from a secure area. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different type of networking / internetworking devices? &lt;/b&gt; &lt;br /&gt;Repeater:&lt;br /&gt;Also called a regenerator, it is an electronic device that operates only  at physical layer. It receives the signal in the network before it  becomes weak, regenerates the original bit pattern and puts the  refreshed copy back in to the link.&lt;br /&gt;Bridges:&lt;br /&gt;These operate both in the physical and data link layers of LANs of same  type. They divide a larger network in to smaller segments. They contain  logic that allow them to keep the traffic for each segment separate and  thus are repeaters that relay a frame only the side of the segment  containing the intended recipent and control congestion.&lt;br /&gt;Routers:&lt;br /&gt;They relay packets among multiple interconnected networks (i.e. LANs of  different type). They operate in the physical, data link and network  layers. They contain software that enable them to determine which of the  several possible paths is the best for a particular transmission.  Gateways: They relay packets among networks that have different  protocols (e.g. between a LAN and a WAN). They accept a packet formatted  for one protocol and convert it to a packet formatted for another  protocol before forwarding it. They operate in all seven layers of the  OSI model. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is redirector? &lt;/b&gt; &lt;br /&gt;Redirector is software that intercepts file or prints I/O requests and  translates them into network requests. This comes under presentation  layer.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is packet filter? &lt;/b&gt; &lt;br /&gt;Packet filter is a standard router equipped with some extra  functionality. The extra functionality allows every incoming or outgoing  packet to be inspected. Packets meeting some criterion are forwarded  normally. Those that fail the test are dropped. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is logical link control? &lt;/b&gt; &lt;br /&gt;One of two sublayers of the data link layer of OSI reference model, as  defined by the IEEE 802 standard. This sublayer is responsible for  maintaining the link between computers when they are sending data across  the physical network connection.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is traffic shaping? &lt;/b&gt; &lt;br /&gt;One of the main causes of congestion is that traffic is often busy. If  hosts could be made to transmit at a uniform rate, congestion would be  less common. Another open loop method to help manage congestion is  forcing the packet to be transmitted at a more predictable rate. This is  called traffic shaping. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is NETBIOS and NETBEUI? &lt;/b&gt; &lt;br /&gt;NETBIOS is a programming interface that allows I/O requests to be sent  to and received from a remote computer and it hides the networking  hardware from applications. &lt;br /&gt;NETBEUI is NetBIOS extended user interface. A transport protocol  designed by microsoft and IBM for the use on small subnets.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;Why should you care about the OSI Reference Model? &lt;/b&gt; &lt;br /&gt;It provides a framework for discussing network operations and design.&amp;nbsp;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Proxy ARP?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;is using a router to answer ARP requests. This will be done when the  originating host believes that a destination is local, when in fact is  lies beyond router. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is EGP (Exterior Gateway Protocol)? &lt;/b&gt; &lt;br /&gt;It is the protocol the routers in neighboring autonomous systems use to  identify the set of networks that can be reached within or via each  autonomous system. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is IGP (Interior Gateway Protocol)? &lt;/b&gt; &lt;br /&gt;It is any routing protocol used within an autonomous system. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is OSPF? &lt;/b&gt; &lt;br /&gt;&lt;/span&gt;It is an Internet routing protocol that scales well, can route traffic  along multiple paths, and uses knowledge of an Internet's topology to  make accurate routing decisions. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Kerberos? &lt;/b&gt; &lt;br /&gt;It is an authentication service developed at the Massachusetts Institute  of Technology. Kerberos uses encryption to prevent intruders from  discovering passwords and gaining unauthorized access to files.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt; What is SLIP (Serial Line Interface Protocol)? &lt;/b&gt; &lt;br /&gt;It is a very simple protocol used for transmission of IP datagrams  across a serial line. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Mail Gateway? &lt;/b&gt; &lt;br /&gt;It is a system that performs a protocol translation between different  electronic mail delivery protocols. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is RIP (Routing Information Protocol)? &lt;/b&gt; &lt;br /&gt;&lt;/span&gt;It is a simple protocol used to exchange information between the  routers. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is NVT (Network Virtual Terminal)? &lt;/b&gt; &lt;br /&gt;It is a set of rules defining a very simple virtual terminal  interaction. The NVT is used in the start of a Telnet session. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is source route? &lt;/b&gt; &lt;br /&gt;It is a sequence of IP addresses identifying the route a datagram must  follow. A source route may optionally be included in an IP datagram  header. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is BGP (Border Gateway Protocol)? &lt;/b&gt; &lt;br /&gt;It is a protocol used to advertise the set of networks that can be  reached with in an autonomous system. BGP enables this information to be  shared with the autonomous system. This is newer than EGP (Exterior  Gateway Protocol). &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Gateway-to-Gateway protocol? &lt;/b&gt; &lt;br /&gt;It is a protocol formerly used to exchange routing information between  Internet core routers.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Project 802? &lt;/b&gt; &lt;br /&gt;It is a project started by IEEE to set standards that enable  intercommunication between equipment from a variety of manufacturers. It  is a way for specifying functions of the physical layer, the data link  layer and to some extent the network layer to allow for  interconnectivity of major LAN protocols.&lt;br /&gt;It consists of the following:&lt;br /&gt;802.1 is an internetworking standard for compatibility of different LANs  and MANs across protocols.&lt;br /&gt;802.2 Logical link control (LLC) is the upper sublayer of the data link  layer which is non-architecture-specific, that is remains the same for  all IEEE-defined LANs. Media access control (MAC) is the lower sublayer  of the data link layer that contains some distinct modules each carrying  proprietary information specific to the LAN product being used. The  modules are &lt;br /&gt;Ethernet LAN (802.3), Token ring LAN (802.4), Token bus LAN (802.5).&lt;br /&gt;802.6 is distributed queue dual bus (DQDB) designed to be used in MANs.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is silly window syndrome? &lt;/b&gt; &lt;br /&gt;It is a problem that can ruin TCP performance. This problem occurs when  data are passed to the sending TCP entity in large blocks, but an  interactive application on the receiving side reads 1 byte at a time. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Multi-homed Host? &lt;/b&gt; &lt;br /&gt;It is a host that has a multiple network interfaces and that requires  multiple IP addresses is called as a Multi-homed Host.&amp;nbsp;  &lt;/div&gt;&lt;div class="answers"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-1472563407166980737?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1472563407166980737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1472563407166980737'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/networking-part-iv-interview-question.html' title='Networking (part - IV)  Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-5630169796807413276</id><published>2010-01-27T00:33:00.000-08:00</published><updated>2010-11-24T02:41:28.066-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp Dot Net'/><title type='text'>Asp (Part-I) Interview Questions and Answers</title><content type='html'>&lt;div style="font-family: inherit;"&gt;&lt;span style="color: blue; font-size: small;"&gt; &lt;b&gt;&lt;span class="for_questions_blue" style="color: black;"&gt;What is ASP?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt;&lt;span class="answers"&gt;ASP stands for Active Server Pages. It is a server side technology which  is used to display dynamic content on web pages. For example you could  write code that would give your visitors different information,  different images or even a totally different page depending on what  browser version they are using. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;&lt;b&gt;  How can you disable the browser to view the code?   &lt;/b&gt;&lt;/span&gt;&lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;Writing codes within the Tag &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;  &lt;span class="for_questions_blue"&gt; What is a "Virtual Directory"?&lt;/span&gt;&lt;span class="style53"&gt;  &lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;Virtual directories are aliases for directory paths on the server. It  allows moving files on the disk between different folders, drives or  even servers without changing the structure of web pages. It avoids  typing an extremely long URL each time to access an ASP page. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;Give the comment Tags for the following? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;VBScript : REM &amp;amp; ‘(apostrophe)&lt;br /&gt;JavaScript : // (single line comment)&lt;br /&gt;/* */ (Multi-line comments) &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt; &lt;b&gt;Which is the default Scripting Language of ASP (server-side)? &lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="answers" style="color: black; font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;VBScript &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt; &lt;b&gt;&lt;span class="for_questions_blue"&gt;Which is the default Data types in VBScript?&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;br style="color: black;" /&gt; &lt;span class="answers"&gt;Variant is the default data type in VBScript, which can store a value of  any type. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What is a variable? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;Variable is a memory location through which the actual values are  stored/retrieved. Its value can be changed.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What is the maximum size of an array? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;Up to 60 dimensions. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What is Query string collection? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;This collection stores any values that are provided in the URL. This can  be generated by three methods:&lt;br /&gt;By clicking on an anchor tag &lt;br /&gt;By sending a form to the server by the GET method&lt;br /&gt;Through user-typed HTTP address&lt;br /&gt;&lt;br /&gt;It allows you to extract data sent to the server using a GET request. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What are the attributes of the tags? What are their functions? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;The two attributes are ACTION and METHOD&lt;br /&gt;The ACTION gives the name of the ASP file that should be opened next by  which this file can access the information given in the form The METHOD  determines which of the two ways (POST or GET) the browser can send the  information to the server &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What are the methods in Session Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;The Session Object has only one method, which is Abandon. It destroys  all the objects stored in a Session Object and releases the server  resources they occupied. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt; What is ServerVariables collection?&lt;/span&gt;&lt;span class="style53"&gt; &lt;/span&gt; &lt;/b&gt;&lt;/span&gt; &lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;The ServerVariables collection holds the entire HTTP headers and also  additional items of information about the server. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What is the difference between Querystring collection and Form  collection? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;The main difference is that the Querystring collection gets appended to  a URL.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="color: blue; font-size: small;"&gt; &lt;b&gt;&lt;span style="color: black;"&gt;What is a Form collection?&lt;/span&gt; &lt;/b&gt;&lt;/span&gt; &lt;span style="font-size: small;"&gt;&lt;span class="answers"&gt;&lt;br /&gt;The Form collection holds the values of the form elements submitted with  the POST method. This is the only way to generate a Form collection.  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What are the ASP Scripting Objects? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;The Dictionary object, the FileSystemObject object, TextStream object. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;  &lt;b&gt;What happens to a HTML page? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers" style="font-size: small;"&gt; &lt;br /&gt;The browser makes a HTTP request; the server gives a HTTP response to  the browser and the browser converts into a HTML page.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt; &lt;b class="for_questions_blue"&gt; What happens to ASP pages?&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="answers"&gt;&lt;br /&gt;The browser makes a HTTP request; the server does the processing and  gives a HTML response to the browser. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;span class="for_questions_blue"&gt; &lt;b&gt;How can you change the primary scripting language for a page? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;Specify &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;span class="for_questions_blue"&gt; &lt;b&gt;What is application Object? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Shares information among users of an application. Gives a notification  when an application starts or ends.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt; &lt;span class="for_questions_blue"&gt;&lt;span style="color: black;"&gt;What is the difference between client-side script and server-side  script? &lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;span class="answers"&gt; &lt;br /&gt;Scripts executed only by the browser without contacting the server is  called client-side script. It is browser dependent. The scripting code  is visible to the user and hence not secure. Scripts executed by the web  server and processed by the server is called server-side script. &lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is the command to display characters to the HTML page? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Response.Write &lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;Explain the POST &amp;amp; GET Method or Explain the difference between them? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;POST METHOD:&lt;br /&gt;The POST method generates a FORM collection, which is sent as a HTTP  request body. All the values typed in the form will be stored in the  FORM collection.&lt;br /&gt;GET METHOD:&lt;br /&gt;The GET method sends information by appending it to the URL (with a  question mark) and stored as A Querystring collection. The Querystring  collection is passed to the server as name/value pair.&lt;br /&gt;The length of the URL should be less than 255 characters. &lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt; &lt;b&gt;How many global.asa files can an Application have? &lt;/b&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="answers" style="font-family: inherit;"&gt;&lt;span class="answers" style="font-size: small;"&gt;Only one global.asa file and it’s placed in the virtual directory’s  root. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;span class="for_questions_blue"&gt; &lt;b&gt;How many global.asa files can an Application have? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Only one global.asa file and it’s placed in the virtual directory’s  root. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt; &lt;span class="for_questions_blue"&gt; &lt;b&gt;What are Scripting Objects? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Objects that can enhance the application are known as the Scripting  Objects.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is the Order of precedence for LOGICAL Operators ?&lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;NOT, AND, OR, XOR, EQV, IMP &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is an Err Object? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;Name it’s properties and methods. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What are LOCAL and GLOBAL variables? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;Local variables lifetime ends when the Procedure ends. Global variables  lifetime begins at the start of the script and ends at the end of the  script and it can be used by any procedure within the script. Declaring  a variable by using the keyword PRIVATE makes the variable global within  the script, but if declared using PUBLIC, then all scripts can refer the  variable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Which is the default Scripting Language on the client side? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;JavaScript &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is HTML (Hypertext Markup Language)? &lt;/b&gt;&lt;/span&gt; &lt;span class="answers"&gt; &lt;br /&gt;It’s a method by which web pages can be built and generally used for  formatting and linking text.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="answers" style="font-family: inherit;"&gt;&lt;span class="for_questions_blue" style="font-size: small;"&gt;What is a Web Server? &lt;/span&gt;  &lt;span class="for_questions_blue" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;It’s a Computer that provides Web services on the Internet or on a local  Intranet. It is designed to locate, address and send out simple HTML  pages to all other users who access these pages.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is Session Object? &lt;/b&gt; &lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It stores information about a User’s session. Gives a notification when  a user session begins or ends&lt;/span&gt;. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is Server-Side includes? &lt;/b&gt;&lt;/span&gt;&lt;span class="answers"&gt; &lt;br /&gt;It provides extra information by which it makes the site easier to  manage. It can include text files using the #include statement, retrieve  the size and last modification date of a file, defines how variables and  error messages are displayed and inserts the values of HTTP variables in  the page sent back to the browser.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-5630169796807413276?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5630169796807413276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/5630169796807413276'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/asp-part-i-interview-questions-and.html' title='Asp (Part-I) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-997456457223416407</id><published>2010-01-11T00:21:00.000-08:00</published><updated>2010-03-27T01:43:00.959-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Networking'/><title type='text'>Networking (part - III)  Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Client/Server?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;Clients and Servers are separate logical entities that work together  over a network to accomplish a task. Many systems with very different  architectures that are connected together are also called Client/Server. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;List out the benefits obtained by using the Client/Server oriented TP  Monitors? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;Client/Server applications development framework.&lt;br /&gt;Firewalls of protection.&lt;br /&gt;High availability.&lt;br /&gt;Load balancing.&lt;br /&gt;MOM integration.&lt;br /&gt;Scalability of functions.&lt;br /&gt;Reduced system cost. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the services provided by the Operating System?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;Extended services - These are add-on modular software components that  are layered on top of base service. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is ACID property?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;ACID is a term coined by Andrew Reuter in 1983, which stands for  Atomicity, Consistence, Isolation and Durability. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are Stored procedures?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;A stored procedure i s named collection of SQL statements and  procedural logic that is compiled, verified and stored in a server  database. It is typically treated like any other database object. Stored  procedures accept input parameters so that a single procedure can be  used over the network by multiple clients using different input data. A  single remote message triggers the execution of a collection of stored  SQL statements. The results is a reduction of network traffic and better  performance. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is wide-mouth frog?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;Wide-mouth frog is the simplest known key distribution center (KDC)  authentication protocol. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is passive topology?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;When the computers on the network simply listen and receive the signal,  they are referred to as passive because they don’t amplify the signal in  any way. &lt;br /&gt;Example for passive topology - linear bus. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is region?  &lt;/b&gt;&lt;br /&gt;When hierarchical routing is used, the routers are divided into what we  call regions, with each router knowing all the details about how to  route packets to destinations within its own region, but knowing nothing  about the internal structure of other regions. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is virtual channel?  &lt;/b&gt;&lt;br /&gt;&lt;/span&gt;Virtual channel is normally a connection from one source to one  destination, although multicast connections are also permitted. The  other name for virtual channel is virtual circuit.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;Difference between the communication and transmission? &lt;/b&gt; &lt;/span&gt; &lt;br /&gt;Transmission is a physical movement of information and concern issues  like bit polarity, synchronization, clock etc. &lt;br /&gt;Communication means the meaning full exchange of information between two  communication media. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between TFTP and FTP application layer protocols? &lt;/b&gt; &lt;br /&gt;The Trivial File Transfer Protocol (TFTP) allows a local host to obtain  files from a remote host but does not provide reliability or security.  It uses the fundamental packet delivery services offered by UDP. &lt;br /&gt;The File Transfer Protocol (FTP) is the standard mechanism provided by  TCP / IP for copying a file from one host to another. It uses the  services offered by TCP and so is reliable and secure. It establishes  two connections (virtual circuits) between the hosts, one for data  transfer and another for control information.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the advantages and disadvantages of the three types of routing  tables?&lt;/span&gt; &lt;/b&gt; &lt;br /&gt;The three types of routing tables are fixed, dynamic, and fixed central.  The fixed table must be manually modified every time there is a change.  A dynamic table changes its information based on network traffic,  reducing the amount of manual maintenance. A fixed central table lets a  manager modify only one table, which is then read by other devices. The  fixed central table reduces the need to update each machine's table, as  with the fixed table. Usually a dynamic table causes the fewest problems  for a network administrator, although the table's contents can change  without the administrator being aware of the change.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Beaconing? &lt;/b&gt; &lt;br /&gt;The process that allows a network to self-repair networks problems. The  stations on the network notify the other stations on the ring when they  are not receiving the transmissions. Beaconing is used in Token ring and  FDDI networks.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What does the Mount protocol do ?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;The Mount protocol returns a file handle and the name of the file system  in which a requested file resides. The message is sent to the client  from the server after reception of a client's request. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are Digrams and Trigrams? &lt;/b&gt; &lt;br /&gt;The most common two letter combinations are called as digrams. e.g. th,  in, er, re and an. The most common three letter combinations are called  as trigrams. e.g. the, ing, and, and ion. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the HELLO protocol used for? &lt;/b&gt;&lt;br /&gt;The HELLO protocol uses time instead of distance to determine optimal  routing. It is an alternative to the Routing Information Protocol. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the minimum and maximum length of the header in the TCP segment  and IP datagram? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The header should have a minimum length of 20 bytes and can have a  maximum length of 60 bytes. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What do you meant by "triple X" in Networks?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The function of PAD (Packet Assembler Disassembler) is described in a  document known as X.3. The standard protocol has been defined between  the terminal and the PAD, called X.28; another standard protocol exists  between the PAD and the network, called X.29. Together, these three  recommendations are often called "triple X".&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is attenuation? &lt;/b&gt; &lt;/span&gt; &lt;br /&gt;The degeneration of a signal over distance on a network cable is called  attenuation. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is Protocol Data Unit? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The data unit in the LLC level is called the protocol data unit (PDU).  The PDU contains of four fields a destination service access point (DSAP),  a source service access point (SSAP), a control field and an information  field. DSAP, SSAP are addresses used by the LLC to identify the protocol  stacks on the receiving and sending machines that are generating and  using the data. The control field specifies whether the PDU frame is a  information frame (I - frame) or a supervisory frame (S - frame) or a  unnumbered frame (U - frame). &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the data units at different layers of the TCP / IP protocol  suite? &lt;/b&gt; &lt;br /&gt;The data unit created at the application layer is called a message, at  the transport layer the data unit created is called either a segment or  an user datagram, at the network layer the data unit created is called  the datagram, at the data link layer the datagram is encapsulated in to  a frame and finally transmitted as signals along the transmission media. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is difference between ARP and RARP? &lt;/b&gt; &lt;br /&gt;The address resolution protocol (ARP) is used to associate the 32 bit IP  address with the 48 bit physical address, used by a host or a router to  find the physical address of another host on its network by sending a  ARP query packet that includes the IP address of the receiver. &lt;br /&gt;The reverse address resolution protocol (RARP) allows a host to discover  its Internet address when it knows only its physical address. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is MAC address? &lt;/b&gt; &lt;br /&gt;&lt;/span&gt;The address for a device as it is identified at the Media Access Control  (MAC) layer in the network architecture. MAC address is usually stored  in ROM on the network adapter card and is unique. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is terminal emulation, in which layer it comes?  &lt;/b&gt;&lt;br /&gt;Telnet is also called as terminal emulation. It belongs to application  layer.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What are the types of Transmission media? &lt;/b&gt;&lt;br /&gt;&lt;/span&gt;Signals are usually transmitted over some transmission media that are  broadly classified in to two categories:-&lt;br /&gt;&lt;br /&gt;Guided Media:&lt;br /&gt;&lt;br /&gt;These are those that provide a conduit from one device to another that  include twisted-pair, coaxial cable and fiber-optic cable. A signal  traveling along any of these media is directed and is contained by the  physical limits of the medium. Twisted-pair and coaxial cable use  metallic that accept and transport signals in the form of electrical  current. Optical fiber is a glass or plastic cable that accepts and  transports signals in the form of light.&lt;br /&gt;Unguided Media:&lt;br /&gt;&lt;br /&gt;This is the wireless media that transport electromagnetic waves without  using a physical conductor. Signals are broadcast either through air.  This is done through radio communication, satellite communication and  cellular telephony. &lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-997456457223416407?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/997456457223416407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/997456457223416407'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/networking-part-iii-interview-question.html' title='Networking (part - III)  Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-6990066505513831244</id><published>2009-12-27T00:20:00.000-08:00</published><updated>2010-03-27T01:42:34.553-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Networking'/><title type='text'>Networking (part - II)  Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt; &lt;b&gt;What is Structured Query Langauge (SQL)?&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;SQL is a powerful set-oriented language which was developed by IBM  research for the databases that adhere to the relational model. It  consists of a short list of powerful, yet highly flexible, commands that  can be used to manipulate information collected in tables. Through SQL,  we can manipulate and control sets of records at a time.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is Remote Procedure Call (RPC)? &lt;/b&gt; &lt;br /&gt;&lt;/span&gt;RPC hides the intricacies of the network by using the ordinary procedure  call mechanism familiar to every programmer. A client process calls a  function on a remote server and suspends itself until it gets back the  results. Parameters are passed like in any ordinary procedure. The RPC,  like an ordinary procedure, is synchoronous. The process that issues the  call waits until it gets the results. &lt;br /&gt;Under the covers, the RPC run-time software collects values for the  parameters, forms a message, and sends it to the remote server. The  server receives the request, unpack the parameters, calls the  procedures, and sends the reply back to the client. It is a  telephone-like metaphor. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the main components of Transaction-based Systems? &lt;/b&gt; &lt;br /&gt;Resource Manager&lt;br /&gt;Transaction Manager and&lt;br /&gt;Application Program. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the three types of SQL database server architecture? &lt;/b&gt; &lt;br /&gt;Process-per-client Architecture. (Example: Oracle 6, Informix )&lt;br /&gt;Multithreaded Architecture. (Example: Sybase, SQL server)&lt;br /&gt;Hybrid Architecture&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the Classification of clients? &lt;/b&gt; &lt;br /&gt;Non-GUI clients - Two types are:-&lt;br /&gt;Non-GUI clients that do not need multi-tasking&lt;br /&gt;(Example: Automatic Teller Machines (ATM), Cell phone)&lt;br /&gt;Non-GUI clients that need multi-tasking&lt;br /&gt;(Example: ROBOTs)&lt;br /&gt;&lt;br /&gt;GUI clients&lt;br /&gt;OOUI clients &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are called Non-GUI clients, GUI Clients and OOUI Clients? &lt;/b&gt; &lt;br /&gt;Non-GUI Client: These are applications, generate server requests with a  minimal amount of human interaction.&lt;br /&gt;GUI Clients: These are applicatoins, where occassional requests to the  server result from a human interacting with a GUI&lt;br /&gt;(Example: Windows 3.x, NT 3.5)&lt;br /&gt;OOUI clients : These are applications, which are highly-iconic,  object-oriented user interface that provides seamless access to  information in very visual formats.&lt;br /&gt;(Example: MAC OS, Windows 95, NT 4.0)&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Message Oriented Middleware (MOM)? &lt;/b&gt; &lt;br /&gt;MOM allows general purpose messages to be exchanged in a Client/Server  system using message queues. Applications communicate over networks by  simply putting messages in the queues and getting messages from queues.  It typically provides a very simple high level APIs to its services. &lt;br /&gt;MOM's messaging and queuing allow clients and servers to communicate  across a network without being linked by a private, dedicated, logical  connection. The clients and server can run at different times. It is a  post-office like metaphor.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by Middleware? &lt;/b&gt; &lt;br /&gt;Middleware is a distributed software needed to support interaction  between clients and servers. In short, it is the software that is in the  middle of the Client/Server systems and it acts as a bridge between the  clients and servers. It starts with the API set on the client side that  is used to invoke a service and it covers the transmission of the  request over the network and the resulting response. &lt;br /&gt;It neither includes the software that provides the actual service - that  is in the servers domain nor the user interface or the application login  - that's in clients domain.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the functions of the typical server program? &lt;/b&gt; &lt;br /&gt;It waits for client-initiated requests. Executes many requests at the  same time. Takes care of VIP clients first. Initiates and runs  background task activity. Keeps running. Grown bigger and faster. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by Symmentric Multiprocessing (SMP)? &lt;/b&gt; &lt;br /&gt;It treats all processors as equal. Any processor can do the work of any  other processor. Applications are divided into threads that can run  concurrently on any available processor. Any processor in the pool can  run the OS kernel and execute user-written threads.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are General Middleware? &lt;/b&gt; &lt;br /&gt;It includes the communication stacks, distributed directories,  authentication services, network time, RPC, Queuing services along with  the network OS extensions such as the distributed file and print  services.&amp;nbsp;&lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are Service-specific middleware?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;It is needed to accomplish a particular Client/Server type of services  which includes:-&lt;br /&gt;Database specific middleware&lt;br /&gt;OLTP specific middleware&lt;br /&gt;Groupware specific middleware&lt;br /&gt;Object specific middleware&lt;br /&gt;Internet specific middleware and&lt;br /&gt;System management specific middleware.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by Asymmetric Multiprocessing (AMP)? &lt;/b&gt; &lt;br /&gt;It imposses hierarchy and a division of labour among processors. Only  one designated processor, the master, controls (in a tightly coupled  arrangement) slave processors dedicated to specific functions.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is OLTP? &lt;/b&gt; &lt;/span&gt; &lt;br /&gt;In the transaction server, the client component usually includes GUI and  the server components usually consists of SQL transactions against a  database. These applications are called OLTP (Online Transaction  Processing) OLTP Applications typically, &lt;br /&gt;Receive a fixed set of inputs from remote clients. Perform multiple  pre-compiled SQL comments against a local database. Commit the work and  Return a fixed set of results. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by 3-Tier architecture? &lt;/b&gt; &lt;br /&gt;In 3-tier Client/Server systems, the application logic (or process)  lives in the middle tier and it is separated from the data and the user  interface. In theory, the 3-tier Client/Server systems are more  scalable, robust and flexible. &lt;br /&gt;Example: TP monitor, Web. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by 2-Tier architecture? &lt;/b&gt; &lt;br /&gt;In 2-tier Client/Server systems, the application logic is either burried  inside the user interface on the client or within the database on the  server. &lt;br /&gt;Example: File servers and Database servers with stored procedures. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Load balancing? &lt;/b&gt; &lt;br /&gt;If the number of incoming clients requests exceeds the number of  processes in a server class, the TP Monitor may dynamically start new  ones and this is called Load balancing. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are called Fat clients and Fat servers?  &lt;/b&gt;&lt;br /&gt;If the bulk of the application runs on the Client side, then it is Fat  clients. It is used for decision support and personal software. &lt;br /&gt;If the bulk of the application runs on the Server side, then it is Fat  servers. It tries to minimize network interchanges by creating more  abstract levels of services. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What is meant by Horizontal scaling and Vertical scaling?  &lt;/b&gt;&lt;br /&gt;&lt;/span&gt;Horizontal scaling means adding or removing client workstations with  only a slight performance impact. Vertical scaling means migrating to a  larger and faster server machine or multiservers. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Groupware server?  &lt;/b&gt;&lt;br /&gt;Groupware addresses the management of semi-structured information such  as text, image, mail, bulletin boards and the flow of work. These  Client/Server systems have people in direct contact with other people. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the two broad classes of middleware?  &lt;/b&gt;&lt;br /&gt;General middleware&lt;br /&gt;Service-specific middleware. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the types of Servers?  &lt;/b&gt;&lt;br /&gt;File servers&lt;br /&gt;Database servers Transaction servers Groupware servers Object servers  Web servers. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a File server? &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;File servers are useful for sharing files across a network. With a file  server, the client passes requests for file records over nerwork to file  server.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the five major technologies that can be used to create  Client/Server applications? &lt;/span&gt; &lt;br /&gt;&lt;/b&gt;Database Servers&lt;br /&gt;TP Monitors&lt;br /&gt;Groupware&lt;br /&gt;Distributed Objects&lt;br /&gt;Intranets.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-6990066505513831244?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6990066505513831244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/6990066505513831244'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/networking-part-ii-interview-question.html' title='Networking (part - II)  Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-1176524407527991908</id><published>2009-12-06T00:19:00.000-08:00</published><updated>2010-03-27T01:42:00.285-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Networking'/><title type='text'>Networking (part - I)  Interview Question and Answers</title><content type='html'>&lt;div class="answers"&gt;&lt;span class="answers"&gt; &lt;b&gt;What is an Object server?&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;With an object server, the Client/Server application is written as a set  of communicating objects. Client object communicate with server objects  using an Object Request Broker (ORB). The client invokes a method on a  remote object. The ORB locates an instance of that object server class,  invokes the requested method and returns the results to the client  object. Server objects must provide support for concurrency and sharing.  The ORB brings it all together. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Transaction server?   &lt;/b&gt; &lt;br /&gt;With a transaction server, the client invokes remote procedures that  reside on the server with an SQL database engine. These remote  procedures on the server execute a group of SQL statements. The network  exchange consists of a single request/reply message. The SQL statements  either all succeed or fail as a unit. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Database Server?   &lt;/b&gt; &lt;br /&gt;With a database server, the client passes SQL requests as messages to  the database server. The results of each SQL command are returned over  the network. The server uses its own processing power to find the  request data instead of passing all the records back to the client and  then getting it find its own data. The result is a much more efficient  use of distributed processing power. It is also known as SQL engine. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the most typical functional units of the Client/Server  applications? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;User interface&lt;br /&gt;Business Logic and &lt;br /&gt;Shared data. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are all the Extended services provided by the OS?    &lt;/b&gt;&lt;/div&gt;&lt;div class="answers"&gt;Ubiquitous communications &lt;br /&gt;Network OS extension&lt;br /&gt;Binary large objects (BLOBs)&lt;br /&gt;Global directories and Network yellow pages&lt;br /&gt;Authentication and Authorization services&lt;br /&gt;System management&lt;br /&gt;Network time&lt;br /&gt;Database and transaction services&lt;br /&gt;Internet services&lt;br /&gt;Object- oriented services &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are Triggers and Rules?&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;Triggers are special user defined actions usually in the form of stored  procedures, that are automatically invoked by the server based on data  related events. It can perform complex actions and can use the full  power of procedural languages. &lt;br /&gt;A rule is a special type of trigger that is used to perform simple  checks on data. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is meant by Transparency?   &lt;/b&gt;&lt;br /&gt;Transparency really means hiding the network and its servers from the  users and even the application programmers. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are TP-Lite and TP-Heavy Monitors? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;TP-Lite is simply the integration of TP Monitor functions in the  database engines. TP-Heavy are TP Monitors which supports the  Client/Server architecture and allow PC to initiate some very complex  multiserver transaction from the desktop. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the two types of OLTP?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;TP lite, based on stored procedures. TP heavy, based on the TP monitors. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a Web server?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;This new model of Client/Server consists of thin, protable, "universal"  clients that talk to superfat servers. In the simplet form, a web server  returns documents when clients ask for them by name. The clients and  server communicate using an RPC-like protocol called HTTP.&lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt; What are Super servers?   &lt;/b&gt;&lt;/span&gt; &lt;br /&gt;These are fully-loaded machines which includes multiprocessors,  high-speed disk arrays for intervive I/O and fault tolerant features. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is a TP Monitor?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;There is no commonly accepted definition for a TP monitor. According to  Jeri Edwards' a TP Monitor is "an OS for transaction processing". &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;TP Monitor does mainly two things extremely well. They are Process  management and Transaction management.? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;They were originally introduced to run classes of applications that  could service hundreds and sometimes thousands of clients. TP Monitors  provide an OS - on top of existing OS - that connects in real time these  thousands of humans with a pool of shared server processes.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is meant by Asymmetrical protocols?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;There is a many-to-one relationship between clients and server. Clients  always initiate the dialog by requesting a service. Servers are  passively awaiting for requests from clients. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the types of Transparencies?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The types of transparencies the NOS middleware is expected to provide  are:-&lt;br /&gt;Location transparency&lt;br /&gt;Namespace transparency&lt;br /&gt;Logon transparency&lt;br /&gt;Replication transparency&lt;br /&gt;Local/Remote access transparency&lt;br /&gt;Distributed time transparency&lt;br /&gt;Failure transparency and&lt;br /&gt;Administration transparency. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the difference between trigger and rule?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The triggers are called implicitly by database generated events, while  stored procedures are called explicitly by client applications. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are called Transactions?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The grouped SQL statements are called Transactions (or) A transaction is  a collection of actions embused with ACID properties. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are the building blocks of Client/Server?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The client&lt;br /&gt;The server and&lt;br /&gt;Middleware. &lt;/div&gt;&lt;div class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Explain the building blocks of Client/Server?  &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;The client side building block runs the client side of the application.&lt;br /&gt;The server side building block runs the server side of the application. &lt;/div&gt;&lt;div class="for_questions_blue"&gt;&lt;b&gt;The middleware buliding block runs on both the client and server sides  of an application. It is broken into three categories:- &lt;/b&gt;&lt;/div&gt;&lt;div class="answers"&gt;Transport stack&lt;br /&gt;Network OS&lt;br /&gt;Service-specific middleware.&lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are all the Base services provided by the OS? &lt;/b&gt;&lt;br /&gt;Task preemption&lt;br /&gt;Task priority&lt;br /&gt;Semaphores&lt;br /&gt;Interprocess communications (IPC)&lt;br /&gt;Local/Remote Interprocess communication&lt;br /&gt;Threads&lt;br /&gt;Intertask protection&lt;br /&gt;Multiuser&lt;br /&gt;High performance file system&lt;br /&gt;Efficient memory management and&lt;br /&gt;Dynamically linked Run-time extensions. &lt;/div&gt;&lt;div class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;What are the roles of SQL? &lt;/b&gt; &lt;br /&gt;&lt;/span&gt;SQL is an interactive query language for ad hoc database queries.&lt;br /&gt;SQL is a database programming language.&lt;br /&gt;SQL is a data definition and data administration language.&lt;br /&gt;SQL is the language of networked database servers&lt;br /&gt;SQL helps protect the data in a multi-user networked environment.&lt;br /&gt;Because of these multifacted roles it plays, physicists might call SQL  as "The grand unified theory of database". &lt;/div&gt;&lt;div class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the characteristics of Client/Server?  &lt;/b&gt;&lt;br /&gt;Service&lt;br /&gt;Shared resources&lt;br /&gt;Asymmentrical protocols&lt;br /&gt;Transparency of location&lt;br /&gt;Mix-and-match&lt;br /&gt;Message based exchanges&lt;br /&gt;Encapsulation of services&lt;br /&gt;Scalability&lt;br /&gt;Integrity &lt;br /&gt;Client/Server computing is the ultimate "Open platform". It gives the  freedom to mix-and-match components of almost any level. Clients and  servers are loosely coupled systems that interact through a  message-passing mechanism. &lt;/div&gt;&lt;div class="answers"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-1176524407527991908?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1176524407527991908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/1176524407527991908'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2010/03/networking-part-i-interview-question.html' title='Networking (part - I)  Interview Question and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-4942021082505087838</id><published>2009-11-17T22:52:00.000-08:00</published><updated>2009-11-17T22:52:00.579-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Jms'/><category scheme='http://www.blogger.com/atom/ns#' term='j2ee'/><title type='text'>JMS (Part III) Interview Questions and Answers</title><content type='html'>&lt;strong&gt;Why do the JMS dbms_aqadm.add_subscriber and dbms_aqadm.remove_subscriber calls sometimes hang when there are concurrent enqueues or dequeues happening on the same queue to which these calls are issued?&lt;/strong&gt;&lt;br /&gt;Add_subscriber and remove_subscriber are administrative operations on a queue. Though AQ does not prevent applications from issuing administrative and operational calls concurrently, they are executed serially. Both add_subscriber and remove_subscriber will block until pending transactions that have enqueued or dequeued messages commit and release the resources they hold. It is expected that adding and removing subscribers will not be a frequent event. It will mostly be part of the setup for the application. The behavior you observe will be acceptable in most cases. The solution is to try to isolate the calls to add_subscriber and remove_subscriber at the setup or cleanup phase when there are no other operations happening on the queue. That will make sure that they will not stay blocked waiting for operational calls to release resources.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Why do the TopicSession.createDurableSubscriber and TopicSession.unubscribe calls raise JMSException with the message "ORA - 4020 - deadlock detected while trying to lock object"?&lt;/strong&gt;&lt;br /&gt;CreateDurableSubscriber and unsubscribe calls require exclusive access to the Topics. If there are pending JMS operations (send/publish/receive) on the same Topic before these calls are issued, the ORA - 4020 exception is raised. There are two solutions to the problem:1. Try to isolate the calls to createDurableSubscriber and unsubscribe at the setup or cleanup phase when there are no other JMS operations happening on the Topic. That will make sure that the required resources are not held by other JMS operational calls. Hence the error ORA - 4020 will not be raised.2. Issue a TopicSession.commit call before calling createDurableSubscriber and unsubscribe call.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;Why doesn't AQ_ADMINISTRATOR_ROLE or AQ_USER_ROLE always work for AQ applications using Java/JMS API?&lt;/strong&gt;&lt;br /&gt; In addition to granting the roles, you would also need to grant execute to the user on the following packages: * grant execute on sys.dbms_aqin to &lt;userid&gt;* grant execute on sys.dbms_aqjms to &lt;userid&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Why do I get java.security.AccessControlException when using JMS MessageListeners from Java stored procedures inside Oracle8i JServer?&lt;/strong&gt;&lt;br /&gt; To use MessageListeners inside Oracle8i JServer, you can do one for the following1. GRANT JAVASYSPRIV to &lt;userid&gt;Call dbms_java.grant_permission ('JAVASYSPRIV', 'SYS:java.net.SocketPermission', '*', 'accept,connect,listen,resolve');&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the use of ObjectMessage?&lt;/strong&gt;&lt;br /&gt; ObjectMessage contains a Serializable java object as it's payload. Thus it allows exchange of Java objects between applications. This in itself mandates that both the applications be Java applications. The consumer of the message must typecast the object received to it's appropriate type. Thus the consumer should before hand know the actual type of the object sent by the sender. Wrong type casting would result in ClassCastException. Moreover the class definition of the object set in the payload should be available on both the machine, the sender as well as the consumer. If the class definition is not available in the consumer machine, an attempt to type cast would result in ClassNotFoundException. Some of the MOMs might support dynamic loading of the desired class over the network, but the JMS specification does not mandate this behavior and would be a value added service if provided by your vendor. And relying on any such vendor specific functionality would hamper the portability of your application. Most of the time the class need to be put in the classpath of both, the sender and the consumer, manually by the developer.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the use of MapMessage? &lt;/strong&gt;&lt;br /&gt;A MapMessage carries name-value pair as it's payload. Thus it's payload is similar to the java.util.Properties object of Java. The values can be Java primitives or their wrappers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between BytesMessage and StreamMessage?&lt;/strong&gt;&lt;br /&gt; BytesMessage stores the primitive data types by converting them to their byte representation. Thus the message is one contiguous stream of bytes. While the StreamMessage maintains a boundary between the different data types stored because it also stores the type information along with the value of the primitive being stored. BytesMessage allows data to be read using any type. Thus even if your payload contains a long value, you can invoke a method to read a short and it will return you something. It will not give you a semantically correct data but the call will succeed in reading the first two bytes of data. This is strictly prohibited in the StreamMessage. It maintains the type information of the data being stored and enforces strict conversion rules on the data being read.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is object message ?&lt;/strong&gt;&lt;br /&gt; Object message contains a group of serializeable java object. So it allows exchange of Java objects between applications. sot both the applications must be Java applications.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is text message?&lt;/strong&gt;&lt;br /&gt; Text messages contains String messages (since being widely used, a separate messaging Type has been supported) . It is useful for exchanging textual data and complex character data like XML.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Map message? &lt;/strong&gt;&lt;br /&gt;map message contains name value Pairs. The values can be of type primitives and its wrappers. The name is a string.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between queue and topic ? &lt;/strong&gt;&lt;br /&gt;A topic is typically used for one to many messaging , while queue is used for one-to-one messaging. Topic .e. it supports publish subscribe model of messaging where queue supports Point to Point Messaging.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the three components of a Message ?&lt;/strong&gt;&lt;br /&gt; A jms message has three components1. A header2. Properties (Optional)3. A body (Optional).&lt;br /&gt; A JMS message consists of three parts:Message header - For message identification. For example, the header is used to determine if a given message is appropriate for a "subscriber" Properties - For application-specific, provider-specific, and optional header fields Body - Holds the content of the message. Several formats are supported, including TextMessage, which wrap a simple String, that wrap arbitrary Java objects (which must be serializable). Other formats are supported as well.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between queue and topic?&lt;/strong&gt;&lt;br /&gt;A connection is created between the client and the server from a connection factory. Connections can be shared by several threads. The user credentials are supplied at this level. It is probably common for a client application to share access to a single connection to the server (unless different security credentials are required for different destinations). A session is created from a connection. The session may only be used by one thread at one time. The user credentials are inherited from the parent connection. It is probably common for each MessageProducer (TopicPublisher or QueueSender) or MessageConsumer (TopicSubscriber or QueueReceiver) to have their own session due to the threading restriction. You can look at it like a tree. At the top you have a connection factory, beneath this you have your connections and then beneath the connections you have sessions. The leaves of the tree are the JMS actors (MessageProducers and MessageConsumers).&lt;br /&gt;Both work on 2 different comminication models. Queue is point-to-point and topic is publish-subscriber.&lt;br /&gt;In queues, one message can be consumed by only one client. But in the topics, one message can be consumed by many clients. Both are separate domains in MOM. Queue represent Point-To-Point domain and Topic represent Pub/Sub domain&lt;br /&gt;A point-to-point (PTP) product or application is built around the concept of message queues, senders, and receivers. Each message is addressed to a specific queue, and receiving clients extract messages from the queue(s) established to hold their messages. Queues retain all messages sent to them until the messages are consumed or until the messages expire. In a publish/subscribe (pub/sub) product or application, clients address messages to a topic. Publishers and subscribers are generally anonymous and may dynamically publish or subscribe to the content hierarchy. The system takes care of distributing the messages arriving from a topic's multiple publishers to its multiple subscribers. Topics retain messages only as long as it takes to distribute them to current subscribers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the types of messaging?&lt;/strong&gt;&lt;br /&gt; There are two kinds of Messaging. Synchronous messaging involves a client that waits for the server to respond to a message. Asynchronous messaging involves a client that does not wait for a message from the server. An event is used to trigger a message from a server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between Point to Point and Publish/Subscribe ?&lt;/strong&gt;&lt;br /&gt;Point-to-point (P2P) In point-to-point, messages are sent via queues. Messages are put onto the queues by the message producers (the clients). The message consumer is responsible for pulling the message from the queue. Point-to-point is typically used when a given message must be processed (received) only once by a given consumer. In this way, there is only one consumer of the given message. Publish-and-subscribe (pub/sub)In publish-and-subscribe, messages are sent through topics. Messages are published to topics by the message producers. The messages may be received by any consumers that subscribe to the given topic. In this way, a message may be received, or processed, by multiple consumers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Why doesn’t the JMS API provide end-to-end synchronous message delivery and notification of delivery? &lt;/strong&gt;&lt;br /&gt;Some messaging systems provide synchronous delivery to destinations as a mechanism for implementing reliable applications. Some systems provide clients with various forms of delivery notification so that the clients can detect dropped or ignored messages. This is not the model defined by the JMS API. JMS API messaging provides guaranteed delivery via the once-and-only-once delivery semantics of PERSISTENT messages. In addition, message consumers can insure reliable processing of messages by using either CLIENT_ACKNOWLEDGE mode or transacted sessions. This achieves reliable delivery with minimum synchronization and is the enterprise messaging model most vendors and developers prefer. The JMS API does not define a schema of systems messages (such as delivery notifications). If an application requires acknowledgment of message receipt, it can define an application-level acknowledgment message.&lt;br /&gt;&lt;strong&gt;What are the core JMS-related objects required for each JMS-enabled application? &lt;/strong&gt;&lt;br /&gt;Each JMS-enabled client must establish the following:* A connection object provided by the JMS server (the message broker)* Within a connection, one or more sessions, which provide a context for message sending and receiving* Within a session, either a queue or topic object representing the destination (the message staging area) within the message broker* Within a session, the appropriate sender or publisher or receiver or subscriber object (depending on whether the client is a message producer or consumer and uses a point-to-point or publish/subscribe strategy, respectively). Within a session, a message object (to send or to receive)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How does the Application server handle the JMS Connection? &lt;/strong&gt;&lt;br /&gt;1. App server creates the server session and stores them in a pool.2. Connection consumer uses the server session to put messages in the session of the JMS.3. Server session is the one that spawns the JMS session.4. Applications written by Application programmers creates the message listener.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Stream Message ?&lt;/strong&gt;&lt;br /&gt; Stream messages are a group of java primitives. It contains some convenient methods for reading the data. However Stream Message prevents reading a long value as short. This is so because the Stream Message also writes the type information along with the value of the primitive type and enforces a set of strict conversion rules which actually prevents reading of one primitive type as another.&lt;div class="blogger-post-footer"&gt;__________________________________________________________________________________________

visit For Software Professionals @ www.softwaaree.blogspot.com for more in this....&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7437680438668321229-4942021082505087838?l=softwaaree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/4942021082505087838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7437680438668321229/posts/default/4942021082505087838'/><link rel='alternate' type='text/html' href='http://softwaaree.blogspot.com/2009/11/jms-part-iii-interview-questions-and.html' title='JMS (Part III) Interview Questions and Answers'/><author><name>J.A.R.P</name><uri>http://www.blogger.com/profile/02310413606574586257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://3.bp.blogspot.com/_vXIg_k9IbTA/SRlWChctEKI/AAAAAAAAATU/r90UUrmedPg/S220/seal.bmp'/></author></entry><entry><id>tag:blogger.com,1999:blog-7437680438668321229.post-1350132903621558032</id><published>2009-11-11T22:37:00.000-08:00</published><updated>2009-11-11T22:37:00.500-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Jms'/><category scheme='http://www.blogger.com/atom/ns#' term='j2ee'/><title type='text'>JMS (Part II) Interview Question and Answers</title><content type='html'>&lt;strong&gt;What is the difference between Message producer and Message consumer?&lt;/strong&gt;&lt;br /&gt;Messaging systems provide a host of powerful advantages over other conventional distributed computing models. Primarily, they encourage "loose coupling" between message consumers and message producers. There is a high degree of anonymity between producer and consumer: to the message consumer, it doesn't matter who produced the message, where the producer lives on the network, or when the message was produced.&lt;br /&gt; In Publish/Subscribe model: A publish/subscribe (pub/sub) messaging system supports an event driven model where information consumers and producers participate in the transmission of messages. Producers "publish" events, while consumers "subscribe" to events of interest, and consume the events. Producers associate messages with a specific topic, and the messaging system routes messages to consumers based on the topics the consumers register interest in. In Point-To-Point model: In point to point messaging systems, messages are routed to an individual consumer which maintains a queue of "incoming" messages. Messaging applications send messages to a specified queue, and clients retrieve messages from a queue.&lt;br /&gt;In Point-To-Point model, one client can send message to the another client through the Destination.There is a guarantee to recieve the message whenever reciever is connected.example:your telephone answering machine ,outer send a message to u,but you can recieve those msg whenever u coonected to answering machine. In pub/sub model. one publisher,many no.of clients willbe there,publisher publish the message,subscriber or consumer can recieve those messages when he got subscription through the topic.There is no guarantee consumer can recieve the messages send by the publisher.&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;What is JMS application ?&lt;/strong&gt;&lt;br /&gt; One or more JMS clients that exchange messages.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What type messaging is provided by JMS ?&lt;/strong&gt;&lt;br /&gt; Both synchronous and asynchronous are provided by JMS.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How JMS is different from RPC?&lt;/strong&gt;&lt;br /&gt; In RPC the method invoker waits for the method to finish execution and return the control back to the invoker. Thus it is completely synchronous in nature. While in JMS the message sender just sends the message to the destination and continues it's own processing. The sender does not wait for the receiver to respond. This is asynchronous behavior.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What Is the JMS API? &lt;/strong&gt;&lt;br /&gt;The Java Message Service is a Java API that allows applications to create, send, receive, and read messages. Designed by Sun and several partner companies, the JMS API defines a common set of interfaces and associated semantics that allow programs written in the Java programming language to communicate with other messaging implementations. The JMS API minimizes the set of concepts a programmer must learn to use messaging products but provides enough features to support sophisticated messaging applications. It also strives to maximize the portability of JMS applications across JMS providers in the same messaging domain. The JMS API enables communication that is not only loosely coupled but also* Asynchronous. A JMS provider can deliver messages to a client as they arrive; a client does not have to request messages in order to receive them.* Reliable. The JMS API can ensure that a message is delivered once and only once. Lower levels of reliability are available for applications that can afford to miss messages or to receive duplicate messages. The JMS Specification was first published in August 1998. The latest version of the JMS Specification is Version 1.1, which was released in April 2002. You can download a copy of the Specification from the JMS Web site.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is JMS client&lt;/strong&gt; &lt;strong&gt;?&lt;/strong&gt;&lt;br /&gt; A Java language program that sends or receives messages.&lt;br /&gt;Give an example of using the point-to-point model The point-to-point model is used when the information is specific to a single client. For example, a client can send a message for a print out, and the server can send information back to this client after completion of the print job.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Producer and Consumer? &lt;/strong&gt;&lt;br /&gt; Messaging lets a servlet delegate processing to a batch process either on the same machine or on a separate machine. The servlet creates a message and sends it to a queue. The servlet immediately completes and when the batch process is ready, it processes the message. Messaging is therefore comprised of three main components: A Producer creates messages and sends them to a Queue. The Producer could be something like a Servlet. A Queue stores the messages from the Produces and provides them to a Consumer when ready. The Queue is implemented by the messaging provider. A Consumer processes messages as they become available in the Queue. The Consumer is typically a bean implementing the MessageListener interface.&lt;br /&gt;A producer is the client application that plays the role of a message sender in JMS API. A consumer is the client application that plays the role of a message receiver in JMS API.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Can JMS utilities automatically re-establish a connection if one side of the communication link (i.e. an application that's sending/receiving messages) goes down and is restarted? &lt;/strong&gt;&lt;br /&gt;Are there APIs to help detect that the other side broke a connection (went down)? Yes. You can write a snooper files to detect the service and restart the node upon node fail and a server instance fail.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the Role of the JMS Provider? &lt;/strong&gt;&lt;br /&gt;The JMS provider handles security of the messages, data conversion and the client triggering. The JMS provider specifies the level of encryption and the security level of the message, the best data type for the non-JMS client.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is JMS provider? &lt;/strong&gt;&lt;br /&gt;A messaging system that implements the Java Message Service as well as other administrative&lt;br /&gt;and control functionality needed in a full-featured messaging product.&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;What is Byte Message ?&lt;/strong&gt;&lt;br /&gt;Byte Messages contains a Stream of uninterrupted bytes. Byte Message contains an array of primitive bytes in it's payload. Thus it can be used for transfer of data between two applications in their native format which may not be compatible with other Message types. It is also useful where JMS is used purely as a transport between two systems and the message payload is opaque to the JMS client.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between Byte Message and Stream Message?&lt;/strong&gt;&lt;br /&gt; Bytes Message stores data in bytes. Thus the message is one contiguous stream of bytes. While the Stream Message maintains a boundary between the different data types stored because it also stores the type information along with the value of the primitive being stored. Bytes Message allows data to be read using any type. Thus even if your payload contains a long value, you can invoke a method to read a short and it will return you something. It will not give you a semantically correct data but the call will succeed in reading the first two bytes of data. This is strictly prohibited in the Stream Message. It maintains the type information of the data being stored and enforces strict conversion rules on the data being read.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the advantages of JMS? &lt;/strong&gt;&lt;br /&gt;JMS is asynchronous in nature. Thus not all the pieces need to be up all the time for the application to function as a whole. Even if the receiver is down the MOM will store the messages on it's behalf and will send them once it comes back up. Thus at least a part of application can still function as there is no blocking.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Are you aware of any major JMS products available in the market?&lt;/strong&gt;&lt;br /&gt; IBM's MQ Series is one of the most popular product used as Message Oriented Middleware. Some of the other products are SonicMQ, iBus etc. Weblogic application server also comes with built in support for JMS messaging.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the different types of messages available in the JMS API? &lt;/strong&gt;&lt;br /&gt;Message, TextMessage, BytesMessage, StreamMessage, ObjectMessage, MapMessage are the different messages available in the JMS API.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the different messaging paradigms JMS supports? &lt;/strong&gt;&lt;br /&gt;Publish and Subscribe i.e. pub/suc and Point to Point i.e. p2p.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between topic and queue? &lt;/strong&gt;&lt;br /&gt;A topic is typically used for one to many messaging i.e. it supports publish subscribe model of messaging. While queue is used for one-to-one messaging i.e. it supports Point to Point Messaging.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How Does the JMS API Work with the J2EE Platform? &lt;/strong&gt;&lt;br /&gt;When the JMS API was introduced in 1998, its most important purpose was to allow Java applications to access existing messaging-oriented middleware (MOM) systems, such as MQSeries from IBM. Since that time, many vendors have adopted and implemented the JMS API, so that a JMS product can now provide a complete messaging capability for an enterprise. Since the 1.3 release of the J2EE platform ("the J2EE 1.3 platform"), the JMS API has been an integral part of the platform, and application developers can use messaging with components using J2EE APIs ("J2EE components"). The JMS API in the J2EE platform has the following features. * Application clients, Enterprise JavaBeans (EJB) components, and Web components can send or synchronously receive a JMS message. Application clients can in addition receive JMS messages asynchronously. (Applets, however, are not required to support the JMS API.)* Message-driven beans, which are a kind of enterprise bean, enable the asynchronous consumption of messages. A JMS provider may optionally implement concurrent processing of messages by message-driven beans.* Message sends and receives can participate in distributed transactions.The JMS API enhances the J2EE platform by simplifying enterprise development, allowin
