<?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:blogger='http://schemas.google.com/blogger/2008' 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-6899023006941400145</id><updated>2024-12-19T09:25:37.268+06:00</updated><category term="J2EE"/><category term="java"/><category term="j2me"/><category term="Ajax"/><category term="JQuery"/><category term="CSS"/><category term="C#"/><category term="JAVASCRIPT"/><category term="JSP"/><category term="Networking"/><category term="PHP"/><category term="Qality Assurance"/><title type='text'>interview questions and answers</title><subtitle type='html'>a web page that contain all of interview questions and answer related to programming languages such as java , j2se , j2ee ,php , asp , html , javascript , mysql ,oracle , jdbc ,c,c++,css , database .</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-7702211227680179747</id><published>2010-03-10T19:26:00.000+06:00</published><updated>2010-03-10T19:26:37.121+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>Socket Programming Interview Questions and Answers</title><content type='html'>Socket Programming Interview Questions and Answers&lt;br /&gt;
&lt;br /&gt;
How does the race condition occur?&lt;br /&gt;
It occurs when two or more processes are reading or writing some shared data and the final result depends on who runs precisely when. &lt;br /&gt;
&lt;br /&gt;
What is multiprogramming? &lt;br /&gt;
Multiprogramming is a rapid switching of the CPU back and forth between processes. &lt;br /&gt;
&lt;br /&gt;
Name the seven layers of the OSI Model and describe them briefly. &lt;br /&gt;
Physical Layer - covers the physical interface between devices and the rules by which bits are passed from one to another. &lt;br /&gt;
Data Link Layer - attempts o make the physical link reliable and provides the means to activate, maintain, and deactivate the link. &lt;br /&gt;
Network Layer - provides for the transfer of information between end systems across &lt;br /&gt;
some sort communications network. &lt;br /&gt;
Transport Layer - provides a mechanism for the exchange of data between end system. &lt;br /&gt;
Session Layer - provides the mechanism for controlling the dialogue between applications in end systems. &lt;br /&gt;
Presentation Layer - defines the format of the data to be exchanged between applications and offers application programs a set of data transformation services. &lt;br /&gt;
Application Layer - provides a means for application programs to access the OSI environment. &lt;br /&gt;
&lt;br /&gt;
What is the difference between TCP and UDP? &lt;br /&gt;
TCP and UDP are both transport-level protocols. TCP is designed to provide reliable communication across a variety of reliable and unreliable networks and internets. &lt;br /&gt;
&lt;br /&gt;
UDP provides a connectionless service for application-level procedures. Thus, UDP is basically an unreliable service; delivery and duplicate protection are not guaranteed. &lt;br /&gt;
&lt;br /&gt;
What does a socket consists of? &lt;br /&gt;
The combination of an IP address and a port number is called a socket.&lt;br /&gt;
&lt;br /&gt;
What are some advantages and disadvantages of Java Sockets?&lt;br /&gt;
&lt;br /&gt;
Advantages of Java Sockets: &lt;br /&gt;
Sockets are flexible and sufficient. Efficient socket based programming can be easily implemented for general communications. &lt;br /&gt;
Sockets cause low network traffic. Unlike HTML forms and CGI scripts that generate and transfer whole web pages for each new request, Java applets can send only necessary updated information. &lt;br /&gt;
&lt;br /&gt;
Disadvantages of Java Sockets:&lt;br /&gt;
Security restrictions are sometimes overbearing because a Java applet running in a Web browser is only able to establish connections to the machine where it came from, and to nowhere else on the network &lt;br /&gt;
Despite all of the useful and helpful Java features, Socket based communications allows only to send packets of raw data between applications. Both the client-side and server-side have to provide mechanisms to make the data useful in any way. &lt;br /&gt;
Since the data formats and protocols remain application specific, the re-use of socket based implementations is limited. &lt;br /&gt;
&lt;br /&gt;
What is the difference between a NULL pointer and a void pointer? &lt;br /&gt;
A NULL pointer is a pointer of any type whose value is zero. A void pointer is a pointer to an object of an unknown type, and is guaranteed to have enough bits to hold a pointer to any object. A void pointer is not guaranteed to have enough bits to point to a function (though in general practice it does). &lt;br /&gt;
&lt;br /&gt;
What is encapsulation technique? &lt;br /&gt;
ANSWER: Hiding data within the class and making it available only through the methods. This technique is used to protect your class against accidental changes to fields, which might leave the class in an inconsistent state.</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/7702211227680179747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/socket-programming-interview-questions_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7702211227680179747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7702211227680179747'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/socket-programming-interview-questions_10.html' title='Socket Programming Interview Questions and Answers'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-8597685093484738099</id><published>2010-03-10T19:22:00.003+06:00</published><updated>2010-03-10T19:22:45.295+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>Socket Programming Interview Questions and Answers</title><content type='html'>Socket Programming Interview Questions and Answers&lt;br /&gt;
&lt;br /&gt;
How does the race condition occur?&lt;br /&gt;
It occurs when two or more processes are reading or writing some shared data and the final result depends on who runs precisely when. &lt;br /&gt;
&lt;br /&gt;
What is multiprogramming? &lt;br /&gt;
Multiprogramming is a rapid switching of the CPU back and forth between processes.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
Name the seven layers of the OSI Model and describe them briefly. &lt;br /&gt;
Physical Layer - covers the physical interface between devices and the rules by which bits are passed from one to another. &lt;br /&gt;
Data Link Layer - attempts o make the physical link reliable and provides the means to activate, maintain, and deactivate the link. &lt;br /&gt;
Network Layer - provides for the transfer of information between end systems across &lt;br /&gt;
some sort communications network. &lt;br /&gt;
Transport Layer - provides a mechanism for the exchange of data between end system. &lt;br /&gt;
Session Layer - provides the mechanism for controlling the dialogue between applications in end systems. &lt;br /&gt;
Presentation Layer - defines the format of the data to be exchanged between applications and offers application programs a set of data transformation services. &lt;br /&gt;
Application Layer - provides a means for application programs to access the OSI environment. &lt;br /&gt;
&lt;br /&gt;
What is the difference between TCP and UDP? &lt;br /&gt;
TCP and UDP are both transport-level protocols. TCP is designed to provide reliable communication across a variety of reliable and unreliable networks and internets. &lt;br /&gt;
&lt;br /&gt;
UDP provides a connectionless service for application-level procedures. Thus, UDP is basically an unreliable service; delivery and duplicate protection are not guaranteed. &lt;br /&gt;
&lt;br /&gt;
What does a socket consists of? &lt;br /&gt;
The combination of an IP address and a port number is called a socket.&lt;br /&gt;
&lt;br /&gt;
What are some advantages and disadvantages of Java Sockets?&lt;br /&gt;
&lt;br /&gt;
Advantages of Java Sockets: &lt;br /&gt;
Sockets are flexible and sufficient. Efficient socket based programming can be easily implemented for general communications. &lt;br /&gt;
Sockets cause low network traffic. Unlike HTML forms and CGI scripts that generate and transfer whole web pages for each new request, Java applets can send only necessary updated information. &lt;br /&gt;
&lt;br /&gt;
Disadvantages of Java Sockets:&lt;br /&gt;
Security restrictions are sometimes overbearing because a Java applet running in a Web browser is only able to establish connections to the machine where it came from, and to nowhere else on the network &lt;br /&gt;
Despite all of the useful and helpful Java features, Socket based communications allows only to send packets of raw data between applications. Both the client-side and server-side have to provide mechanisms to make the data useful in any way. &lt;br /&gt;
Since the data formats and protocols remain application specific, the re-use of socket based implementations is limited. &lt;br /&gt;
&lt;br /&gt;
What is the difference between a NULL pointer and a void pointer? &lt;br /&gt;
A NULL pointer is a pointer of any type whose value is zero. A void pointer is a pointer to an object of an unknown type, and is guaranteed to have enough bits to hold a pointer to any object. A void pointer is not guaranteed to have enough bits to point to a function (though in general practice it does). &lt;br /&gt;
&lt;br /&gt;
What is encapsulation technique? &lt;br /&gt;
ANSWER: Hiding data within the class and making it available only through the methods. This technique is used to protect your class against accidental changes to fields, which might leave the class in an inconsistent state.</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/8597685093484738099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/socket-programming-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8597685093484738099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8597685093484738099'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/socket-programming-interview-questions.html' title='Socket Programming Interview Questions and Answers'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-6107594668170946860</id><published>2010-03-08T21:03:00.000+06:00</published><updated>2010-03-08T21:03:00.040+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions</title><content type='html'>&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; What is J2EE?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; J2EE Stands for Java 2 Enterprise Edition. J2EE is an  environment for developing and deploying enterprise     applications. J2EE specification is defined by Sun Microsystems Inc.  The J2EE platform     is one of the best platform for the development and deployment of  enterprise     applications. The J2EE platform is consists of a set of services,  application programming interfaces (APIs), and protocols,     which provides the functionality necessary for developing  multi-tiered, web-based applications.     You can download the J2EE SDK and development tools from &lt;a href=&quot;http://java.sun.com/&quot;&gt;http://java.sun.com/&lt;/a&gt;.&lt;br /&gt;
&lt;/span&gt;&lt;a href=&quot;http://www.roseindia.net/interview-questions/Interview-Questions/J2EE&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;
&lt;/a&gt; &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt;  What     do you understand by a J2EE module?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; A J2EE module is a &lt;a class=&quot;kLink&quot; href=&quot;http://www.roseindia.net/interviewquestions/j2ee-interview-questions.shtml#&quot; id=&quot;KonaLink0&quot; style=&quot;position: static; text-decoration: underline ! important;&quot; target=&quot;undefined&quot;&gt;&lt;span style=&quot;color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: relative;&quot;&gt;software&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; unit  that consists of one or more J2EE components of the same container type     along with one deployment descriptor of that type. J2EE  specification     defines four types of modules:&lt;br /&gt;
a) EJB&lt;br /&gt;
b) Web&lt;br /&gt;
c) application client and&lt;br /&gt;
d) resource adapter&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
In the J2EE applications modules can be deployed as stand-alone  units. Modules     can also be assembled into J2EE applications.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;   &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt; Tell     me something about J2EE component?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; J2EE component is&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;a     self-contained functional software unit supported by a &lt;a href=&quot;http://java.sun.com/j2ee/1.4/docs/glossary.html#88608&quot; target=&quot;_blank&quot;&gt;container&lt;/a&gt;     and configurable at deployment time. The J2EE specification defines  the     following J2EE components:&lt;/span&gt;     &lt;br /&gt;
&lt;ul&gt;&lt;a href=&quot;&quot; name=&quot;114209&quot;&gt;&lt;/a&gt;
&lt;li&gt;&lt;span style=&quot;color: navy;&quot;&gt;&lt;a href=&quot;http://java.sun.com/j2ee/1.4/docs/glossary.html#108715&quot; target=&quot;_blank&quot;&gt;Application         clients&lt;/a&gt; and &lt;a href=&quot;http://java.sun.com/j2ee/1.4/docs/glossary.html#88499&quot; target=&quot;_blank&quot;&gt;applets&lt;/a&gt;         are components that run on the client.&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: navy;&quot;&gt;Java servlet and JavaServer Pages (&lt;a class=&quot;kLink&quot; href=&quot;http://www.roseindia.net/interviewquestions/j2ee-interview-questions.shtml#&quot; id=&quot;KonaLink1&quot; style=&quot;position: static; text-decoration: underline ! important;&quot; target=&quot;undefined&quot;&gt;&lt;span style=&quot;color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: relative;&quot;&gt;JSP&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;)         technology components are &lt;a href=&quot;http://java.sun.com/j2ee/1.4/docs/glossary.html#89333&quot; target=&quot;_blank&quot;&gt;Web         components&lt;/a&gt; that run on the server.&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: navy;&quot;&gt;Enterprise JavaBeans (EJB) components (&lt;a href=&quot;http://java.sun.com/j2ee/1.4/docs/glossary.html#109200&quot; target=&quot;_blank&quot;&gt;enterprise         beans&lt;/a&gt;) are business components that run on the server. &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;J2EE components are written in the Java             programming language and are compiled in the same way as any  program             in the language. The difference between J2EE components and  &quot;standard&quot; Java classes is that J2EE components are             assembled into a J2EE application, verified to be well  formed and in             compliance with the J2EE specification, and deployed to  production,             where they are run and managed by the J2EE server or client             container.&lt;/span&gt;&lt;br /&gt;
&lt;dl&gt;&lt;dt&gt;&lt;span style=&quot;color: navy;&quot;&gt;Source: &lt;a href=&quot;http://java.sun.com/j2ee/1.4/docs/glossary.html&quot; target=&quot;_blank&quot;&gt;J2EE  v1.4 Glossary&lt;br /&gt;
&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt; What     are the contents of web module?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; A web module may contain:&lt;br /&gt;
a) JSP files&lt;br /&gt;
b) Java classes&lt;br /&gt;
c) gif and html files and&lt;br /&gt;
d) web component deployment descriptors&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt;     Differentiate between .ear,&amp;nbsp; .jar and .war files.&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; These files are simply zipped file using java jar  tool. These     files are created for different purposes. Here is the description of  these     files:&lt;br /&gt;
&lt;b&gt;.jar files:&lt;/b&gt; These files are with the .jar extenstion. The  .jar files     contains the libraries, resources and accessories files like  property files.&lt;br /&gt;
&lt;b&gt;.war files:&lt;/b&gt; These files are with the .war extension. The war  file     contains the web application that can be deployed on the any  servlet/jsp     container. The .war file contains jsp, html, &lt;a class=&quot;kLink&quot; href=&quot;http://www.roseindia.net/interviewquestions/j2ee-interview-questions.shtml#&quot; id=&quot;KonaLink2&quot; style=&quot;position: static; text-decoration: underline ! important;&quot; target=&quot;undefined&quot;&gt;&lt;span style=&quot;color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: relative;&quot;&gt;javascript&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; and  other files for     necessary for the development of web applications. &lt;br /&gt;
&lt;b&gt;.ear files:&lt;/b&gt; The .ear file contains the EJB modules of the     application. &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/span&gt; &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt;     What is the difference between Session Bean and Entity Bean?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Session Bean:&lt;/b&gt; Session is one of  the  EJBs and it  represents a single client inside the Application Server.  Stateless session is easy to develop and its efficient. As compare to  entity beans session beans require few server resources.&lt;br /&gt;
&lt;br /&gt;
A session bean is similar to an interactive session and is not  shared; it can have only one client, in the same way that an interactive  session can have only one user. A session bean is not persistent and it  is destroyed once the session terminates.&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;b&gt;Entity Bean:&lt;/b&gt; An entity bean represents persistent global data  from the     database. Entity beans data are stored into database.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt; Why     J2EE is suitable for the development distributed multi-tiered  enterprise     applications?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; The J2EE platform consists of multi-tiered  distributed application model.     J2EE applications allows the developers to design and implement the  business     logic into components according to business requirement. J2EE  architecture     allows the development of multi-tired applications and the developed     applications can be installed on different machines depending on the  tier in the     multi-tiered J2EE environment . The J2EE application parts are:&lt;br /&gt;
&lt;br /&gt;
a) Client-tier components run on the client machine.&lt;br /&gt;
b) Web-tier components run on the J2EE server.&lt;br /&gt;
c) Business-tier components run on the J2EE server and the&lt;br /&gt;
d) Enterprise information system (EIS)-tier software runs on the EIS  servers&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt; Why do     understand by a container?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;  Normally, thin-client multi-tiered applications are  hard to write because they involve many lines of intricate code to  handle transaction and state management, multithreading, resource  pooling, and other complex low-level details. The component-based and  platform-independent J2EE architecture makes J2EE applications easy to  write because business logic is organized into reusable components. In  addition, the J2EE server provides     &lt;b&gt; underlying services in the form of a container&lt;/b&gt; for every  component type. Because you do not have to develop these services  yourself, you are free to concentrate on solving the business problem at     hand (Source: &lt;a href=&quot;http://java.sun.com/j2ee/1.3/docs/tutorial/doc/Overview4.html&quot;&gt;http://java.sun.com/j2ee/1.3/docs/tutorial/doc/Overview4.html&lt;/a&gt;     ).&lt;br /&gt;
&lt;br /&gt;
In short containers are the interface between a component and the  low-level platform specific functionality that supports the component.     The application like Web, enterprise bean, or application client  component     must be assembled and deployed on the J2EE container before  executing.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt; What     are the services provided by a container?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;  The services provided by container are as follows:&lt;br /&gt;
a) Transaction management for the bean&lt;br /&gt;
b) Security for the bean&lt;br /&gt;
c) Persistence of the bean&lt;br /&gt;
d) Remote access to the bean&lt;br /&gt;
e) Lifecycle management of the bean&lt;br /&gt;
f) Database-connection pooling&lt;br /&gt;
g) Instance pooling for the bean&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Question:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt; What     are types of J2EE clients?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;  J2EE clients are the software that access the  services     components installed on the J2EE container. Following are the J2EE  clients:&lt;br /&gt;
a) Applets&lt;br /&gt;
b) Java-Web Start clients&lt;br /&gt;
c) Wireless clients&lt;br /&gt;
d) Web applications&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/6107594668170946860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/j2ee-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/6107594668170946860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/6107594668170946860'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/j2ee-interview-questions.html' title='J2EE Interview Questions'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-5849449712675586466</id><published>2010-03-08T20:57:00.000+06:00</published><updated>2010-03-08T20:57:52.732+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSP"/><title type='text'>JSP Interview : JSP Interview Questions -2</title><content type='html'>&lt;b&gt;Question: What is JSP Custom tags?&lt;/b&gt;&lt;br /&gt;
Answer: JSP Custom tags are user defined JSP language element. JSP custom tags are user defined tags that can encapsulate common functionality. For example you can write your own tag to access the database and performing database operations. You can also write custom tag for encapsulate both simple and complex behaviors in an easy to use syntax and greatly simplify the readability of JSP pages.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; What is JSP?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;  JavaServer Pages (JSP) technology is the Java  platform     technology for delivering dynamic content to web clients in a  portable,     secure and well-defined way. The JavaServer Pages specification  extends the     Java Servlet API to provide web application developers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; What is the role of JSP in MVC  Model?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; JSP is mostly used to develop the user interface, It  plays are role of View in the MVC Model.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; What do you understand by  context initialization parameters?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; The context-param element contains the declaration of a  web application&#39;s servlet context initialization parameters.&lt;br /&gt;
&lt;context-param&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;param-name&gt;name&lt;/param-name&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;param-value&gt;value&lt;/param-value&gt;&lt;/context-param&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;The Context Parameters page lets you manage  parameters that are accessed through the  ServletContext.getInitParameterNames and ServletContext.getInitParameter  methods.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; Can you extend JSP technology?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; JSP technology lets the programmer to extend the jsp to  make the programming more easier. JSP can be extended and custom actions and tag libraries can be developed.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;adsBelowHeadingNormal&quot;&gt; &lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-0714075272818912&quot;;
/* 336x280, created 2/11/08 LeftNewAds */
google_ad_slot = &quot;1009602866&quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&gt;
&lt;/script&gt; &lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;script&gt;
google_protectAndRun(&quot;ads_core.google_render_ad&quot;, google_handleError, google_render_ad);
&lt;/script&gt;&lt;ins style=&quot;border: medium none; display: inline-table; height: 280px; margin: 0pt; padding: 0pt; position: relative; visibility: visible; width: 336px;&quot;&gt;&lt;ins style=&quot;border: medium none; display: block; height: 280px; margin: 0pt; padding: 0pt; position: relative; visibility: visible; width: 336px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;280&quot; hspace=&quot;0&quot; id=&quot;google_ads_frame4&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;google_ads_frame&quot; scrolling=&quot;no&quot; src=&quot;http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-0714075272818912&amp;amp;output=html&amp;amp;h=280&amp;amp;slotname=1009602866&amp;amp;w=336&amp;amp;lmt=1268016953&amp;amp;flash=10.0.22&amp;amp;url=http%3A%2F%2Fwww.roseindia.net%2Finterviewquestions%2Fjsp-interview-questions2.shtml&amp;amp;dt=1268016953728&amp;amp;prev_slotnames=7339612626%2C9203204674%2C1009602866&amp;amp;correlator=1268016953582&amp;amp;frm=0&amp;amp;ga_vid=555672906.1268016752&amp;amp;ga_sid=1268016752&amp;amp;ga_hid=1933131303&amp;amp;ga_fc=1&amp;amp;u_tz=360&amp;amp;u_his=2&amp;amp;u_java=1&amp;amp;u_h=538&amp;amp;u_w=717&amp;amp;u_ah=517&amp;amp;u_aw=717&amp;amp;u_cd=24&amp;amp;u_nplug=15&amp;amp;u_nmime=96&amp;amp;biw=694&amp;amp;bih=420&amp;amp;ref=http%3A%2F%2Fwww.roseindia.net%2Finterviewquestions%2Fjsp-interview-questions.shtml&amp;amp;fu=0&amp;amp;ifi=4&amp;amp;dtd=13&amp;amp;xpc=XgZrps0JYo&amp;amp;p=http%3A//www.roseindia.net&quot; style=&quot;left: 0pt; position: absolute; top: 0pt;&quot; vspace=&quot;0&quot; width=&quot;336&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;  &lt;/div&gt;&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; What do you understand by JSP translation?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; JSP translators generate standard &lt;a class=&quot;kLink&quot; href=&quot;http://www.roseindia.net/interviewquestions/jsp-interview-questions2.shtml#&quot; id=&quot;KonaLink1&quot; style=&quot;position: static; text-decoration: underline ! important;&quot; target=&quot;undefined&quot;&gt;&lt;span style=&quot;color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;background-color: transparent; border-bottom: 1px solid blue; color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: relative;&quot;&gt;Java &lt;/span&gt;&lt;span class=&quot;kLink&quot; style=&quot;background-color: transparent; border-bottom: 1px solid blue; color: blue ! important; font-family: serif; font-size: 14px; font-weight: 400; position: relative;&quot;&gt;code&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; for a JSP page  implementation class. This class is essentially a servlet class wrapped  with features for JSP functionality.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; What you can stop the browser  to cash your page?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; Instead of deleting a cache, you can force the browser  not to catch the page.&lt;br /&gt;
&amp;lt;%&lt;br /&gt;
response.setHeader(&quot;pragma&quot;,&quot;no-cache&quot;);//HTTP 1.1&lt;br /&gt;
response.setHeader(&quot;Cache-Control&quot;,&quot;no-cache&quot;);&lt;br /&gt;
response.setHeader(&quot;Cache-Control&quot;,&quot;no-store&quot;);&lt;br /&gt;
response.addDateHeader(&quot;Expires&quot;, -1);&lt;br /&gt;
response.setDateHeader(&quot;max-age&quot;, 0);&lt;br /&gt;
//response.setIntHeader (&quot;Expires&quot;, -1); //prevents caching at  the proxy server&lt;br /&gt;
response.addHeader(&quot;cache-Control&quot;, &quot;private&quot;);&lt;br /&gt;
&lt;br /&gt;
%&amp;gt;&lt;br /&gt;
put the above code in your page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt;&lt;b&gt;Question:&lt;/b&gt; What you will handle the  runtime exception in your jsp page?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; The &lt;b&gt; errorPage&lt;/b&gt; attribute of the page directive can  be used to catch run-time exceptions automatically and then forwarded to an  error processing page.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy;&quot;&gt; For example:&lt;br /&gt;
&amp;lt;%@ page errorPage=&quot;customerror.jsp&quot; %&amp;gt;&lt;br /&gt;
above code forwards the request to &quot;customerror.jsp&quot;&amp;nbsp; page if an  uncaught exception is encountered during request processing. Within &quot;customerror.jsp&quot;, you must indicate that it is an error-processing  page, via the directive: &amp;lt;%@ page isErrorPage=&quot;true&quot; %&amp;gt;.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/5849449712675586466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/jsp-interview-jsp-interview-questions-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/5849449712675586466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/5849449712675586466'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/jsp-interview-jsp-interview-questions-2.html' title='JSP Interview : JSP Interview Questions -2'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-8941132406406031813</id><published>2010-03-08T20:50:00.001+06:00</published><updated>2010-03-08T20:52:02.488+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSP"/><title type='text'>Best JSP Interview Questions</title><content type='html'>Question: What do you understand by JSP Actions?&lt;br /&gt;
Answer: JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML-based) prefix of &quot;jsp&quot; followed by a colon, followed by the action name followed by one or more attribute parameters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are six JSP Actions: &lt;br /&gt;
&lt;br /&gt;
 &lt;jsp:include/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;jsp:forward/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;jsp:plugin/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;jsp:usebean/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;jsp:setProperty/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;jsp:getProperty/&gt;  &lt;br /&gt;
