ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
I have one Shopping cart application, i that i have 
selected some items, while clicking submit button by 
mistake i have clicked twice or trice, that time items are 
selected twice or trice. Actually i want only one copy of 
items but its selected twice or trice. So how can we avoid 
this problem?
 Question Submitted By :: Bosh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem?
Answer
# 1
Using token mechanism in struts we can duplicate requests in
web applications.
 
Is This Answer Correct ?    1 Yes 0 No
Balagangadhar
 
  Re: I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem?
Answer
# 2
If this question in core (jave Collection): if you are 
using list,it will take the duplicate values. so pass 
through this list into set it will remove the duplicate 
values.

if this question in J2EE servlets: use post method, it it 
is not idempotent. once you add item to cart, it will give 
the acknowledge before changing in server.
 
Is This Answer Correct ?    2 Yes 1 No
Veera
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is difference betwwen hashmap and hashtable ? Fidelity6
What is Session and cookies?Explain in detail with an example? CTS2
How the threads are synchronized? BMC2
What is unicode?  2
Can I create any Marker Interface? If yes then how can I use it???  1
can u override the start() method of Thread class  4
What is the basic functionality of DataOutput interface in java? TCS2
Difference between array and arraylist. Sai-Softech4
What is difference between Eclips and MyEclips?  2
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.  2
If a multi threaded Java program has started numerous number of threads, at any point in time how to know which thread is currently executing/running ? iFlex7
what are Checked & Unchecked exceptions ?  2
what is Thread?  6
real time example for deadlock,starvation,livelock  4
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?  5
Difference between an argument and a parameter? HCL4
Diff between C++ and java? TCS8
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread? TCS2
what is the difference between cd & dvd ? Satyam11
How are commas used in the initialization and iteration parts of a for statement?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com