&lt;br /&gt;
Question: What is the difference between &lt;jsp:include page = ... &gt; and &lt;br /&gt;
&lt;%@ include file = ... &gt;?.&lt;br /&gt;
Answer: Both the tag includes the information from one page in another. The differences are as follows:&lt;br /&gt;
&lt;jsp:include page = ... &gt;: This is like a function call from one jsp to another jsp. It is executed ( the included page is executed  and the generated html content is included in the content of calling jsp) each time the client page is accessed by the client. This approach is useful to for modularizing the web application. If the included file changed then the new content will be included in the output. &lt;br /&gt;
&lt;br /&gt;
&lt;%@ include file = ... &gt;: In this case the content of the included file is textually embedded in the page that have &lt;%@ include file=&quot;..&quot;&gt; directive. In this case in the included file changes, the changed content will not included in the output. This approach is used when the code from one jsp file required to include in multiple jsp files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What is the difference between &lt;jsp:forward page = ... &gt; and &lt;br /&gt;
response.sendRedirect(url),?.&lt;br /&gt;
Answer: The &lt;jsp:forward&gt; element forwards the request object containing the client request information from one JSP file to another file. The target file can be an HTML file, another JSP file, or a servlet, as long as it is in the same application context as the forwarding JSP file. &lt;br /&gt;
sendRedirect sends HTTP temporary redirect response to the browser, and browser creates a new request to go the redirected page. The  response.sendRedirect kills the session variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: Identify the advantages of JSP over Servlet.&lt;br /&gt;
&lt;br /&gt;
a) Embedding of Java code in HTML pages&lt;br /&gt;
b) Platform independence&lt;br /&gt;
c) Creation of database-driven Web applications&lt;br /&gt;
d) Server-side programming capabilities&lt;br /&gt;
&lt;br /&gt;
Answer :- Embedding of Java code in HTML pages&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What are implicit Objects available to the JSP Page?&lt;br /&gt;
Answer: Implicit objects are the objects available to the JSP page. These objects are created by Web container and contain information related to a particular request, page, or application. The JSP implicit objects are:Variable Class Description&lt;br /&gt;
application javax.servlet.ServletContext The context for the JSP page&#39;s servlet and any Web components contained in the same application.&lt;br /&gt;
config javax.servlet.ServletConfig Initialization information for the JSP page&#39;s servlet.&lt;br /&gt;
exception java.lang.Throwable Accessible only from an error page.&lt;br /&gt;
out javax.servlet.jsp.JspWriter The output stream.&lt;br /&gt;
page java.lang.Object The instance of the JSP page&#39;s servlet processing the current request. Not typically used by JSP page authors.&lt;br /&gt;
pageContext javax.servlet.jsp.PageContext The context for the JSP page. Provides a single API to manage the various scoped attributes.&lt;br /&gt;
request Subtype of javax.servlet.ServletRequest The request triggering the execution of the JSP page.&lt;br /&gt;
response Subtype of javax.servlet.ServletResponse The response to be returned to the client. Not typically used by JSP page authors.&lt;br /&gt;
session javax.servlet.http.HttpSession The session object for the client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What are all the different scope values for the &lt;jsp:useBean&gt; tag?&lt;br /&gt;
Answer:&lt;jsp:useBean&gt; tag is used to use any java object in the jsp page. Here are the scope values for &lt;jsp:useBean&gt; tag:&lt;br /&gt;
a) page&lt;br /&gt;
b) request&lt;br /&gt;
c) session and&lt;br /&gt;
d) application&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What is JSP Output Comments?&lt;br /&gt;
Answer: JSP Output Comments are the comments that can be viewed in the HTML source file.&lt;br /&gt;
Example: &lt;br /&gt;
&lt;!-- This file displays the user login screen --&gt;&lt;br /&gt;
and &lt;br /&gt;
&lt;!-- This page was loaded on
&lt;%= (new java.util.Date()).toLocaleString() %&gt; --&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What is expression in JSP?&lt;br /&gt;
Answer: Expression tag is used to insert Java values directly into the output. Syntax for the Expression tag is: &lt;br /&gt;
&lt;%= expression %&gt;&lt;br /&gt;
An expression tag contains a scripting language expression that is evaluated, converted to a String, and inserted where the expression appears in the JSP file. The following expression tag displays time on the output:&lt;br /&gt;
&lt;%=new java.util.Date()%&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What types of comments are available in the JSP?&lt;br /&gt;
Answer: There are two types of comments are allowed in the JSP. These are hidden and output comments. A hidden comments does not appear in the generated output in the html, while output comments appear in the generated output.&lt;br /&gt;
Example of hidden comment:&lt;br /&gt;
&lt;%-- This is hidden comment --%&gt;&lt;br /&gt;
Example of output comment:&lt;br /&gt;
&lt;!-- This is output comment --&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What is JSP declaration?&lt;br /&gt;
Answer: JSP Decleratives are the JSP tag used to declare variables. Declaratives are enclosed in the &lt;%! %&gt; tag and ends in semi-colon. You declare variables and functions in the declaration tag and can use anywhere in the JSP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Question: What are the life-cycle methods of JSP?&lt;br /&gt;
Answer: Life-cycle methods of the JSP are:&lt;br /&gt;
a) jspInit(): The container calls the jspInit() to initialize the servlet instance. It is called before any other method, and is called only once for a servlet instance.&lt;br /&gt;
b)_jspService(): The container calls the _jspservice() for each request and it passes the request and the response objects. _jspService() method cann&#39;t be overridden. &lt;br /&gt;
c) jspDestroy(): The container calls this when its instance is about to destroyed.&lt;br /&gt;
The jspInit() and jspDestroy() methods can be overridden within a JSP page.</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/8941132406406031813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/best-jsp-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8941132406406031813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8941132406406031813'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/03/best-jsp-interview-questions.html' title='Best JSP Interview Questions'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-5862531913113086314</id><published>2010-02-04T03:43:00.000+06:00</published><updated>2010-02-04T03:43:43.387+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>CSS Interview Questions and Answers3</title><content type='html'>Three selectors: h1, .warning and #footer, what they do ?&lt;br /&gt;
An element points at a HTML-tag somewhere on your page. In the example above we want to style the &lt;h1&gt;-tag. Note that using an element like that affects all tags with that name, so using p { margin-left: 100px; } gives all &lt;p&gt;-tags a left-margin.&lt;br /&gt;
Using a class is just as simple. When writing .your_class you style all tags with a class with the name “your_class”. In the example above we have .warning which will style e.g. &lt;div class=&quot;warning&quot;&gt;and &lt;em class=&quot;warning&quot;&gt;, that is, any element with the class warning. Classes are used when you want to style just a few of your tags in a way, perhaps you want some of your links red? Add a class to all those links.&lt;br /&gt;
You need one more building block: the id. This time you style an element with the attribute “id” set to the id you have chosen. Ids work exactly like classes except for one thing; you can only have one id with a certain name in each of your HTML documents. In the example above we style &lt;div id=&quot;footer&quot;&gt;. If you look at the example it does make sense: a HTML document may contain several warnings but only one footer. Ids should be used when you want to style just one specific tag.&lt;br /&gt;
Using those three building blocks will take you far but when you get to more advanced layouts you might want to combine the building blocks into more advanced selectors. Just to give you two examples of what you can do: em.warning to style only those &lt;em&gt;-tags with the class .warning set. You can also use #footer a to style only the links that are nested inside the tag with id “footer.&lt;br /&gt;
Each of the selectors has a set of declarations tied to them. Each declaration has a property, describing what we want to change and a value, what we should change it to. An example: a { color: Blue; font-size: 3em; }. You have the selector a there, so all links in your document will be styled. We have two declarations: color: Blue and font-size: 3em;. Lastly each declaration consists of two parts: the property color and the value Blue.&lt;br /&gt;
there is a LOT of things you can style and play with. Additionally (close to) all tags are equal in CSS, so you can set e.g. borders and colors of any element just like you could with a table if you used only HTML.&lt;br /&gt;
&lt;br /&gt;
What are Style Sheets?&lt;br /&gt;
Style Sheets are templates, very similar to templates in desktop publishing applications, containing a collection of rules declared to various selectors (elements).&lt;br /&gt;
&lt;br /&gt;
What is CSS rule &#39;ruleset&#39;?&lt;br /&gt;
There are two types of CSS rules: ruleset and at-rule. Ruleset identifies selector or selectors and declares style which is to be attached to that selector or selectors. For example P {text-indent: 10pt} is a CSS rule. CSS rulesets consist of two parts: selector, e.g. P and declaration, e.g. {text-indent: 10pt}.&lt;br /&gt;
&lt;br /&gt;
P {text-indent: 10pt} - CSS rule (ruleset)&lt;br /&gt;
{text-indent: 10pt} - CSS declaration&lt;br /&gt;
text-indent - CSS property&lt;br /&gt;
10pt - CSS value&lt;br /&gt;
&lt;br /&gt;
&#39;Fixed&#39; Background?&lt;br /&gt;
There is the possibility to use the HTML tag bgproperties=&quot;fixed&quot;, but that is IE proprietary, and dependent upon the &#39;background&#39; attribute (deprecated in HTML4).&lt;br /&gt;
&lt;br /&gt;
With CSS, you can declare the background like:&lt;br /&gt;
&lt;br /&gt;
BODY {&lt;br /&gt;
font-family : &quot;Trebuchet MS&quot;, Verdana, Arial, Helvetica, sans-serif;&lt;br /&gt;
background-image: url(images/yourimage.gif);&lt;br /&gt;
background-repeat: no-repeat; /*no-tiling background*/&lt;br /&gt;
background-position: center;&lt;br /&gt;
background-attachment: fixed;&lt;br /&gt;
background-color: #hexcolor;&lt;br /&gt;
color : #hexcolor;&lt;br /&gt;
margin: 10px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
that shows a background-image in the center of the BODY element, non-scrolling and non-repeating - in IE or NN6. NN 4.xx gets the non-repeat-part right, but stuffs the picture in the upper left corner and scrolls ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What is ID selector?&lt;br /&gt;
ID selector is an individually identified (named) selector to which a specific style is declared. Using the ID attribute the declared style can then be associated with one and only one HTML element per document as to differentiate it from all other elements. ID selectors are created by a character # followed by the selector&#39;s name. The name can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code, however, they cannot start with a dash or a digit.&lt;br /&gt;
&lt;br /&gt;
#abc123 {color: red; background: black}&lt;br /&gt;
&lt;br /&gt;
&lt;P ID=abc123&gt;This and only this element can be identified as abc123 &lt;/P&gt;&lt;br /&gt;
What is contextual selector?&lt;br /&gt;
Contextual selector is a selector that addresses specific occurrence of an element. It is a string of individual selectors separated by white space, a search pattern, where only the last element in the pattern is addressed providing it matches the specified context.&lt;br /&gt;
&lt;br /&gt;
TD P CODE {color: red}&lt;br /&gt;
&lt;br /&gt;
The element CODE will be displayed in red but only if it occurs in the context of the element P which must occur in the context of the element TD.&lt;br /&gt;
&lt;br /&gt;
TD P CODE, H1 EM {color: red}&lt;br /&gt;
&lt;br /&gt;
The element CODE will be displayed in red as described above AND the element EM will also be red but only if it occurs in the context of H1&lt;br /&gt;
&lt;br /&gt;
P .footnote {color: red}&lt;br /&gt;
&lt;br /&gt;
Any element with CLASS footnote will be red but only if it occurs in the context of P&lt;br /&gt;
&lt;br /&gt;
P .footnote [lang]{color: red}&lt;br /&gt;
&lt;br /&gt;
Any element with attribute LANG will be red but only if it is classed as &quot;footnote&quot; and occurs in the context of P&lt;br /&gt;
&lt;br /&gt;
How do I have a background image that isn&#39;t tiled?&lt;br /&gt;
Specify the background-repeat property as no-repeat. You can also use the background property as a shortcut for specifying multiple background-* properties at once. Here&#39;s an example:&lt;br /&gt;
&lt;br /&gt;
BODY {background: #FFF url(watermark.jpg) no-repeat;}&lt;br /&gt;
&lt;br /&gt;
What does \ABCD (and \ABCDE) mean?&lt;br /&gt;
CSS allows Unicode characters to be entered by number. For example, if a CLASS value in some Russian document contains Cyrillic letters EL PE (Unicode numbers 041B and 041F) and you want to write a style rule for that class, you can put that letter into the style sheet by writing:&lt;br /&gt;
&lt;br /&gt;
.\041B\041F {font-style: italic;}&lt;br /&gt;
This works on all keyboards, so you don&#39;t need a Cyrillic keyboard to write CLASS names in Russian or another language that uses that script.&lt;br /&gt;
&lt;br /&gt;
The digits and letters after the backslash (\) are a hexadecimal number. Hexadecimal numbers are made from ordinary digits and the letters A to F (or a to f). Unicode numbers consist of four such digits.&lt;br /&gt;
&lt;br /&gt;
If the number starts with a 0, you may omit it. The above could also be written as:&lt;br /&gt;
&lt;br /&gt;
.\41B\41F {font-style: italic;}&lt;br /&gt;
But be careful if the next letter after the three digits is also a digit or a letter a to f! This is OK: .\41B-\41F, since the dash (-) cannot be mistaken for a hexadecimal digit, but .\41B9\41F is only two letters, not three.&lt;br /&gt;
&lt;br /&gt;
Four digits is the maximum, however, so if you write:&lt;br /&gt;
.\041B9\041F {font-style: italic;}</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/5862531913113086314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/css-interview-questions-and-answers3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/5862531913113086314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/5862531913113086314'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/css-interview-questions-and-answers3.html' title='CSS Interview Questions and Answers3'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-2078689669082872171</id><published>2010-02-04T03:38:00.000+06:00</published><updated>2010-02-04T03:38:46.009+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>CSS Interview Questions and Answers2</title><content type='html'>&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt; &lt;span class=&quot;style53&quot;&gt;What is CSS?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;1. CSS stands for Cascading Style Sheets and is a simple  styling language which allows attaching style to HTML  elements. Every element type as well as every occurrence  of a specific element within that type can be declared  an unique style, e.g. margins, positioning, color or  size.&lt;br /&gt;
&lt;br /&gt;
2. CSS is a web standard that describes style for  XML/HTML documents. &lt;br /&gt;
&lt;br /&gt;
3. CSS is a language that adds style (colors, images,  borders, margins…) to your site. It’s really that  simple. CSS is not used to put any content on your site,  it’s just there to take the content you have and make it  pretty. First thing you do is link a CSS-file to your  HTML document. Do this by adding this line:&lt;br /&gt;
&lt;br /&gt;
&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;&lt;br /&gt;
type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The line should be placed in between your  and  tags. If you have several pages you could add  the exact same line to all of them and they will all use  the same stylesheet, but more about that later. Let’s  look inside the file “style.css” we just linked to.&lt;br /&gt;
&lt;br /&gt;
h1 {&lt;br /&gt;
font-size: 40px;&lt;br /&gt;
height: 200px;&lt;br /&gt;
&lt;/span&gt;}&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
.warning {&lt;br /&gt;
color: Red;&lt;br /&gt;
font-weight: bold;&lt;br /&gt;
&lt;/span&gt;}&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
#footer {&lt;br /&gt;
background-color: Gray;&lt;br /&gt;
&lt;/span&gt;}&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
4. Cascading Style Sheets (CSS) is a simple mechanism  for adding style (e.g. fonts, colors, spacing) to Web  documents. This is also where information meets the  artistic abilities of a web-designer. CSS helps you  spice up your web-page and make it look neat in wide  variety of aspects.&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;answers&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What are Cascading Style Sheets? &lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A Cascading Style Sheet (CSS) is a list of statements  (also known as rules) that can assign various rendering  properties to HTML elements. Style rules can be  specified for a single element occurrence, multiple  elements, an entire document, or even multiple documents  at once. It is possible to specify many different rules  for an element in different locations using different  methods. All these rules are collected and merged (known  as a &quot;cascading&quot; of styles) when the document is  rendered to form a single style rule for each element. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;How do I center block-elements with CSS1? &lt;/b&gt; &lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
There are two ways of centering block level elements:&lt;br /&gt;
&lt;br /&gt;
1. By setting the properties margin-left and  margin-right to auto and width to some explicit value:&lt;br /&gt;
&lt;br /&gt;
BODY {width: 30em; background: cyan;}&lt;br /&gt;
P {width: 22em; margin-left: auto; margin-right: auto}&lt;br /&gt;
&lt;br /&gt;
In this case, the left and right margins will each be  four ems wide, since they equally split up the eight ems  left over from (30em - 22em). Note that it was not  necessary to set an explicit width for the BODY element;  it was done here to keep the math clean.&lt;br /&gt;
&lt;br /&gt;
Another example:&lt;br /&gt;
&lt;br /&gt;
TABLE {margin-left: auto; margin-right: auto; width:  400px;} &lt;br /&gt;
In most legacy browsers, a table&#39;s width is by default  determined by its content. In CSS-conformant browsers,  the complete width of any element (including tables)  defaults to the full width of its parent element&#39;s  content area. As browser become more conformant,  authors will need to be aware of the potential impact on  their designs.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;If background and color should always be set together,  why do they exist as separate properties? &lt;/b&gt; &lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
There are several reasons for this. First, style sheets  become more legible -- both for humans and machines. The  background property is already the most complex property  in CSS1 and combining it with color would make it even  more complex. Second, color inherits, but background  doesn&#39;t and this would be a source of confusion. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is class? &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Class is a group of 1) instances of the same element to  which an unique style can be attached or 2) instances of  different elements to which the same style can be  attached.&lt;br /&gt;
&lt;br /&gt;
1) The rule P {color: red} will display red text in all  paragraphs. By classifying the selector P different  style can be attached to each class allowing the display  of some paragraphs in one style and some other  paragraphs in another style.&lt;br /&gt;
2) A class can also be specified without associating a  specific element to it and then attached to any element  which is to be styled in accordance with it&#39;s  declaration. All elements to which a specific class is  attached will have the same style.&lt;br /&gt;
&lt;br /&gt;
To classify an element add a period to the selector  followed by an unique name. The name can contain  characters a-z, A-Z, digits 0-9, period, hyphen, escaped  characters, Unicode characters 161-255, as well as any  Unicode character as a numeric code, however, they  cannot start with a dash or a digit. (Note: in HTML the  value of the CLASS attribute can contain more  characters). (Note: text between /* and */ are my  comments).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;answers&quot;&gt;CSS&lt;br /&gt;
P.name1 {color: red} /* one class of P selector */&lt;br /&gt;
P.name2 {color: blue} /* another class of P selector */&lt;br /&gt;
.name3 {color: green} /* can be attached to any element  */&lt;br /&gt;
&lt;br /&gt;
HTML&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;name1&quot;&gt;&lt;span class=&quot;answers&quot;&gt;This paragraph will be red&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;name2&quot;&gt;&lt;span class=&quot;answers&quot;&gt;This paragraph will be blue&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;name3&quot;&gt;&lt;span class=&quot;answers&quot;&gt;This paragraph will be green&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;li class=&quot;name3&quot;&gt;This list item will be green&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is a good practice to name classes according to their  function than their appearance; e.g. P.fotnote and not  P.green. In CSS1 only one class can be attached to a  selector. CSS2 allows attaching more classes, e.g.: &lt;br /&gt;
P.name1.name2.name3 {declaration} &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;name1 name2 name2&quot;&gt;&lt;span class=&quot;answers&quot;&gt;This paragraph has three classes attached&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;answers&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is grouping ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Grouping is gathering (1) into a comma separated list  two or more selectors that share the same style or (2)  into a semicolon separated list two or more declarations  that are attached to the same selector (2).&lt;br /&gt;
&lt;br /&gt;
1. The selectors LI, P with class name .first and class  .footnote share the same style, e.g.:&lt;br /&gt;
LI {font-style: italic}&lt;br /&gt;
P.first {font-style: italic}&lt;br /&gt;
.footnote {font-style: italic}&lt;br /&gt;
&lt;br /&gt;
To reduce the size of style sheets and also save some  typing time they can all be grouped in one list.&lt;br /&gt;
LI, P.first, .footnote {font-style: italic}&lt;br /&gt;
&lt;br /&gt;
2. The declarations {font-style: italic} and {color:  red} can be attached to one selector, e.g.:&lt;br /&gt;
H2 {font-style: italic}&lt;br /&gt;
H2 {color: red}&lt;br /&gt;
and can also be grouped into one list:&lt;br /&gt;
H2 {font-style: italic; color: red} &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is external Style Sheet? How to link? &lt;/b&gt; &lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
External Style Sheet is a template/document/file  containing style information which can be linked with  any number of HTML documents. This is a very convenient  way of formatting the entire site as well as restyling  it by editing just one file. The file is linked with  HTML documents via the LINK element inside the HEAD  element. Files containing style information must have  extension .css, e.g. style.css.  &lt;link href=&quot;style.css&quot; rel=&quot;STYLESHEET&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;Is CSS case sensitive? &lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Cascading Style Sheets (CSS) is not case sensitive.  However, font families, URLs to images, and other direct  references with the style sheet may be.&lt;br /&gt;
The trick is that if you write a document using an XML  declaration and an XHTML doctype, then the CSS class  names will be case sensitive for some browsers.&lt;br /&gt;
&lt;br /&gt;
It is a good idea to avoid naming classes where the only  difference is the case, for example:&lt;br /&gt;
&lt;br /&gt;
div.myclass { ...}&lt;br /&gt;
div.myClass { ... }&lt;br /&gt;
&lt;br /&gt;
If the DOCTYPE or XML declaration is ever removed from  your pages, even by mistake, the last instance of the  style will be used, regardless of case.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/2078689669082872171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/css-interview-questions-and-answers2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/2078689669082872171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/2078689669082872171'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/css-interview-questions-and-answers2.html' title='CSS Interview Questions and Answers2'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-4833449559073587423</id><published>2010-02-03T03:07:00.000+06:00</published><updated>2010-02-03T03:07:48.382+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions and Answers7</title><content type='html'>&lt;span style=&quot;color: blue;&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is entity bean ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;An enterprise bean that represents persistent data maintained in a  database. An entity bean can manage its own persistence or can delegate  this function to its container. An entity bean is identified by a  primary key. If the container in which an entity bean is hosted crashes,  the entity bean, its primary key, and any remote references survive the  crash. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is entity reference ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A reference to an entity that is substituted for the reference when the  XML document is parsed. It can reference a predefined entity such as &amp;lt;  or reference one that is defined in the DTD. In the XML data, the  reference could be to an entity that is defined in the local subset of  the DTD or to an external XML file (an external entity). The DTD can  also carve out a segment of DTD specifications and give it a name so  that it can be reused (included) at multiple points in the DTD by  defining a parameter entity.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is error ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A SAX parsing error is generally a validation error; in other words, it  occurs when an XML document is not valid, although it can also occur if  the declaration specifies an XML version that the parser cannot handle.  See also fatal error, warning. &lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is Extensible Markup Language ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
XML. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is external entity ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An entity that exists as an external XML file, which is included in the  XML document using an entity reference. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is external subset ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
That part of a DTD that is defined by references to external DTD files.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt; &lt;b&gt;What is fatal error ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A fatal error occurs in the SAX parser when a document is not well  formed or otherwise cannot be processed. See also error, warning. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is filter ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An object that can transform the header or content (or both) of a  request or response. Filters differ from Web components in that they  usually do not themselves create responses but rather modify or adapt  the requests for a resource, and modify or adapt responses from a  resource. A filter should not have any dependencies on a Web resource  for which it is acting as a filter so that it can be composable with  more than one type of Web resource. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is filter chain ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A concatenation of XSLT transformations in which the output of one  transformation becomes the input of the next. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is finder method ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A method defined in the Interview Questions - Home interface and invoked by a client to locate  an entity bean. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is form-based authentication ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An authentication mechanism in which a Web container provides an  application-specific form for logging in. This form of authentication  uses Base64 encoding and can expose user names and passwords&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt;&lt;b&gt;What is general entity ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An entity that is referenced as part of an XML document&#39;s content, as  distinct from a parameter entity, which is referenced in the DTD. A  general entity can be a parsed entity or an unparsed entity.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is group ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An authenticated set of users classified by common traits such as job  title or customer profile. Groups are also associated with a set of  roles, and every user that is a member of a group inherits all the roles  assigned to that group. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is handle ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An object that identifies an enterprise bean. A client can serialize the  handle and then later deserialize it to obtain a reference to the  enterprise bean. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is Interview Questions - Home handle ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An object that can be used to obtain a reference to the Interview Questions - Home interface.  A Interview Questions - Home handle can be serialized and written to stable storage and  de-serialized to obtain the reference.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt;&lt;b&gt;What is Interview Questions - Home interface ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
One of two interfaces for an enterprise bean. The Interview Questions - Home interface defines  zero or more methods for managing an enterprise bean. The Interview Questions - Home interface  of a session bean defines create and remove methods, whereas the Interview Questions - Home  interface of an entity bean defines create, finder, and remove methods.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/4833449559073587423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/4833449559073587423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/4833449559073587423'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers7.html' title='J2EE Interview Questions and Answers7'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-5520966785892946599</id><published>2010-02-03T03:02:00.000+06:00</published><updated>2010-02-03T03:02:02.213+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions and Answers6</title><content type='html'>&lt;span style=&quot;color: red;&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is EJB Home object ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;An object that provides the life-cycle operations (create, remove, find)  for an enterprise bean. The class for the EJB Home object is generated  by the container&#39;s deployment tools. The EJB Home object implements the  enterprise bean&#39;s Home interface. The client references an EJB Home  object to perform life-cycle operations on an EJB object. The client  uses JNDI to locate an EJB Home object.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is EJB JAR file ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A JAR archive that contains an EJB module. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is EJB module ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A deployable unit that consists of one or more enterprise beans and an  EJB deployment descriptor.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is EJB object ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An object whose class implements the enterprise bean&#39;s remote interface.  A client never references an enterprise bean instance directly; a client  always references an EJB object. The class of an EJB object is generated  by a container&#39;s deployment tools. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is EJB server ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Software that provides services to an EJB container. For example, an EJB  container typically relies on a transaction manager that is part of the  EJB server to perform the two-phase commit across all the participating  resource managers. The J2EE architecture assumes that an EJB container  is hosted by an EJB server from the same vendor, so it does not specify  the contract between these two entities. An EJB server can host one or  more EJB containers. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is EJB server provider ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A vendor that supplies an EJB server. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is element ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A unit of XML data, delimited by tags. An XML element can enclose other  elements.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style54&quot;&gt;What is empty tag ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A tag that does not enclose any content.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is enterprise bean ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A J2EE component that implements a business task or business entity and  is hosted by an EJB container; either an entity bean, a session bean, or  a message-driven bean. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style54&quot;&gt;What is enterprise bean provider ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An application developer who produces enterprise bean classes, remote  and Interview Questions - Home interfaces, and deployment descriptor files, and packages them  in an EJB JAR file.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is enterprise information system ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The applications that constitute an enterprise&#39;s existing system for  handling companywide information. These applications provide an  information infrastructure for an enterprise. An enterprise information  system offers a well-defined set of services to its clients. These  services are exposed to clients as local or remote interfaces or both.  Examples of enterprise information systems include enterprise resource  planning systems, mainframe transaction processing systems, and legacy  database systems.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is enterprise information system resource ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An entity that provides enterprise information system-specific  functionality to its clients. Examples are a record or set of records in  a database system, a business object in an enterprise resource planning  system, and a transaction program in a transaction processing system.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is Enterprise JavaBeans (EJB) ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A component architecture for the development and deployment of  object-oriented, distributed, enterprise-level applications.  Applications written using the Enterprise JavaBeans architecture are  scalable, transactional, and secure.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is Enterprise JavaBeans Query Language (EJB QL) ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Defines the queries for the finder and select methods of an entity bean  having container-managed persistence. A subset of SQL92, EJB QL has  extensions that allow navigation over the relationships defined in an  entity bean&#39;s abstract schema.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot;&gt;&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;What is an entity ?&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A distinct, individual item that can be included in an XML document by  referencing it. Such an entity reference can name an entity as small as  a character (for example, &amp;lt;, which references the less-than symbol or  left angle bracket, &amp;lt;). An entity reference can also reference an entire  document, an external entity, or a collection of DTD definitions.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/5520966785892946599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/5520966785892946599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/5520966785892946599'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers6.html' title='J2EE Interview Questions and Answers6'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-764555982902291210</id><published>2010-02-03T02:57:00.002+06:00</published><updated>2010-02-03T02:57:52.204+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions and Answers5</title><content type='html'>&lt;span style=&quot;color: blue;&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is deployment descriptor ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;An XML file provided with each module and J2EE application that  describes how they should be deployed. The deployment descriptor directs  a deployment tool to deploy a module or application with specific  container options and describes specific configuration requirements that  a deployer must resolve.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is destination ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A JMS administered object that encapsulates the identity of a JMS queue  or topic. See point-to-point messaging system, publish/subscribe  messaging system.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt; &lt;b&gt;What is digest authentication ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An authentication mechanism in which a Web application authenticates  itself to a Web server by sending the server a message digest along with  its HTTP request message. The digest is computed by employing a one-way  hash algorithm to a concatenation of the HTTP request message and the  client&#39;s password. The digest is typically much smaller than the HTTP  request and doesn&#39;t contain the password. &lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is distributed application ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An application made up of distinct components running in separate  runtime environments, usually on different platforms connected via a  network. Typical distributed applications are two-tier (client-server),  three-tier (client-middleware-server), and multitier (client-multiple  middleware-multiple servers). &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt; &lt;b&gt;What is document ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
In general, an XML structure in which one or more elements contains text  intermixed with subelements. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is Document Object Model ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An API for accessing and manipulating XML documents as tree structures.  DOM provides platform-neutral, language-neutral interfaces that enables  programs and scripts to dynamically access and modify content and  structure in XML documents. &lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is document root ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The top-level directory of a WAR. The document root is where JSP pages,  client-side classes and archives, and static Web resources are stored. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is DTD ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Document type definition. An optional part of the XML document prolog,  as specified by the XML standard. The DTD specifies constraints on the  valid tags and tag sequences that can be in the document. The DTD has a  number of shortcomings, however, and this has led to various schema  proposals. For example, the DTD entry says that the XML element called  username contains parsed character data-that is, text alone, with no  other structural elements under it. The DTD includes both the local  subset, defined in the current file, and the external subset, which  consists of the definitions contained in external DTD files that are  referenced in the local subset using a parameter entity. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is durable subscription ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
In a JMS publish/subscribe messaging system, a subscription that  continues to exist whether or not there is a current active subscriber  object. If there is no active subscriber, the JMS provider retains the  subscription&#39;s messages until they are received by the subscription or  until they expire. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is EAR file ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Enterprise Archive file. A JAR archive that contains a J2EE application.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is ebXML ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Electronic Business XML. A group of specifications designed to enable  enterprises to conduct business through the exchange of XML-based  messages. It is sponsored by OASIS and the United Nations Centre for the  Facilitation of Procedures and Practices in Administration, Commerce and  Transport (U.N./CEFACT). &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is EJB ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Enterprise JavaBeans. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is EJB container ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A container that implements the EJB component contract of the J2EE  architecture. This contract specifies a runtime environment for enterprise beans  that includes security, concurrency, life-cycle management, transactions,  deployment, naming, and other services. An EJB container is provided by an EJB  or J2EE server.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is EJB container provider ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A vendor that supplies an EJB container.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is EJB context ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A vendor that supplies an EJB container. An object that allows an  enterprise bean to invoke services provided by the container and to  obtain the information about the caller of a client-invoked method.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/764555982902291210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/764555982902291210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/764555982902291210'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers5.html' title='J2EE Interview Questions and Answers5'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-511835579879576</id><published>2010-02-03T02:55:00.002+06:00</published><updated>2010-02-03T02:55:21.887+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions and Answers4</title><content type='html'>&lt;span style=&quot;color: red;&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is container-managed sign-on ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;The mechanism whereby security information needed for signing on to a  resource is supplied by the container.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is container-managed transaction ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A transaction whose boundaries are defined by an EJB container. An  entity bean must use container-managed transactions. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is content ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
In an XML document, the part that occurs after the prolog, including the  root element and everything it contains.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is context attribute ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An object bound into the context associated with a servlet. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is context root ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A name that gets mapped to the document root of a Web application. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt; &lt;span class=&quot;for_questions_blue&quot;&gt;&lt;b&gt;What is conversational state ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The field values of a session bean plus the transitive closure of the  objects reachable from the bean&#39;s fields. The transitive closure of a bean is  defined in terms of the serialization protocol for the Java programming  language, that is, the fields that would be stored by serializing the bean  instance. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is CORBA ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Common Object Request Broker Architecture. A language-independent  distributed object model specified by the OMG.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is create method ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A method defined in the Interview Questions - Home interface and invoked by a client to create  an enterprise bean. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is credentials ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The information describing the security attributes of a principal.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is CSS ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Cascading style sheet. A stylesheet used with HTML and XML documents to  add a style to all elements marked with a particular tag, for the  direction of browsers or other presentation mechanisms. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is CTS ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Compatibility test suite. A suite of compatibility tests for verifying  that a J2EE product complies with the J2EE platform specification.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;&lt;b&gt;What is data ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The contents of an element in an XML stream, generally used when the  element does not contain any subelements. When it does, the term content  is generally used. When the only text in an XML structure is contained  in simple elements and when elements that have subelements have little  or no data mixed in, then that structure is often thought of as XML  data, as opposed to an XML document. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is DDP ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Document-driven programming. The use of XML to define applications.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is declaration ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The very first thing in an XML document, which declares it as XML. The  minimal declaration is . The declaration is part of the document prolog. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is declarative security ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Mechanisms used in an application that are expressed in a declarative  syntax in a deployment descriptor.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is delegation ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An act whereby one principal authorizes another principal to use its  identity or privileges with some restrictions. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is deployer ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A person who installs J2EE modules and applications into an operational  environment.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is deployment ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The process whereby software is installed into an operational  environment.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/511835579879576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/511835579879576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/511835579879576'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers4.html' title='J2EE Interview Questions and Answers4'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-8423980595930297783</id><published>2010-02-03T02:51:00.002+06:00</published><updated>2010-02-03T02:51:43.138+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions and Answers3</title><content type='html'>&lt;span style=&quot;color: blue;&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is binding  (JavaServer Faces technology) ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;Wiring UI  components to back-end data sources such as backing bean  properties. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is build file ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The XML file that contains one or more asant targets. A target is a set  of tasks you want to be executed. When starting asant, you can select which  targets you want to have executed. When no target is given, the project&#39;s  default target is executed.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is business logic ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The code that implements the functionality of an application. In the  Enterprise JavaBeans architecture, this logic is implemented by the  methods of an enterprise bean. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is business method ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A method of an enterprise bean that implements the business logic or  rules of an application. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is callback methods ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Component methods called by the container to notify the component of  important events in its life cycle. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is caller ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Same as caller principal. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is caller principal ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The principal that identifies the invoker of the enterprise bean method. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is cascade delete ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A deletion that triggers another deletion. A cascade delete can be  specified for an entity bean that has container-managed persistence.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is CDATA ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A predefined XML tag for character data that means &quot;don&#39;t interpret  these characters,&quot; as opposed to parsed character data (PCDATA), in  which the normal rules of XML syntax apply. CDATA sections are typically  used to show examples of XML syntax. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is certificate authority ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A trusted organization that issues public key certificates and provides  identification to the bearer. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is client-certificate authentication ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An authentication mechanism that uses HTTP over SSL, in which the server  and, optionally, the client authenticate each other with a public key  certificate that conforms to a standard that is defined by X.509 Public  Key Infrastructure. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is comment ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
In an XML document, text that is ignored unless the parser is  specifically told to recognize it. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is commit ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The point in a transaction when all updates to any resources involved in  the transaction are made permanent.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is component contract ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The contract between a J2EE component and its container. The contract  includes life-cycle management of the component, a context interface  that the instance uses to obtain various information and services from  its container, and a list of services that every container must provide  for its components.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt;&lt;b&gt;What is component-managed sign-on ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A mechanism whereby security information needed for signing on to a  resource is provided by an application component.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is connector ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A standard extension mechanism for containers that provides connectivity  to enterprise information systems. A connector is specific to an  enterprise information system and consists of a resource adapter and  application development tools for enterprise information system  connectivity. The resource adapter is plugged in to a container through  its support for system-level contracts defined in the Connector  architecture.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is container-managed persistence ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The mechanism whereby data transfer between an entity bean&#39;s variables  and a resource manager is managed by the entity bean&#39;s container.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/8423980595930297783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8423980595930297783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8423980595930297783'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers3.html' title='J2EE Interview Questions and Answers3'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-2517019556561522315</id><published>2010-02-03T02:48:00.000+06:00</published><updated>2010-02-03T02:48:35.123+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions and Answers2</title><content type='html'>&lt;span style=&quot;background-color: #45818e;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is &quot;application client&quot; ?&lt;/span&gt;&lt;u&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;A first-tier J2EE client component that executes in its own Java virtual  machine. Application clients have access to some J2EE platform APIs.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt; &lt;b&gt;What is &quot;application client container&quot; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A container that supports application client components.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is &quot;application client module&quot; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A software unit that consists of one or more classes and an application  client deployment descriptor. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is &quot;application component provider&quot; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A vendor that provides the Java classes that implement components&#39;  methods, JSP page definitions, and any required deployment descriptors. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is &quot;application configuration resource file&quot; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An XML file used to configure resources for a Java Server Faces  application, to define navigation rules for the application, and to  register converters, Validator, listeners, renders, and components  with the application. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is &quot;archiving&quot; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The process of saving the state of an object and restoring it. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is &quot;asant&quot; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A Java-based build tool that can be extended using Java classes. The  configuration files are XML-based, calling out a target tree where  various tasks get executed.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is &quot;attribute&quot;?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A qualifier on an XML tag that provides additional information. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is authentication ? &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The process that verifies the identity of a user, device, or other  entity in a computer system, usually as a prerequisite to allowing  access to resources in a system. The Java servlet specification requires  three types of authentication-basic, form-based, and mutual-and supports  digest authentication. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is authorization ? &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The process by which access to a method or resource is determined.  Authorization depends on the determination of whether the principal  associated with a request through authentication is in a given security  role. A security role is a logical grouping of users defined by the  person who assembles the application. A deployer maps security roles to  security identities. Security identities may be principals or groups in  the operational environment.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is authorization constraint ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An authorization rule that determines who is permitted to access a Web  resource collection. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is B2B ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
B2B stands for Business-to-business. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is backing bean ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A JavaBeans component that corresponds to a JSP page that includes  JavaServer Faces components. The backing bean defines properties for the  components on the page and methods that perform processing for the  component. This processing includes event handling, validation, and  processing associated with navigation.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is basic authentication ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
An authentication mechanism in which a Web server authenticates an  entity via a user name and password obtained using the Web application&#39;s  built-in authentication mechanism. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt; &lt;b&gt;What is bean-managed persistence ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The mechanism whereby data transfer between an entity bean&#39;s variables  and a resource manager is managed by the entity bean.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is bean-managed transaction ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A transaction whose boundaries are defined by an enterprise bean.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;What is binding (XML) ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Generating the code needed to process a well-defined portion of XML  data.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/2517019556561522315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/2517019556561522315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/2517019556561522315'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers2.html' title='J2EE Interview Questions and Answers2'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-6088733111248650995</id><published>2010-02-03T02:24:00.000+06:00</published><updated>2010-02-03T02:24:21.662+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="J2EE"/><title type='text'>J2EE Interview Questions and Answers1</title><content type='html'>&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is J2EE?&lt;/span&gt;&lt;u&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;J2EE is an environment for developing and deploying enterprise  applications. The J2EE platform consists of a set of services,  application programming interfaces (APIs), and protocols that provide  the functionality for developing multitier, web-based applications. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is the J2EE module?&lt;u&gt; &lt;/u&gt; &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A J2EE module consists of one or more J2EE components for the same  container type and one component deployment descriptor of that type.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What are the components of J2EE application? &lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A J2EE component is a self-contained functional software unit that is  assembled into a J2EE application with its related classes and files and  communicates with other components. The J2EE specification defines the  following J2EE components: &lt;br /&gt;
&amp;nbsp;&amp;nbsp; Application clients and applets are client components. &lt;br /&gt;
&amp;nbsp;&amp;nbsp; Java Servlet and JavaServer PagesTM (JSPTM) technology components  are web components.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Enterprise JavaBeansTM (EJBTM) components (enterprise beans) are  business components.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Resource adapter components provided by EIS and tool vendors.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What are the four types of J2EE modules?&lt;u&gt; &lt;/u&gt; &lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
1. Application client module&lt;br /&gt;
2. Web module &lt;br /&gt;
3. Enterprise JavaBeans module &lt;br /&gt;
4. Resource adapter module &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What does application client module contain? &lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The application client module contains:&lt;br /&gt;
--class files, &lt;br /&gt;
--an application client deployment descriptor.&lt;br /&gt;
Application client modules are packaged as JAR files with a .jar  extension. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What does web module contain? &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The web module contains:&lt;br /&gt;
--JSP files,&lt;br /&gt;
--class files for servlets,&lt;br /&gt;
--GIF and HTML files, and &lt;br /&gt;
--a Web deployment descriptor. &lt;br /&gt;
Web modules are packaged as JAR files with a .war (Web ARchive)  extension.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What are the differences between Ear, Jar and War files? Under what  circumstances should we use each one? &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;answers&quot;&gt;There are no structural differences between the files; they are all  archived using zip-jar compression. However, they are intended for  different purposes.&lt;br /&gt;
--Jar files (files with a .jar extension) are intended to hold generic  libraries of Java classes, resources, auxiliary files, etc.&lt;br /&gt;
--War files (files with a .war extension) are intended to contain  complete Web applications. In this context, a Web application is defined  as a single group of files, classes, resources, .jar files that can be  packaged and accessed as one servlet context. &lt;br /&gt;
--Ear files (files with a .ear extension) are intended to contain  complete enterprise applications. In this context, an enterprise  application is defined as a collection of .jar files, resources,  classes, and multiple Web applications. &lt;br /&gt;
Each type of file (.jar, .war, .ear) is processed uniquely by  application servers, servlet containers, EJB containers, etc. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt; &lt;b&gt;What is the difference between Session bean and Entity bean ? &lt;/b&gt; &lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Session bean and Entity bean are two main parts of EJB container. &lt;br /&gt;
Session Bean&lt;br /&gt;
--represents a workflow on behalf of a client&lt;br /&gt;
--one-to-one logical mapping to a client.&lt;br /&gt;
--created and destroyed by a client &lt;br /&gt;
--not permanent objects&lt;br /&gt;
--lives its EJB container(generally) does not survive system shut down&lt;br /&gt;
--two types: stateless and stateful beans&lt;br /&gt;
Entity Bean&lt;br /&gt;
--represents persistent data and behavior of this data&lt;br /&gt;
--can be shared among multiple clients &lt;br /&gt;
--persists across multiple invocations &lt;br /&gt;
--findable permanent objects&lt;br /&gt;
--outlives its EJB container, survives system shutdown &lt;br /&gt;
--two types: container managed persistence(CMP) and bean managed  persistence(BMP) &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style53&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is &quot;applet&quot;&amp;nbsp; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A J2EE component that typically executes in a Web browser but can  execute in a variety of other applications or devices that support the  applet programming model.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;What is &quot;applet container&quot;&amp;nbsp; ?&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A container that includes support for the applet programming model.  &lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is &quot;application assembler&quot; ?&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
A person who combines J2EE components and modules into deployable  application units.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/6088733111248650995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/6088733111248650995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/6088733111248650995'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2ee-interview-questions-and-answers1.html' title='J2EE Interview Questions and Answers1'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-8530574625557984436</id><published>2010-02-03T01:44:00.002+06:00</published><updated>2010-02-03T01:44:35.725+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="j2me"/><title type='text'>J2ME Interview Questions and Answers6</title><content type='html'>&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is Tomcat ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;Tomcat is a reference implementation of the Java servlet  and JavaServer Pages (JSP) specifications. It is  intended as a platform for developing and testing  servlets.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is UDDI ?&lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
Universal Description, Discovery, and Integration (UDDI)  is an XML-based standard for describing, publishing, and  finding Web services. UDDI is a specification for a  distributed registry of Web services. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is UMTS &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Developed by Nortel Networks, Universal Mobile  Telecommunications Service (UMTS) is a standard that  will provide cellular users a consistent set of  technologies no matter where they are located worldwide.  UMTS utilizes W-CDMA technology. &lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is VLR &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Visitor Location Register (VLR) is a database that  contains temporary information about subscribers. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WAE &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Wireless Application Environment (WAE) provides a  application framework for small devices. WAE leverages  other technologies such as WAP, WTP, and WSP.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WAP &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Wireless Application Protocol (WAP) is a protocol for  transmitting data between servers and clients (usually  small wireless devices like mobile phones). WAP is  analogous to HTTP in the World Wide Web. Many mobile  phones include WAP browser software to allow users  access to Internet WAP sites. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WAP Gateway &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A WAP Gateway acts as a bridge allowing WAP devices to  communicate with other networks (namely the Internet). &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is W-CDMA &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Wideband Code-Division Multiple Access (W-CDMA), also  known as IMT-2000, is a 3rd generation wireless  technology. Supports speeds up to 384Kbps on a wide-area  network, or 2Mbps locally. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WDP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Wireless Datagram Protocol (WDP) works as the transport  layer of WAP. WDP processes datagrams from upper layers  to formats required by different physical datapaths,  bearers, that may be for example GSM SMS or CDMA Packet  Data. WDP is adapted to the bearers available in the  device so upper layers don&#39;t need to care about the  physical level. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WMA &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Wireless Messaging API (WMA) is a set of classes for  sending and receiving Short Message Service messages.  See also SMS. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WML &lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;The Wireless Markup Language (WML) is a simple language  used to create applications for small wireless devices  like mobile phones. WML is analogous to HTML in the  World Wide Web.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WMLScript &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
WMLScript is a subset of the JavaScript scripting  language designed as part of the WAP standard to provide  a convenient mechanism to access mobile phone&#39;s  peripheral functions. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WSP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Wireless Session Protocol (WSP) implements session  services of WAP. Sessions can be connection-oriented and  connectionless and they may be suspended and resumed at  will. &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt;&lt;b&gt;What is WTLS &lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Wireless Transport Layer Security protocal (WTLS) does  all cryptography oriented features of WAP. WTLS handles  encryption/decryption, user authentication and data  integrity. WTLS is based on the fixed network Transport  Layer Security protocal (TLS), formerly known as Secure  Sockets Layer (SSL). &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is WTP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Wireless Transaction Protocol (WTP) is WAP&#39;s transaction  protocol that works between the session protocol WSP and  security protocol WTLS. WTP chops data packets into  lower level datagrams and concatenates received  datagrams into useful data. WTP also keeps track of  received and sent packets and does re-transmissions and  acknowledgment sending when needed.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/8530574625557984436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8530574625557984436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8530574625557984436'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers6.html' title='J2ME Interview Questions and Answers6'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-952161196691395404</id><published>2010-02-03T01:38:00.002+06:00</published><updated>2010-02-03T01:38:49.796+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="j2me"/><title type='text'>J2ME Interview Questions and Answers5</title><content type='html'>&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is Provisioning ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;In telecommunications terms, provisioning means to  provide telecommunications services to a user. This  includes providing all necessary hardware, software, and  wiring or transmission devices.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is PSTN ?&lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The public service telephone network (PSTN) is the  traditional, land-line based system for exchanging phone  calls.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is RMI &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Remote method invocation (RMI) is a feature of J2SE that  enables Java objects running in one virtual machine to  invoke methods of Java objects running in another  virtual machine, seamlessly. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is RMI OP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The RMI Optional Package (RMI OP) is a subset of J2SE  1.3&#39;s RMI functionality used in CDC-based profiles that  incorporate the Foundation Profile, such as the Personal  Basis Profile and the Personal Profile. The RMIOP cannot  be used with CLDC-based profiles because they lack  object serialization and other important features found  only in CDC-based profiles. RMIOP supports most of the  J2SE RMI functionality, including the Java Remote Method  Protocol, marshalled objects, distributed garbage  collection, registry-based object lookup, and network  class loading, but not HTTP tunneling or the Java 1.1  stub protocol. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is RMI Profile &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The RMI Profile is a J2ME profile specification designed  to support Java&#39;s Remote Method Invocation (RMI)  distributed object system. Devices implementing the RMI  Profile will be able to interoperate via RMI with other  Java devices, including Java 2, Standard Edition. The  RMI Profile is based on the Foundation Profile, which in  turn is based on CDC. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is RMS &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Record Management System (RMS) is a simple  record-oriented database that allows a MIDlet to  persistently store information and retrieve it later.  Different MIDlets can also use the RMS to share data. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is SDK &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A Software Development Kit (SDK) is a set of tools used  to develop applications for a particular platform. An  SDK typically contains a compiler, linker, and debugger.  It may also contain libraries and documentation for  APIs.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is SIM &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A Subscriber Identity Module (SIM) is a stripped-down  smart card containing information about the identity of  a cell-phone subscriber, and subscriber authentication  and service information. Because the SIM uniquely  identifies the subscriber and is portable among  handsets, the user can move it from one kind of phone to  another, facilitating international roaming. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is SMS &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Short Message Service (SMS) is a point-to-point service  similar to paging for sending text messages of up to 160  characters to mobile phones. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is SOAP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The Simple Object Access Protocol (SOAP) is an XML-  based protocol that allows objects of any type to  communicated in a distributed environment. SOAP is used  in developing Web Services. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is SSL &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Secure Sockets Layer (SSL) is a socket protocol that  encrypts data sent over the network and provides  authentication for the socket endpoints. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is T9 &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
T9 is a text input method for mobile phones and other  small devices. It replaces the &quot;multi-tap&quot; input method  by guessing the word that you are trying to enter. T9  may be embedded in a device by the manufacturer. Note  that even if the device supports T9, the Java  implementation may or may not use it. Check your  documentation for details. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is TDMA &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Time Division Multiple Access (TDMA) is a  second-generation modulation standard using bandwidth  allocated in the 800 MHz, 900 MHz, and 1900MHz ranges.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is Telematics &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Telematics is a location-based service that routes event  notification and control data over wireless networks to  and from mobile devices installed in automobiles.  Telematics makes use of GPS technology to track vehicle  latitude and longitude, and displays maps in LED  consoles mounted in dashboards. It connects to remote  processing centers that turn provide server-side  Internet and voice services, as well as access to  database resources.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/952161196691395404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/952161196691395404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/952161196691395404'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers5.html' title='J2ME Interview Questions and Answers5'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-7147828083700641612</id><published>2010-02-03T01:32:00.001+06:00</published><updated>2010-02-03T01:32:37.188+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="j2me"/><title type='text'>J2ME Interview Questions and Answers4</title><content type='html'>&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is Modulation ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;Modulation is the method by which a high-frequency  digital signal is grafted onto a lower-frequency analog  wave, so that digital packets are able to ride piggyback  on the analog airwave.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is MSC ? &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A Mobile Switching Center (MSC) is a unit within a  cellular phone network that automatically coordinates  and switches calls in a given cell. It monitors each  caller&#39;s signal strength, and when a signal begins to  fade, it hands off the call to another MSC that&#39;s better  positioned to manage the call.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is Obfuscation &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Obfuscation is a technique used to complicate code.  Obfuscation makes code harder to understand when it is  de-compiled, but it typically has no affect on the  functionality of the code. Obfuscation programs can be  used to protect Java programs by making them harder to  reverse-engineer. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is optional package &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
An optional package is a set of J2ME APIs providing  services in a specific area, such as database access or  multimedia. Unlike a profile, it does not define a  complete application environment, but rather is used in  conjunction with a configuration or a profile. It  extends the runtime environment to support device  capabilities that are not universal enough to be defined  as part of a profile or that need to be shared by  different profiles. J2ME RMI and the Mobile Media RMI  are examples of optional packages. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is OTA &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Over The Air (OTA) refers to any wireless networking  technology. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is PCS &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Personal Communications Service (PCS) is a suite of  second-generation, digitally modulated  mobile-communications interfaces that includes TDMA,  CDMA, and GSM. PCS serves as an umbrella term for  second-generation wireless technologies operating in the  1900MHz range&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is PDAP  &lt;/span&gt; &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
The Personal Digital Assistant Profile (PDAP) is a J2ME  profile specification designed for small platforms such  as PalmOS devices. You can think of PDAs as being larger  than mobile phones but smaller than set-top boxes. PDAP  is built on top of CLDC and will specify user interface  and persistent storage APIs. PDAP is currently being  developed using the Java Community Process (JCP). &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is PDC &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Personal Digital Cellular (PDC) is a Japanese standard  for wireless communications. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is PDCP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Parallel and Distributed Computing Practices (PDCP) are  often used to describe computer systems that are spread  over many devices on a network (wired or wireless) where  many nodes process data simultaneously. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is Personal Profile &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Personal Profile is a J2ME profile specification.  Layered on the Foundation Profile and CDC, the Personal  Profile will be the next generation of PersonalJava  technology. The specification is currently in  development under the Java Community Process (JCP).  &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is PersonalJava &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
PersonalJava is a Java environment based on the Java  virtual machine1 (JVM) and a set of APIs similar to a  JDK 1.1 environment. It includes the Touchable Look and  Feel (also called Truffle), a graphic toolkit that is  optimized for consumer devices with a touch sensitive  screen. PersonalJava will be included in J2ME in the  upcoming Personal Profile, which is built on CDC. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is PNG &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Portable Network Graphics (PNG) is an image format  offering lossless compression and storage flexibility.  The MIDP specification requires implementations to  recognize certain types of PNG images.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is POSE &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Palm OS Emulator (POSE). &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is PRC &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Palm Resource Code (PRC) is the file format for Palm OS  applications. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is preverification &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Due to memory and processing power available on a  device, the verification process of classes are split  into two processes. The first process is the  preverification which is off-device and done using the  preverify tool. The second process is verification which  is done on-device.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is profile &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A profile is a set of APIs added to a configuration to  support specific uses of a mobile device. Along with its  underlying configuration, a profile defines a complete,  and usually self-contained, general-purpose application  environment. Profiles often, but not always, define APIs  for user interface and persistence; the MIDP profile,  based on the CLDC configuration, fits this pattern.  Profiles may be supersets or subsets of other profiles;  the Personal Basis Profile is a subset of the Personal  Profile and a superset of the Foundation Profile. See  also configuration, optional package.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/7147828083700641612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7147828083700641612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7147828083700641612'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers.html' title='J2ME Interview Questions and Answers4'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-4163995880727329357</id><published>2010-02-03T01:28:00.000+06:00</published><updated>2010-02-03T01:28:28.194+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="j2me"/><title type='text'>J2ME Interview Questions and Answers3</title><content type='html'>&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;What is JDBC for CDC/FP ?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;answers&quot;&gt;The JDBC Optional Package for CDC/Foundation Profile (JDBCOP  for CDC/FP) is an API that enables mobile Java  applications to communicate with relational database  servers using a subset of J2SE&#39;s Java Database  Connectivity. This optional package is a strict subset  of JDBC 3.0 that excludes some of JDBC&#39;s advanced and  server-oriented features, such as pooled connections and  array types. It&#39;s meant for use with the Foundation  Profile or its supersets.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is JSR &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Java Specification Request (JSR) is the actual  description of proposed and final specifications for the  Java platform. JSRs are reviewed by the JCP and the  public before a final release of a specification is  made. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is KittyHawk &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
KittyHawk is a set of APIs used by LG Telecom on its  IBook and p520 devices. KittyHawk is based on CLDC. It  is conceptually similar to MIDP but the two APIs are  incompatible.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;for_questions_blue&quot;&gt;&lt;b&gt;What is KJava &lt;/b&gt; &lt;/span&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
KJava is an outdated term for J2ME. It comes from an  early package of Java software for PalmOS, released at  the 2000 JavaOne show. The classes for that release were  packaged in the com.sun.kjava package. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is kSOAP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
kSOAP is a SOAP API suitable for the J2ME, based on kXML. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is kXML &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The kXML project provides a small footprint XML parser  that can be used with J2ME. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is KVM &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The KVM is a compact Java virtual machine (JVM) that is  designed for small devices. It supports a subset of the  features of the JVM. For example, the KVM does not  support floating-point operations and object  finalization. The CLDC specifies use of the KVM.  According to folklore, the &#39;K&#39; in KVM stands for  kilobyte, signifying that the KVM runs in kilobytes of  memory as opposed to megabytes. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is LAN &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A Local Area Network (LAN) is a group of devices  connected with various communications technologies in a  small geographic area. Ethernet is the most widely-used  LAN technology. Communication on a LAN can either be  with Peer-to-Peer devices or Client-Server devices.  &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is LCDUI &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
LCDUI is a shorthand way of referring to the MIDP user  interface APIs, contained in the  javax.microedition.lcdui package. Strictly speaking,  LCDUI stands for Liquid Crystal Display User Interface.  It&#39;s a user interface toolkit for small device screens  which are commonly LCD screens.&lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;&amp;nbsp;What is MExE &lt;/b&gt; &lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Mobile Execution Environment (MExE) is a  specification created by the 3GPP which details an  applicatio n environment for next generation mobile  devices. MExE consists of a variety of technologies  including WAP, J2ME, CLDC and MIDP. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is MIDlet &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
A MIDlet is an application written for MIDP. MIDlet  applications are subclasses of the  javax.microedition.midlet.MIDlet class that is defined  by MIDP. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is MIDlet suite &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
MIDlets are packaged and distributed as MIDlet suites. A  MIDlet suite can contain one or more MIDlets. The MIDlet  suite consists of two files, an application descriptor  file with a .jad extension and an archive file with a  .jar file. The descriptor lists the archive file name,  the names and class names for each MIDlet in the suite,  and other information. The archive file contains the  MIDlet classes and resource files. &lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is MIDP &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Mobile Information Device Profile (MIDP) is a  specification for a J2ME profile. It is layered on top  of CLDC and adds APIs for application life cycle, user  interface, networking, and persistent storage. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is MIDP-NG &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
The Next Generation MIDP specification is currently  under development by the Java Community Process. Planned  improvements include XML parsing and cryptographic  support. &lt;/span&gt;&lt;br /&gt;
&lt;b class=&quot;for_questions_blue&quot;&gt;What is Mobitex &lt;/b&gt;&lt;span class=&quot;answers&quot;&gt; &lt;br /&gt;
Mobitex is a packet-switched, narrowband PCS network,  designed for wide-area wireless data communications. It  was developed in 1984 by Eritel, an Ericsson subsidiary,  a nd there are now over 30 Mobitex networks in operation  worldwide.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/4163995880727329357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/4163995880727329357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/4163995880727329357'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers3.html' title='J2ME Interview Questions and Answers3'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-8147946441238380543</id><published>2010-02-02T22:08:00.000+06:00</published><updated>2010-02-02T22:08:45.556+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="j2me"/><title type='text'>J2ME Interview Questions and Answers2</title><content type='html'>&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;What is ETSI ?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
The European Telecommunications Standards Institute (ETSI) is a non-profit organization that establishes telecommunications standards for Europe. &lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
What is FDMA ?&lt;br /&gt;
Frequency-division multiple-access (FDMA) is a mechanism for sharing a radio frequency band among multiple users by dividing it into a number of smaller bands.&lt;br /&gt;
&lt;br /&gt;
What is Foundation Profile ?&lt;br /&gt;
The Foundation Profile is a J2ME profile specification that builds on CDC. It adds additional classes and interfaces to the CDC APIs but does not go so far as to specify user interface APIs, persistent storage, or application life cycle. Other J2ME profiles build on the CDC/Foundation combination: for example, the Personal Profile and the RMI Profile both build on the Foundation Profile. &lt;br /&gt;
&lt;br /&gt;
What is Generic Connection Framework ?&lt;br /&gt;
The Generic Connection Framework (GCF) makes it easy for wireless devices to make network connections. It is part of CLDC and CDC and resides in the javax.microedition.io package. &lt;br /&gt;
&lt;br /&gt;
What is GPRS ?&lt;br /&gt;
The General Packet Radio System (GPRS) is the next generation of GSM. It will be the basis of 3G networks in Europe and elsewhere. &lt;br /&gt;
&lt;br /&gt;
What is GSM ?&lt;br /&gt;
The Global System for Mobile Communications (GSM) is a wireless network system that is widely used in Europe, Asia, and Australia. GSM is used at three different frequencies: GSM900 and GSM1800 are used in Europe, Asia, and Australia, while GSM1900 is deployed in North America and other parts of the world. &lt;br /&gt;
&lt;br /&gt;
What is HLR ?&lt;br /&gt;
The Home Location Register (HLR) is a database for permanent storage of subscriber data and service profiles. &lt;br /&gt;
&lt;br /&gt;
What is HTTPS ?&lt;br /&gt;
Hyper Text Transfer Protocol Secure sockets (HTTPS) is a protocol for transmission of encrypted hypertext over Secure Sockets Layer.&lt;br /&gt;
&lt;br /&gt;
What is i-appli ?&lt;br /&gt;
Sometimes called &quot;Java for i-mode&quot;, i-appli is a Java environment based on CLDC. It is used on handsets in NTT DoCoMo&#39;s i-mode service. While i-appli is similar to MIDP, it was developed before the MIDP specification was finished and the two APIs are incompatible. &lt;br /&gt;
&lt;br /&gt;
What is IDE ?&lt;br /&gt;
An Integrated Development Environment (IDE) provides a programming environment as a single application. IDEs typically bundle a compiler, debugger, and GUI builder tog ether. Forte for Java is Sun&#39;s Java IDE. &lt;br /&gt;
&lt;br /&gt;
What is iDEN ?&lt;br /&gt;
The Integrated Dispatch Enhanced Network (iDEN) is a wireless network system developed by Motorola. Various carriers support iDEN networks around the world: Nextel is one of the largest carriers, with networks covering North and South America. &lt;br /&gt;
&lt;br /&gt;
What is i-mode ?&lt;br /&gt;
A standard used by Japanese wireless devices to access cHTML (compact HTML) Web sites and display animated GIFs and other multimedia content. &lt;br /&gt;
&lt;br /&gt;
What is 3G ?&lt;br /&gt;
Third generation (3G) wireless networks will offer faster data transfer rates than current networks. The first generation of wireless (1G) was analog cellular. The second generation (2G) is digital cellular, featuring integrated voice and data communications. So-called 2.5G networks offer incremental speed increases. 3G networks will offer dramatically improved data transfer rates, enabling new wireless applications such as streaming media. &lt;br /&gt;
&lt;br /&gt;
What is 3GPP ?&lt;br /&gt;
The 3rd Generation Partnership Project (3GPP) is a global collaboration between 6 partners: ARIB, CWTS, ETSI, T1, TTA, and TTC. The group aims to develop a globally accepted 3rd-generation mobile system based on GSM.&lt;br /&gt;
&lt;br /&gt;
What is Java Card ?&lt;br /&gt;
The Java Card specification allows Java technology to run on smart cards and other small devices. The Java Card API is compatible with formal international standards, such as, ISO7816, and industry-specific standards, such as, Europay/Master Card/Visa (EMV). &lt;br /&gt;
&lt;br /&gt;
What is JavaHQ ?&lt;br /&gt;
JavaHQ is the Java platform control center on your Palm OS device. &lt;br /&gt;
&lt;br /&gt;
What is JCP ?&lt;br /&gt;
The Java Community Process (JCP) an open organization of international Java developers and licensees who develop and revise Java technology specifications, reference implementations, and technology compatibility kits through a formal process.</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/8147946441238380543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8147946441238380543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/8147946441238380543'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers2.html' title='J2ME Interview Questions and Answers2'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-7269885468968580278</id><published>2010-02-02T21:58:00.002+06:00</published><updated>2010-02-02T21:58:50.734+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="j2me"/><title type='text'>J2ME Interview Questions and Answers1</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;What is J2ME ?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Java 2, Micro Edition is a group of specifications and technologies that pertain to Java on small devices. The J2ME moniker covers a wide range of devices, from pagers and mobile telephones through set-top boxes and car navigation systems. The J2ME world is divided into configurations and profiles, specifications that describe a Java environment for a specific class of device. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
What is J2ME WTK ?&lt;br /&gt;
The J2ME Wireless Toolkit is a set of tools that provides developers with an emulation environment, documentation and examples for developing Java applications for small devices. The J2ME WTK is based on the Connected Limited Device Configuration (CLDC) and Mobile Information Device Profile (MIDP) reference implementations, and can be tightly integrated with Forte for Java &lt;br /&gt;
&lt;br /&gt;
What is 802.11 ?&lt;br /&gt;
802.11 is a group of specifications for wireless networks developed by the Institute of Electrical and Electronics Engineers (IEEE). 802.11 uses the Ethernet protocol and CSMA/CA (carrier sense multiple access with collision avoidance) for path sharing. &lt;br /&gt;
&lt;br /&gt;
What is API ?&lt;br /&gt;
An Application Programming Interface (API) is a set of classes that you can use in your own application. Sometimes called libraries or modules, APIs enable you to write an application without reinventing common pieces of code. For example, a networking API is something your application can use to make network connections, without your ever having to understand the underlying code. 5. What is AMPS &lt;br /&gt;
&lt;br /&gt;
Advanced Mobile Phone Service (AMPS) is a first-generation analog, circuit-switched cellular phone network. Originally operating in the 800 MHz band, service was later expanded to include transmissions in the 1900 MHz band, the VHF range in which most wireless carriers operate. Because AMPS uses analog signals, it cannot transmit digital signals and cannot transport data packets without assistance from newer technologies such as TDMA and CDMA. &lt;br /&gt;
&lt;br /&gt;
What is CDC ?&lt;br /&gt;
&lt;br /&gt;
The Connected Device Configuration (CDC) is a specification for a J2ME configuration. Conceptually, CDC deals with devices with more memory and processing power than CLDC; it is for devices with an always-on network connection and a minimum of 2 MB of memory available for the Java system.&lt;br /&gt;
&lt;br /&gt;
What is CDMA ?&lt;br /&gt;
Code-Division Multiple Access (CDMA) is a cellular technology widely used in North America. There are currently three CDMA standards: CDMA One, CDMA2000 and W-CDMA. CDMA technology uses UHF 800Mhz-1.9Ghz frequencies and bandwidth ranges from 115Kbs to 2Mbps. &lt;br /&gt;
&lt;br /&gt;
What is CDMA One ?&lt;br /&gt;
Also know as IS-95, CDMA One is a 2nd generation wireless technology. Supports speeds from 14.4Kbps to 115K bps. &lt;br /&gt;
&lt;br /&gt;
What is CDMA2000 ?&lt;br /&gt;
Also known as IS-136, CDMA2000 is a 3rd generation wireless technology. Supports speeds ranging from 144Kbps to 2Mbps. &lt;br /&gt;
&lt;br /&gt;
What is CDPD ?&lt;br /&gt;
Developed by Nortel Networks, Cellular Digital Packet Data (CDPD) is an open standard for supporting wireless Internet access from cellular devices. CDPD also supports Multicast, which allows content providers to efficiently broadcast information to many devices at the same time. &lt;br /&gt;
&lt;br /&gt;
What is cHTML ?&lt;br /&gt;
Compact HTML (cHTML) is a subset of HTML which is designed for small devices. The major features of HTML that are excluded from cHTML are: JPEG image, Table, Image map, Multiple character fonts and styles, Background color and image, Frame and Style sheet. &lt;br /&gt;
&lt;br /&gt;
What is CLDC ?&lt;br /&gt;
The Connected, Limited Device Configuration (CLDC) is a specification for a J2ME configuration. The CLDC is for devices with less than 512 KB or RAM available for the Java system and an intermittent (limited) network connection. It specifies a stripped-down Java virtual machine1 called the KVM as well as several APIs for fundamental application services. Three packages are minimalist versions of the J2SE java.lang, java.io, and java.util packages. A fourth package, javax.microedition.io, implements the Generic Connection Framework, a generalized API for making network connections.&lt;br /&gt;
&lt;br /&gt;
What is configuration ?&lt;br /&gt;
In J2ME, a configuration defines the minimum Java runtime environment for a family of devices: the combination of a Java virtual machine (either the standard J2SE virtual machine or a much more limited version called the CLDC VM) and a core set of APIs. CDC and CLDC are configurations. See also profile, optional package. &lt;br /&gt;
&lt;br /&gt;
What is CVM ?&lt;br /&gt;
The Compact Virtual Machine (CVM) is an optimized Java virtual machine1 (JVM) that is used by the CDC. &lt;br /&gt;
&lt;br /&gt;
What is Deck ?&lt;br /&gt;
A deck is a collection of one or more WML cards that can be downloaded, to a mobile phone, as a single entity. &lt;br /&gt;
&lt;br /&gt;
What is EDGE ?&lt;br /&gt;
Enhanced Data GSM Environment (EDGE) is a new, faster version of GSM. EDGE is designed to support transfer rates up to 384Kbps and enable the delivery of video and other high-bandwidth applications. EDGE is the result of a joint effort between TDMA operators, vendors and carriers and the GSM Alliance.</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/7269885468968580278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7269885468968580278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7269885468968580278'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/02/j2me-interview-questions-and-answers1.html' title='J2ME Interview Questions and Answers1'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-7227121021429610748</id><published>2010-01-21T02:48:00.000+06:00</published><updated>2010-01-21T02:48:23.295+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Qality Assurance"/><title type='text'>50 COMMON INTERVIEW Q&amp;A</title><content type='html'>Review these typical interview questions and think about how you would&lt;br /&gt;
answer them. Read the questions listed; you will also find some&lt;br /&gt;
strategy suggestions with it.&lt;br /&gt;
&lt;br /&gt;
(Excerpted from the book The Accelerated Job Search by Wayne D. Ford, Ph.D, published by The Management Advantage, Inc.)&lt;br /&gt;
&lt;br /&gt;
1. Tell me about yourself:&lt;br /&gt;
The most often asked question in interviews. You need to have a short&lt;br /&gt;
statement prepared in your mind. Be careful that it does not sound&lt;br /&gt;
rehearsed. Limit it to work-related items unless instructed otherwise.&lt;br /&gt;
Talk about things you have done and jobs you have held that relate to&lt;br /&gt;
the position you are interviewing for. Start with the item farthest&lt;br /&gt;
back and work up to the present.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Why did you leave your last job?&lt;br /&gt;
Stay positive regardless of the circumstances. Never refer to a major&lt;br /&gt;
problem with management and never speak ill of supervisors, co-workers&lt;br /&gt;
or the organization. If you do, you will be the one looking bad. Keep&lt;br /&gt;
smiling and talk about leaving for a positive reason such as an&lt;br /&gt;
opportunity, a chance to do something special or other forward-looking&lt;br /&gt;
reasons.&lt;br /&gt;
&lt;br /&gt;
3. What experience do you have in this field?&lt;br /&gt;
Speak about specifics that relate to the position you are applying for.&lt;br /&gt;
If you do not have specific experience, get as close as you can.&lt;br /&gt;
&lt;br /&gt;
4. Do you consider yourself successful?&lt;br /&gt;
You should always answer yes and briefly explain why. A good&lt;br /&gt;
explanation is that you have set goals, and you have met some and are&lt;br /&gt;
on track to achieve the others.&lt;br /&gt;
&lt;br /&gt;
5. What do co-workers say about you?&lt;br /&gt;
Be prepared with a quote or two from co-workers. Either a specific&lt;br /&gt;
statement or a paraphrase will work. Jill Clark, a co-worker at Smith&lt;br /&gt;
Company, always said I was the hardest workers she had ever known. It&lt;br /&gt;
is as powerful as Jill having said it at the interview herself.&lt;br /&gt;
&lt;br /&gt;
6. What do you know about this organization?&lt;br /&gt;
This question is one reason to do some research on the organization&lt;br /&gt;
before the interview. Find out where they have been and where they are&lt;br /&gt;
going. What are the current issues and who are the major players?&lt;br /&gt;
&lt;br /&gt;
7. What have you done to improve your knowledge in the last year?&lt;br /&gt;
Try to include improvement activities that relate to the job. A wide&lt;br /&gt;
variety of activities can be mentioned as positive self-improvement.&lt;br /&gt;
Have some good ones handy to mention.&lt;br /&gt;
&lt;br /&gt;
8. Are you applying for other jobs?&lt;br /&gt;
Be honest but do not spend a lot of time in this area. Keep the focus&lt;br /&gt;
on this job and what you can do for this organization. Anything else is&lt;br /&gt;
a distraction.&lt;br /&gt;
&lt;br /&gt;
9. Why do you want to work for this organization?&lt;br /&gt;
This may take some thought and certainly, should be based on the&lt;br /&gt;
research you have done on the organization. Sincerity is extremely&lt;br /&gt;
important here and will easily be sensed. Relate it to your long-term&lt;br /&gt;
career goals.&lt;br /&gt;
&lt;br /&gt;
10. Do you know anyone who works for us?&lt;br /&gt;
Be aware of the policy on relatives working for the organization. This&lt;br /&gt;
can affect your answer even though they asked about friends not&lt;br /&gt;
relatives. Be careful to mention a friend only if they are well thought&lt;br /&gt;
of.&lt;br /&gt;
&lt;br /&gt;
11. What kind of salary do you need?&lt;br /&gt;
A loaded question. A nasty little game that you will probably lose if&lt;br /&gt;
you answer first. So, do not answer it. Instead, say something like,&lt;br /&gt;
That’s a tough question. Can you tell me the range for this position?&lt;br /&gt;
In most cases, the interviewer, taken off guard, will tell you. If not,&lt;br /&gt;
say that it can depend on the details of the job. Then give a wide&lt;br /&gt;
range.&lt;br /&gt;
&lt;br /&gt;
12. Are you a team player?&lt;br /&gt;
You are, of course, a team player. Be sure to have examples ready.&lt;br /&gt;
Specifics that show you often perform for the good of the team rather&lt;br /&gt;
than for yourself are good evidence of your team attitude. Do not brag,&lt;br /&gt;
just say it in a matter-of-fact tone. This is a key point.&lt;br /&gt;
&lt;br /&gt;
13. How long would you expect to work for us if hired?&lt;br /&gt;
Specifics here are not good. Something like this should work: I’d like&lt;br /&gt;
it to be a long time. Or As long as we both feel I’m doing a good job.&lt;br /&gt;
&lt;br /&gt;
14. Have you ever had to fire anyone? How did you feel about that?&lt;br /&gt;
This is serious. Do not make light of it or in any way seem like you&lt;br /&gt;
like to fire people. At the same time, you will do it when it is the&lt;br /&gt;
right thing to do. When it comes to the organization versus the&lt;br /&gt;
individual who has created a harmful situation, you will protect the&lt;br /&gt;
organization. Remember firing is not the same as layoff or reduction in&lt;br /&gt;
force.&lt;br /&gt;
&lt;br /&gt;
15. What is your philosophy towards work?&lt;br /&gt;
The interviewer is not looking for a long or flowery dissertation here.&lt;br /&gt;
Do you have strong feelings that the job gets done? Yes. That’s the&lt;br /&gt;
type of answer that works best here. Short and positive, showing a&lt;br /&gt;
benefit to the organization.&lt;br /&gt;
&lt;br /&gt;
16. If you had enough money to retire right now, would you?&lt;br /&gt;
Answer yes if you would. But since you need to work, this is the type&lt;br /&gt;
of work you prefer. Do not say yes if you do not mean it.&lt;br /&gt;
&lt;br /&gt;
17. Have you ever been asked to leave a position?&lt;br /&gt;
If you have not, say no. If you have, be honest, brief and avoid saying&lt;br /&gt;
negative things about the people or organization involved.&lt;br /&gt;
&lt;br /&gt;
18. Explain how you would be an asset to this organization&lt;br /&gt;
You should be anxious for this question. It gives you a chance to&lt;br /&gt;
highlight your best points as they relate to the position being&lt;br /&gt;
discussed. Give a little advance thought to this relationship.&lt;br /&gt;
&lt;br /&gt;
19. Why should we hire you?&lt;br /&gt;
Point out how your assets meet what the organization needs. Do not&lt;br /&gt;
mention any other candidates to make a comparison.&lt;br /&gt;
&lt;br /&gt;
20. Tell me about a suggestion you have made&lt;br /&gt;
Have a good one ready. Be sure and use a suggestion that was accepted&lt;br /&gt;
and was then considered successful. One related to the type of work&lt;br /&gt;
applied for is a real plus.&lt;br /&gt;
&lt;br /&gt;
21. What irritates you about co-workers?&lt;br /&gt;
This is a trap question. Think real hard but fail to come up with&lt;br /&gt;
anything that irritates you. A short statement that you seem to get&lt;br /&gt;
along with folks is great.&lt;br /&gt;
&lt;br /&gt;
22. What is your greatest strength?&lt;br /&gt;
Numerous answers are good, just stay positive. A few good examples:&lt;br /&gt;
Your ability to prioritize, Your problem-solving skills, Your ability&lt;br /&gt;
to work under pressure, Your ability to focus on projects, Your&lt;br /&gt;
professional expertise, Your leadership skills, Your positive attitude&lt;br /&gt;
&lt;br /&gt;
23. Tell me about your dream job.&lt;br /&gt;
Stay away from a specific job. You cannot win. If you say the job you&lt;br /&gt;
are contending for is it, you strain credibility. If you say another&lt;br /&gt;
job is it, you plant the suspicion that you will be dissatisfied with&lt;br /&gt;
this position if hired. The best is to stay genetic and say something&lt;br /&gt;
like: A job where I love the work, like the people, can contribute and&lt;br /&gt;
can’t wait to get to work.&lt;br /&gt;
&lt;br /&gt;
24. Why do you think you would do well at this job?&lt;br /&gt;
Give several reasons and include skills, experience and interest.&lt;br /&gt;
&lt;br /&gt;
25. What are you looking for in a job?&lt;br /&gt;
See answer # 23&lt;br /&gt;
&lt;br /&gt;
26. What kind of person would you refuse to work with?&lt;br /&gt;
Do not be trivial. It would take disloyalty to the organization,&lt;br /&gt;
violence or lawbreaking to get you to object. Minor objections will&lt;br /&gt;
label you as a whiner.&lt;br /&gt;
&lt;br /&gt;
27. What is more important to you: the money or the work?&lt;br /&gt;
Money is always important, but the work is the most important. There is&lt;br /&gt;
no better answer.&lt;br /&gt;
&lt;br /&gt;
28. What would your previous supervisor say your strongest point is?&lt;br /&gt;
There are numerous good possibilities:&lt;br /&gt;
Loyalty, Energy, Positive attitude, Leadership, Team player, Expertise,&lt;br /&gt;
Initiative, Patience, Hard work, Creativity, Problem solver&lt;br /&gt;
&lt;br /&gt;
29. Tell me about a problem you had with a supervisor&lt;br /&gt;
Biggest trap of all. This is a test to see if you will speak ill of&lt;br /&gt;
your boss. If you fall for it and tell about a problem with a former&lt;br /&gt;
boss, you may well below the interview right there. Stay positive and&lt;br /&gt;
develop a poor memory about any trouble with a supervisor.&lt;br /&gt;
&lt;br /&gt;
30. What has disappointed you about a job?&lt;br /&gt;
Don’t get trivial or negative. Safe areas are few but can include:&lt;br /&gt;
Not enough of a challenge. You were laid off in a reduction Company did&lt;br /&gt;
not win a contract, which would have given you more responsibility.&lt;br /&gt;
&lt;br /&gt;
31. Tell me about your ability to work under pressure.&lt;br /&gt;
You may say that you thrive under certain types of pressure. Give an&lt;br /&gt;
example that relates to the type of position applied for.&lt;br /&gt;
&lt;br /&gt;
32. Do your skills match this job or another job more closely?&lt;br /&gt;
Probably this one. Do not give fuel to the suspicion that you may want&lt;br /&gt;
another job more than this one.&lt;br /&gt;
&lt;br /&gt;
33. What motivates you to do your best on the job?&lt;br /&gt;
This is a personal trait that only you can say, but good examples are:&lt;br /&gt;
Challenge, Achievement, Recognition&lt;br /&gt;
&lt;br /&gt;
34. Are you willing to work overtime? Nights? Weekends?&lt;br /&gt;
This is up to you. Be totally honest.&lt;br /&gt;
&lt;br /&gt;
35. How would you know you were successful on this job?&lt;br /&gt;
Several ways are good measures:&lt;br /&gt;
You set high standards for yourself and meet them. Your outcomes are a&lt;br /&gt;
success.Your boss tell you that you are successful&lt;br /&gt;
&lt;br /&gt;
36. Would you be willing to relocate if required?&lt;br /&gt;
You should be clear on this with your family prior to the interview if&lt;br /&gt;
you think there is a chance it may come up. Do not say yes just to get&lt;br /&gt;
the job if the real answer is no. This can create a lot of problems&lt;br /&gt;
later on in your career. Be honest at this point and save yourself&lt;br /&gt;
future grief.&lt;br /&gt;
&lt;br /&gt;
37. Are you willing to put the interests of the organization ahead ofyour own?&lt;br /&gt;
This is a straight loyalty and dedication question. Do not worry about&lt;br /&gt;
the deep ethical and philosophical implications. Just say yes.&lt;br /&gt;
&lt;br /&gt;
38. Describe your management style.&lt;br /&gt;
Try to avoid labels. Some of the more common labels, like progressive,&lt;br /&gt;
salesman or consensus, can have several meanings or descriptions&lt;br /&gt;
depending on which management expert you listen to. The situational&lt;br /&gt;
style is safe, because it says you will manage according to the&lt;br /&gt;
situation, instead of one size fits all.&lt;br /&gt;
&lt;br /&gt;
39. What have you learned from mistakes on the job?&lt;br /&gt;
Here you have to come up with something or you strain credibility. Make&lt;br /&gt;
it small, well intentioned mistake with a positive lesson learned. An&lt;br /&gt;
example would be working too far ahead of colleagues on a project and&lt;br /&gt;
thus throwing coordination off.&lt;br /&gt;
&lt;br /&gt;
40. Do you have any blind spots?&lt;br /&gt;
Trick question. If you know about blind spots, they are no longer blind&lt;br /&gt;
spots. Do not reveal any personal areas of concern here. Let them do&lt;br /&gt;
their own discovery on your bad points. Do not hand it to them.&lt;br /&gt;
&lt;br /&gt;
41. If you were hiring a person for this job, what would you look for?&lt;br /&gt;
Be careful to mention traits that are needed and that you have.&lt;br /&gt;
&lt;br /&gt;
42. Do you think you are overqualified for this position?&lt;br /&gt;
Regardless of your qualifications, state that you are very well&lt;br /&gt;
qualified for the position.&lt;br /&gt;
&lt;br /&gt;
43. How do you propose to compensate for your lack of experience?&lt;br /&gt;
First, if you have experience that the interviewer does not know about,&lt;br /&gt;
bring that up: Then, point out (if true) that you are a hard working&lt;br /&gt;
quick learner.&lt;br /&gt;
&lt;br /&gt;
44. What qualities do you look for in a boss?&lt;br /&gt;
Be generic and positive. Safe qualities are knowledgeable, a sense of&lt;br /&gt;
humor, fair, loyal to subordinates and holder of high standards. All&lt;br /&gt;
bosses think they have these traits.&lt;br /&gt;
&lt;br /&gt;
45. Tell me about a time when you helped resolve a dispute betweenothers.&lt;br /&gt;
Pick a specific incident. Concentrate on your problem solving technique&lt;br /&gt;
and not the dispute you settled.&lt;br /&gt;
&lt;br /&gt;
46. What position do you prefer on a team working on a project?&lt;br /&gt;
Be honest. If you are comfortable in different roles, point that out.&lt;br /&gt;
&lt;br /&gt;
47. Describe your work ethic.&lt;br /&gt;
Emphasize benefits to the organization. Things like, determination to&lt;br /&gt;
get the job done and work hard but enjoy your work are good.&lt;br /&gt;
&lt;br /&gt;
48. What has been your biggest professional disappointment?&lt;br /&gt;
Be sure that you refer to something that was beyond your control. Show&lt;br /&gt;
acceptance and no negative feelings.&lt;br /&gt;
&lt;br /&gt;
49. Tell me about the most fun you have had on the job.&lt;br /&gt;
Talk about having fun by accomplishing something for the organization.&lt;br /&gt;
&lt;br /&gt;
50. Do you have any questions for me?&lt;br /&gt;
Always have some questions prepared. Questions prepared where you will be an asset to the organization are good. How soon will I be able to be productive? and What type of projects will I be able to assist on? are&lt;br /&gt;
examples.</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/7227121021429610748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/50-common-interview-q.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7227121021429610748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/7227121021429610748'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/50-common-interview-q.html' title='50 COMMON INTERVIEW Q&amp;A'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-1503155389218099361</id><published>2010-01-21T02:31:00.000+06:00</published><updated>2010-01-21T02:31:11.064+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Qality Assurance"/><title type='text'>QA Interview Questions and Answers – for Software QA tester and QA analyst</title><content type='html'>QA software tester plans &amp;amp; conducts various test processes to new developed software in order to verify that the software programs functions according to the initial requirements.&lt;br /&gt;
&lt;br /&gt;
The compatibility, functionality and the quality of the product is tested according to pre established quality standards and guidelines.&lt;br /&gt;
&lt;br /&gt;
The difference between QA analysts (QA engineers) and products/software QA testers is that the quality assurance analysts focus on improving and minimizing defects and preventing mistakes from accruing in the first place, while QA testers perform Quality Control tests in order to find bugs and diagnose errors per pre/post product release.&lt;br /&gt;
&lt;br /&gt;
This article provides wide ranging of interview questions for QA positions such as – QA engineers, Quality Assurance analysts and SQA testers and suggests answers for the same.&lt;br /&gt;
QA testing interview questions and answers – software QA interview questions with answers&lt;br /&gt;
&lt;br /&gt;
The following questions are good for QA engineers, quality assurance QA analysts and SQA, software QA testers’ professionals:&lt;br /&gt;
&lt;br /&gt;
• What is the meaning of traceability matrix? &lt;br /&gt;
Answer – Tractability matrix is used to cross check the test scripts per the requirement of the test cases. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
• What is the difference between verification and validation?&lt;br /&gt;
Answer – Verification is based on verifying the functionality of a new system while validation is based on testing scenarios and test cases of a new system.&lt;br /&gt;
&lt;br /&gt;
• Describe the role of software QA in terms of the test plan – scope of work, monitoring reliability and project implementation.&lt;br /&gt;
Answer – You should explain how you determine the timing for system testing, what to test and when do you finalize the testing?&lt;br /&gt;
&lt;br /&gt;
• Describe test strategy – What are the steps you generally take to test any software? What is the first test in software testing process?&lt;br /&gt;
Answer – Unit testing is the first test that is usually done by the developers. You have to explain the methods you use for preparing test data per the test cases requirements that you have defined. Also, tell about the process of preparing test scripts, loops and conditions for the test scripts that you prepared in order to ensure the quality control process.&lt;br /&gt;
&lt;br /&gt;
• Have you led or managed ISO registration process?&lt;br /&gt;
Answer – Describe the principals of the ISO audit you’ve participated?&lt;br /&gt;
&lt;br /&gt;
• Have you been conducting audits on a regular basis?&lt;br /&gt;
Answer – If you did, then describe the goals of the audit, how you’ve monitored the audit findings and how you’ve controlled the corrective actions.&lt;br /&gt;
&lt;br /&gt;
• Tell us about ISO 90xx documentation control and corrective actions? &lt;br /&gt;
Answer – If you familiar with ISO, you probably know that ISO contains a set of document control and specific process for corrective actions.&lt;br /&gt;
&lt;br /&gt;
• Did you write Quality Manual or product Release notes?&lt;br /&gt;
Answer – If you wrote such a QM document, you can describe the basic standards of the Quality Manuals. Product release notes contains – bug history and status of bugs. &lt;br /&gt;
&lt;br /&gt;
• What is your knowledge on data analysis and statistical process control?&lt;br /&gt;
&lt;br /&gt;
• What are the QA software tools, automation tools and statistical software you use? What are the advantages of these tools?&lt;br /&gt;
Answer – Provide list of software such as: SAS and SWOT Manager or any software and automated testing emulation system, ATE, that you were using. You may also explain how these tools enhance reliability. &lt;br /&gt;
&lt;br /&gt;
• Describe a Gaga R&amp;amp;R&lt;br /&gt;
Answer – R &amp;amp; R stands for reproducibility and repeatability. It is a system measurement error that determines the percentage of error, the type of error and its affection on the system.&lt;br /&gt;
&lt;br /&gt;
• Describe a bug life cycle.&lt;br /&gt;
Answer – bug life cycle consists of several statuses of the bug during its life cycle such as: open, deferred, rejected, solved, fixed, reopen, closed. You can talk about the process flow and how you monitor and determine each bug status.&lt;br /&gt;
&lt;br /&gt;
• What is the difference between a Bug and a Defect?&lt;br /&gt;
Answer – Bug is a deviation from the expected result that can be fixed and solved, while a defect is a problem in the application algorithm or the mechanism that leads to consistent failure or an error that requires a massive change.</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/1503155389218099361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/qa-interview-questions-and-answers-for.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/1503155389218099361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/1503155389218099361'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/qa-interview-questions-and-answers-for.html' title='QA Interview Questions and Answers – for Software QA tester and QA analyst'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-2603972518966983946</id><published>2010-01-12T12:10:00.000+06:00</published><updated>2010-01-12T12:10:32.872+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><title type='text'>AJAX Questions and Answers: 5</title><content type='html'>&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Is_it_possible_to_set_session_variables_from_JavaScript&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Is it possible to set session variables from JavaScript? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Is_it_possible_to_set_session_variables_from_JavaScript&amp;amp;page=9&quot; title=&quot;Click to view more Answers regarding Question: Is it possible to set session variables from JavaScript? &quot;&gt;41  :: Is it possible to set session variables from JavaScript? &lt;/a&gt;    &lt;/h3&gt;It&#39;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;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Is_the_server_or_the_client_in_control_in_AJAX&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Is the server or the client in control in AJAX?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Is_the_server_or_the_client_in_control_in_AJAX&amp;amp;page=9&quot; title=&quot;Click to view more Answers regarding Question: Is the server or the client in control in AJAX?&quot;&gt;42  :: Is the server or the client in control in AJAX?&lt;/a&gt;    &lt;/h3&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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Is_the_XMLHttpRequest_object_part_of_a_W3C_standard&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Is the XMLHttpRequest object part of a W3C standard?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Is_the_XMLHttpRequest_object_part_of_a_W3C_standard&amp;amp;page=9&quot; title=&quot;Click to view more Answers regarding Question: Is the XMLHttpRequest object part of a W3C standard?&quot;&gt;43  :: Is the XMLHttpRequest object part of a W3C standard?&lt;/a&gt;    &lt;/h3&gt;No. Or not yet. It is part of the DOM Level 3 Load and Save Specification proposal.     &lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Should_I_consider_AJAX&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Should I consider AJAX? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Should_I_consider_AJAX&amp;amp;page=9&quot; title=&quot;Click to view more Answers regarding Question: Should I consider AJAX? &quot;&gt;44  :: Should I consider AJAX? &lt;/a&gt;    &lt;/h3&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&#39;s experience and not hinder &lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Should_I_use_an_HTTP_GET_or_POST_for_my_AJAX_calls&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Should I use an HTTP GET or POST for my AJAX calls?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Should_I_use_an_HTTP_GET_or_POST_for_my_AJAX_calls&amp;amp;page=9&quot; title=&quot;Click to view more Answers regarding Question: Should I use an HTTP GET or POST for my AJAX calls?&quot;&gt;45  :: Should I use an HTTP GET or POST for my AJAX calls?&lt;/a&gt;    &lt;/h3&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.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Should_I_use_XML_or_text,_JavaScript_or_HTML_as_a_return_type&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Should I use XML or text, JavaScript, or HTML as a return type?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Should_I_use_XML_or_text,_JavaScript_or_HTML_as_a_return_type&amp;amp;page=10&quot; title=&quot;Click to view more Answers regarding Question: Should I use XML or text, JavaScript, or HTML as a return type?&quot;&gt;46  :: Should I use XML or text, JavaScript, or HTML as a return type?&lt;/a&gt;    &lt;/h3&gt;It depends. Clearly the &#39;X&#39; 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&#39;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&#39; &lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;use_XML_and_or_XSLT_in_an_Ajax_application&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: 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? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=use_XML_and_or_XSLT_in_an_Ajax_application&amp;amp;page=10&quot; title=&quot;Click to view more Answers regarding Question: 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? &quot;&gt;47  :: 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;/a&gt;    &lt;/h3&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;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&#39;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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Techniques_for_asynchronous_server_communication_have_been_around_for_years&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Techniques for asynchronous server communication have been around for years. What makes Ajax a “new” approach?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Techniques_for_asynchronous_server_communication_have_been_around_for_years&amp;amp;page=10&quot; title=&quot;Click to view more Answers regarding Question: Techniques for asynchronous server communication have been around for years. What makes Ajax a “new” approach?&quot;&gt;48  :: Techniques for asynchronous server communication have been around for years. What makes Ajax a “new” approach?&lt;/a&gt;    &lt;/h3&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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Does_Ajax_have_significant_accessibility_or_browser_compatibility_limitations&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Does Ajax have significant accessibility or browser compatibility limitations?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Does_Ajax_have_significant_accessibility_or_browser_compatibility_limitations&amp;amp;page=10&quot; title=&quot;Click to view more Answers regarding Question: Does Ajax have significant accessibility or browser compatibility limitations?&quot;&gt;49  :: Does Ajax have significant accessibility or browser compatibility limitations?&lt;/a&gt;    &lt;/h3&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;br /&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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;Does_AJAX_work_with_Java&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: Does AJAX work with Java?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Does_AJAX_work_with_Java&amp;amp;page=10&quot; title=&quot;Click to view more Answers regarding Question: Does AJAX work with Java?&quot;&gt;50  :: Does AJAX work with Java?&lt;/a&gt;    &lt;/h3&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;/div&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/2603972518966983946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/ajax-questions-and-answers-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/2603972518966983946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/2603972518966983946'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/ajax-questions-and-answers-5.html' title='AJAX Questions and Answers: 5'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-1662778383460929208</id><published>2010-01-12T12:08:00.000+06:00</published><updated>2010-01-12T12:08:43.976+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><title type='text'>AJAX Questions and Answers: 4</title><content type='html'>&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;download_Adaptive_Path_selling_Ajax_components_or_trademarking&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: Is Adaptive Path selling Ajax components or trademarking the name? Where can I download it? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=download_Adaptive_Path_selling_Ajax_components_or_trademarking&amp;amp;page=7&quot; title=&quot;Click to view more Answers regarding Question: Is Adaptive Path selling Ajax components or trademarking the name? Where can I download it? &quot;&gt;31  :: Is Adaptive Path selling Ajax components or trademarking the name? Where can I download it? &lt;/a&gt; 			&lt;/h3&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;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;Is_Ajax_a_technology_platform_or_is_it_an_architectural_style&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: Is Ajax a technology platform or is it an architectural style?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Is_Ajax_a_technology_platform_or_is_it_an_architectural_style&amp;amp;page=7&quot; title=&quot;Click to view more Answers regarding Question: Is Ajax a technology platform or is it an architectural style?&quot;&gt;32  :: Is Ajax a technology platform or is it an architectural style?&lt;/a&gt; 			&lt;/h3&gt;It’s both. Ajax is a set of technologies being used together in a particular way.  			&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;Is_AJAX_code_cross_browser_compatible&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: Is AJAX code cross browser compatible?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Is_AJAX_code_cross_browser_compatible&amp;amp;page=7&quot; title=&quot;Click to view more Answers regarding Question: Is AJAX code cross browser compatible?&quot;&gt;33  :: Is AJAX code cross browser compatible?&lt;/a&gt; 			&lt;/h3&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;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;Is_Ajax_just_another_name_for_XMLHttpRequest&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: Is Ajax just another name for XMLHttpRequest? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=Is_Ajax_just_another_name_for_XMLHttpRequest&amp;amp;page=7&quot; title=&quot;Click to view more Answers regarding Question: Is Ajax just another name for XMLHttpRequest? &quot;&gt;34  :: Is Ajax just another name for XMLHttpRequest? &lt;/a&gt; 			&lt;/h3&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;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;How_do_I_test_my_AJAX_code&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: How do I test my AJAX code? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_I_test_my_AJAX_code&amp;amp;page=7&quot; title=&quot;Click to view more Answers regarding Question: How do I test my AJAX code? &quot;&gt;35  :: How do I test my AJAX code? &lt;/a&gt; 			&lt;/h3&gt;There is a port of JUnit for client-side JavaScript called JsUnit used to test AJAX code&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;How_do_I_provide_internationalized_AJAX_interactions&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: How do I provide internationalized AJAX interactions? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_I_provide_internationalized_AJAX_interactions&amp;amp;page=8&quot; title=&quot;Click to view more Answers regarding Question: How do I provide internationalized AJAX interactions? &quot;&gt;36  :: How do I provide internationalized AJAX interactions? &lt;/a&gt; 			&lt;/h3&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;
&lt;br /&gt;
&lt;meta content=&quot;text/html; charset=UTF-8&quot; http-equiv=&quot;Content-Type&quot;&gt;&lt;/meta&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(&quot;UTF-8&quot;);.&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(&quot;text/xml;charset=;UTF-8&quot;);&lt;br /&gt;
response.getWriter().write(&quot; invalid &quot;); 			&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;How_do_I_send_an_image_using_AJAX&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: How do I send an image using AJAX?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_I_send_an_image_using_AJAX&amp;amp;page=8&quot; title=&quot;Click to view more Answers regarding Question: How do I send an image using AJAX?&quot;&gt;37  :: How do I send an image using AJAX?&lt;/a&gt; 			&lt;/h3&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;
&lt;categories&gt;&lt;br /&gt;
&lt;category&gt;&lt;br /&gt;
&lt;cat-id&gt;1&lt;/cat-id&gt;&lt;br /&gt;
&lt;name&gt;Books&lt;/name&gt;&lt;br /&gt;
&lt;description&gt;Fun to read&lt;/description&gt;&lt;br /&gt;
&lt;image-url&gt;books_icon.gif&lt;/image-url&gt;&lt;br /&gt;
&lt;/category&gt;&lt;br /&gt;
&lt;category&gt;&lt;br /&gt;
&lt;cat-id&gt;2&lt;/cat-id&gt;&lt;br /&gt;
&lt;name&gt;Electronics&lt;/name&gt;&lt;br /&gt;
&lt;description&gt;Must have gadgets&lt;/description&gt;&lt;br /&gt;
&lt;image-url&gt;electronics.gif&lt;/image-url&gt;&lt;br /&gt;
&lt;/category&gt;&lt;br /&gt;
&lt;/categories&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 &quot;categoryTable&quot; in body of the page and adds a row to the element which contains the image. &lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;How_do_I_submit_a_form_or_a_part_of_a_form_without_a_page_refresh&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: How do I submit a form or a part of a form without a page refresh? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_I_submit_a_form_or_a_part_of_a_form_without_a_page_refresh&amp;amp;page=8&quot; title=&quot;Click to view more Answers regarding Question: How do I submit a form or a part of a form without a page refresh? &quot;&gt;38  :: How do I submit a form or a part of a form without a page refresh? &lt;/a&gt; 			&lt;/h3&gt;When creating a form make sure that the &quot;form&quot; element &quot;onSubmit&quot; attribute is set to a JavaScript function that returns false.&lt;br /&gt;
&lt;form onsubmit=&quot;doAJAXSubmit();return false;&quot;&gt;&lt;br /&gt;
&lt;input id=&quot;tf1&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
&lt;input id=&quot;submit1&quot; type=&quot;submit&quot; value=&quot;Update&quot; /&gt;&lt;br /&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;
&lt;br /&gt;
&lt;input id=&quot;tf1&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
&lt;input id=&quot;button1&quot; onclick=&quot;doAJAXSubmit()&quot; type=&quot;button&quot; value=&quot;Update&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the form &quot;onSubmit&quot; 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;br /&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;br /&gt;
&lt;/form&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;How_does_HTML_AJAX_compare_with_the_XAJAX_project_at_Sourceforge&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: How does HTML_AJAX compare with the XAJAX project at Sourceforge?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_does_HTML_AJAX_compare_with_the_XAJAX_project_at_Sourceforge&amp;amp;page=8&quot; title=&quot;Click to view more Answers regarding Question: How does HTML_AJAX compare with the XAJAX project at Sourceforge?&quot;&gt;39  :: How does HTML_AJAX compare with the XAJAX project at Sourceforge?&lt;/a&gt; 			&lt;/h3&gt;XAJAX uses XML as a transport for data between the webpage and server, and you don&#39;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&#39;s javascript helper (although it isn&#39;t complete), and an action system similiar to XAJAX&#39;s &quot;action pump&quot; 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 &quot;proxy&quot; 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;
&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;h3 class=&quot;question&quot; id=&quot;How_do_I_handle_the_back_and_forward_buttons_in_AJAX&quot;&gt;		  		&lt;a alt=&quot;Click to view more Answers regarding Question: How do I handle the back and forward buttons in AJAX? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_I_handle_the_back_and_forward_buttons_in_AJAX&amp;amp;page=8&quot; title=&quot;Click to view more Answers regarding Question: How do I handle the back and forward buttons in AJAX? &quot;&gt;40  :: How do I handle the back and forward buttons in AJAX? &lt;/a&gt; 			&lt;/h3&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;
&lt;br /&gt;
function updateOnServer(oldId, oldValue, &lt;br /&gt;
itemId, itemValue) {&lt;br /&gt;
var bindArgs = {&lt;br /&gt;
url:  &quot;faces/ajax-dlabel-update&quot;,&lt;br /&gt;
method: &quot;post&quot;,&lt;br /&gt;
content: {&quot;component-id&quot;: itemId, &quot;component-value&quot;:&lt;br /&gt;
itemValue},&lt;br /&gt;
mimetype: &quot;text/xml&quot;,&lt;br /&gt;
load: function(type, data) {&lt;br /&gt;
processUpdateResponse(data);&lt;br /&gt;
},&lt;br /&gt;
backButton: function() {&lt;br /&gt;
alert(&quot;old itemid was &quot; + oldId);&lt;br /&gt;
},&lt;br /&gt;
forwardButton: function(){&lt;br /&gt;
alert(&quot;forward we must go!&quot;);&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
dojo.io.bind(bindArgs);&lt;br /&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. &lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/1662778383460929208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/ajax-questions-and-answers-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/1662778383460929208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/1662778383460929208'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/ajax-questions-and-answers-4.html' title='AJAX Questions and Answers: 4'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6899023006941400145.post-701630381918418916</id><published>2010-01-12T12:05:00.000+06:00</published><updated>2010-01-12T12:05:02.488+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><title type='text'>AJAX Questions and Answers: 3</title><content type='html'>&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;What_kinds_of_applications_is_Ajax_best_suited_for&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: What kinds of applications is Ajax best suited for? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=What_kinds_of_applications_is_Ajax_best_suited_for&amp;amp;page=5&quot; title=&quot;Click to view more Answers regarding Question: What kinds of applications is Ajax best suited for? &quot;&gt;21  :: What kinds of applications is Ajax best suited for? &lt;/a&gt;    &lt;/h3&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;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;What_parts_of_the_HTML_AJAX_API_are_stable&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: What parts of the HTML_AJAX API are stable? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=What_parts_of_the_HTML_AJAX_API_are_stable&amp;amp;page=5&quot; title=&quot;Click to view more Answers regarding Question: What parts of the HTML_AJAX API are stable? &quot;&gt;22  :: What parts of the HTML_AJAX API are stable? &lt;/a&gt;    &lt;/h3&gt;We don&#39;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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;What_about_applets_and_plugins&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: What about applets and plugins?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=What_about_applets_and_plugins&amp;amp;page=5&quot; title=&quot;Click to view more Answers regarding Question: What about applets and plugins?&quot;&gt;23  :: What about applets and plugins?&lt;/a&gt;    &lt;/h3&gt;Don&#39;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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;How_Ajax_is_Different&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: How Ajax is Different?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_Ajax_is_Different&amp;amp;page=5&quot; title=&quot;Click to view more Answers regarding Question: How Ajax is Different?&quot;&gt;24  :: How Ajax is Different?&lt;/a&gt;    &lt;/h3&gt;An Ajax application eliminates the start-stop-start-stop nature of interaction on the Web by introducing an intermediary — an Ajax engine — between the user and the server. It seems like adding a layer to the application would make it less responsive, but the opposite is true.&lt;br /&gt;
&lt;br /&gt;
Instead of loading a webpage, at the start of the session, the browser loads an Ajax engine — written in JavaScript and usually tucked away in a hidden frame. This engine is responsible for both rendering the interface the user sees and communicating with the server on the user’s behalf. The Ajax engine allows the user’s interaction with the application to happen asynchronously — independent of communication with the server. So the user is never staring at a blank browser window and an hourglass icon, waiting around for the server to do something. &lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;How_do_we_abort_the_current_XMLHttpRequest_in_AJAX&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: How do we abort the current XMLHttpRequest in AJAX?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_we_abort_the_current_XMLHttpRequest_in_AJAX&amp;amp;page=5&quot; title=&quot;Click to view more Answers regarding Question: How do we abort the current XMLHttpRequest in AJAX?&quot;&gt;25  :: How do we abort the current XMLHttpRequest in AJAX?&lt;/a&gt;    &lt;/h3&gt;Just call the abort() method on the request to abort the current XMLHttpRequest in AJAX.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&lt;div class=&quot;content&quot; id=&quot;content&quot;&gt;         &lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;How_do_I_access_data_from_other_domains_to_create_a_mashup_with_Java&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: How do I access data from other domains to create a mashup with Java?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_I_access_data_from_other_domains_to_create_a_mashup_with_Java&amp;amp;page=6&quot; title=&quot;Click to view more Answers regarding Question: How do I access data from other domains to create a mashup with Java?&quot;&gt;26  :: How do I access data from other domains to create a mashup with Java?&lt;/a&gt;    &lt;/h3&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 executed 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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;How_do_we_create_a_thread_to_do_AJAX_polling&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: How do we create a thread to do AJAX polling? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_we_create_a_thread_to_do_AJAX_polling&amp;amp;page=6&quot; title=&quot;Click to view more Answers regarding Question: How do we create a thread to do AJAX polling? &quot;&gt;27  :: How do we create a thread to do AJAX polling? &lt;/a&gt;    &lt;/h3&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;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;
&lt;br /&gt;
setTimeout(&quot;checkForMessage()&quot;, 10000);&lt;br /&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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;How_do_we_debug_JavaScript&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: How do we debug JavaScript? &quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_we_debug_JavaScript&amp;amp;page=6&quot; title=&quot;Click to view more Answers regarding Question: How do we debug JavaScript? &quot;&gt;28  :: How do we debug JavaScript? &lt;/a&gt;    &lt;/h3&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 &quot;Alert Debugging&quot; may be used. In this case you place &quot;alert()&quot; 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;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;How_do_we_get_the_XMLHttpRequest_object_in_AJAX&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: How do we get the XMLHttpRequest object in AJAX?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_we_get_the_XMLHttpRequest_object_in_AJAX&amp;amp;page=6&quot; title=&quot;Click to view more Answers regarding Question: How do we get the XMLHttpRequest object in AJAX?&quot;&gt;29  :: How do we get the XMLHttpRequest object in AJAX?&lt;/a&gt;    &lt;/h3&gt;Depending upon the browser... &lt;br /&gt;
if (window.ActiveXObject) &lt;br /&gt;
{ &lt;br /&gt;
// Internet Explorer http_request = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;); &lt;br /&gt;
}&lt;br /&gt;
else if.     &lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;     &lt;h3 class=&quot;question&quot; id=&quot;How_do_we_handle_concurrent_AJAX_requests&quot;&gt;      &lt;a alt=&quot;Click to view more Answers regarding Question: How do we handle concurrent AJAX requests?&quot; class=&quot;questionLink&quot; href=&quot;http://www.globalguideline.com/interview_questions/Answer.php?a=How_do_we_handle_concurrent_AJAX_requests&amp;amp;page=6&quot; title=&quot;Click to view more Answers regarding Question: How do we handle concurrent AJAX requests?&quot;&gt;30  :: How do we handle concurrent AJAX requests?&lt;/a&gt;    &lt;/h3&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;
&lt;br /&gt;
function AJAXInteraction(url, callback) { &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(&quot;Microsoft.XMLHTTP&quot;);&lt;br /&gt;
}&lt;br /&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;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
this.doGet = function() {&lt;br /&gt;
req.open(&quot;GET&quot;, url, true);&lt;br /&gt;
req.send(null);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
this.doPost = function(body) {&lt;br /&gt;
req.open(&quot;POST&quot;, url, true);&lt;br /&gt;
req.setRequestHeader(&quot;Content-Type&quot;, &quot;&lt;br /&gt;
application/x-www-form-urlencoded&quot;);&lt;br /&gt;
req.send(body);&lt;br /&gt;
}&lt;br /&gt;
}    &lt;/div&gt;&lt;div class=&quot;bookmarks&quot;&gt;    &lt;ul class=&quot;socials&quot;&gt;&lt;li class=&quot;stumbleupon&quot;&gt;&lt;a href=&quot;http://www.stumbleupon.com/submit?url=http://globalguideline.com/p.php?n=1205&amp;amp;title=Basic+AJAX+Interview+Questions+and+Answers&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;StumbleUpon&quot;&gt;StumbleUpon&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;digg&quot;&gt;&lt;a href=&quot;http://digg.com/submit?phase=2&amp;amp;url=http://globalguideline.com/p.php?n=1205&amp;amp;title=Basic+AJAX+Interview+Questions+and+Answers&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;Digg&quot;&gt;Digg&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;delicious&quot;&gt;&lt;a href=&quot;http://del.icio.us/post?url=http://globalguideline.com/p.php?n=1205&amp;amp;title=Basic+AJAX+Interview+Questions+and+Answers&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;Delicious&quot;&gt;Delicious&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;twitter&quot;&gt;&lt;a href=&quot;http://www.twitter.com/home?status=Basic+AJAX+Interview+Questions+and+Answers+http://globalguideline.com/p.php?n=1205&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;Twitter&quot;&gt;Twitter&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;facebook&quot;&gt;&lt;a href=&quot;http://www.facebook.com/share.php?u=http://globalguideline.com/p.php?n=1205&amp;amp;t=Basic+AJAX+Interview+Questions+and+Answers&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;FaceBook&quot;&gt;FaceBook&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;linkedin&quot;&gt;&lt;a href=&quot;http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=http://globalguideline.com/p.php?n=1205&amp;amp;title=Basic+AJAX+Interview+Questions+and+Answers&amp;amp;summary=Basic+AJAX+Interview+Questions+and+Answers&amp;amp;source=Global%20GuideLine&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;LinkedIn&quot;&gt;LinkedIn&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;google&quot;&gt;&lt;a href=&quot;http://www.google.com/bookmarks/mark?op=edit&amp;amp;output=popup&amp;amp;bkmk=http://globalguideline.com/p.php?n=1205&amp;amp;title=Basic+AJAX+Interview+Questions+and+Answers&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;Google&quot;&gt;Google&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;yahoomyweb&quot;&gt;&lt;a href=&quot;http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://globalguideline.com/p.php?n=1205&amp;amp;mps;title=Basic+AJAX+Interview+Questions+and+Answers&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;Yahoo&quot;&gt;Yahoo&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;myspace&quot;&gt;&lt;a href=&quot;http://www.myspace.com/Modules/PostTo/Pages/?u=http://globalguideline.com/p.php?n=1205&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;MySpace&quot;&gt;MySpace&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;mail&quot;&gt;&lt;a href=&quot;mailto:?subject=Basic+AJAX+Interview+Questions+and+Answers&amp;amp;body=Basic+AJAX+Interview+Questions+and+Answers++http://globalguideline.com/p.php?n=1205&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;Tell Your Friend&quot;&gt;Tell Your Friend&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;br /&gt;
&lt;center&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.globalguideline.com/images/bar1.gif&quot; title=&quot;&quot; width=&quot;50%&quot; /&gt;&lt;/center&gt;     &lt;/div&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;answer&quot; id=&quot;answer&quot;&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techanswerbd.blogspot.com/feeds/701630381918418916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/ajax-questions-and-answers-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/701630381918418916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6899023006941400145/posts/default/701630381918418916'/><link rel='alternate' type='text/html' href='http://techanswerbd.blogspot.com/2010/01/ajax-questions-and-answers-3.html' title='AJAX Questions and Answers: 3'/><author><name>biplob</name><uri>http://www.blogger.com/profile/16205414074985992604</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Zvpl9WTxws2rvMO7pKQR6QDbv5Xd2dJv78dzIfNcSaiVU2AfRJ0Yb-m2O1M54p44HaAPWX2UvO9qpSryPWHIaGSRT-sssEWVjbwCUf1q19sM4TA811uKuYX0bpKZYQ/s220/bipbob.jpg'/></author><thr:total>0</thr:total></entry></feed>