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  >>  Java J2EE  >>  Java Related       
 
  Core Java (1186)   Advanced Java (257)   Swing (41)   EJB (124)   Servlets (199)
  Struts (131)   JDBC (157)   JMS (4)   SunOne (3)   J2EE (25)
  Weblogic (32)   Websphere (3)   Java Networking (17)   Java J2EE AllOther (52)
 
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
Hai all.What is the use of <logic:iterate>tag in struts application. TCS  0  23
Hai all.Can i develope Struts action class without execute(-,- ,-,-)method.Ifd it's possible plz provide some sample code. TCS  1  111
IS method overriding is Duplication of Methods? CybAge  2  174
I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance... Cybernet  2  139
I have written a program to connect to database using odbc.Can this Application run on any Platform????  1  51
What is the use of ActionErrors in Struts? HCL  1  129
What are uses of Hash Code? Cognizent  2  218
What is Hash Code in Java? Cognizent  1  136
What are Benefits of Connection Pooling?  1  87
What is Connection Pooling? Infosys  1  113
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service Accenture  1  124
System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0 Accenture  5  160
what is the Yield() method used in threads? Accenture  1  108
How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size Accenture  5  110
what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0 Accenture  1  72
E-Mail New Answers        Answer Selected Questions       
 
 [1]    2  ... 11   ... 21   ... 31   ... 41   ... 51   ... 61   ... 71   ... 81   ... 91   ... 101   ... 111   ... 121   ... 131   ... 141    Next
 
 
 Java J2EE interview questions   Java J2EE Interview Questions  J2ME interview questions   J2ME Interview Questions  Java Related AllOther interview questions   Java Related AllOther Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
Question 7 [8] Consider the following class and answer the questions below it: public class StackWithGuard extends Stack { public StackWithGuard(int size) { super(size); } synchronized public boolean isEmpty() { return super.isEmpty(); } synchronized public boolean isFull() { return super.isFull(); } synchronized public int getSize() { return super.getSize(); } synchronized public void push(Object obj) { try { while (isFull()) { wait(); } } catch (InterruptedException e) {} super.push(obj); COS2144/102 11 notify(); } synchronized public Object pop() { try { while (isEmpty()) { wait(); } } catch (InterruptedException e) {} Object result = super.pop(); notify(); return result; } public static void main(String args[]) { StackWithGuard stack = new StackWithGuard(5); new Producer(stack, 15).start(); new Consumer(stack, 15).start(); } } Note: The Stack class is provided in the Appendix. Note also: The following questions all refer to the pop() method of the StackWithGuard class given above. 7.1 What does the synchronized keyword ensure for this method? (2) 7.2 Why is a while loop used to test whether the stack is empty? In other words, why wouldn't the following if statement be sufficient? if (isEmpty()) { wait(); } (2) 7.3 Why is the result of popping (provided by the inherited pop() method) stored in a temporary variable? In other words, why wouldn't the following statement be sufficient? return super.pop(); (2) 7.4 Why is the while loop placed in a try-catch structure? (2) Appendix The LinkedQueue class: public class LinkedQueue implements Queue { private Node first, last; private int count; public LinkedQueue() { first = last = null; count =0; } public int size() { return count; } public boolean isEmpty() { return (count == 0); 12 } public void enqueue(Object o) { Node node = new Node(); node.element = o; node.next = null; node.prev = last; if (last != null){ last.next = node; } else { last = first = node; } last = node; count++; } public void dequeue() { if ((first!= null) & (first.next!=null)) { first = first.next; first.prev = null; count--; } else { first = last = null; count--; } } public Object front() { return first; } } class Node { Object element; Node next, prev; } The Stack class: public class Stack { protected Object rep[]; protected int top = -1; protected int size = 0; protected int count = 0; public Stack(int size) { if (size > 0) { this.size = size; rep = new Object[size]; } } public boolean isFull() { return (count == size); } public boolean isEmpty() { return (count == 0); } public int getSize() { return size; } public void push(Object e) { if (e != null && !isFull()) { COS2144/102 13 top++; rep[top] = e; count ++; } } public Object pop() { Object result = null; if (!isEmpty()) { result = rep[top]; top--; count--; } return result; } } 23  
what is meant by JRMP? 190  
how to deploy tomcatserver to weblogic server? write d following steps? 73  
what is mean by OLE ? Please answer me. Advance thanks. 14 Excel
explain why we say stateless beans does not maintain conversation state besides statefull maintains conversation state. give some examples... 329 HCL
What are event-delegation model and event-inheritance model? Which is best? 548  
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance! 434  
CANDOR Services, a leading provider of next-generation staffing services, draws from unparalleled resources and expertise to offer you innovative, quality workforce solutions. We have openings for "J2EE ARCHITECT" with one of our clients. Client is CMM Level 5 company. Location : Hyderabad Roles A J2EE Architect with expertise in Web Architecture (covering Spring MVC, AOP, Webflow, Struts, Tiles, Hibernate, JAAS, Web Application Performance Turning & Measurement) as part of Solutions Architecture Group: Position involves in providing architectural vision, conceptualize and provide architectural approaches, create models and specifications, and validating the architecture against requirements and assumptions. Also involves in providing oversight over ongoing projects as a reviewer and auditor Educational Requirements A minimum of BS or MS (MS preferred) in Computer Science or Engineering or equivalent experience in the IT industry. Skill Sets Overall 8-10 Years of experience in IT industry with 3-4 Years of experience in Service industry Technology Skills Java, J2EE, MVC Frameworks (Struts/WebWork/JSF/Spring), Spring, AOP, WebFlow, ORM Tools (Hibernate/Ibatis/JDO/Tapestry), App servers, Databases, JAAS Web Application Performance Tuning & Measurement 6+ years Java software development experience. 4+ years of enterprise Java development, with emphasis on web-based applications. Strong relational database and SQL skills (5+ years). Mail to : anuradha.k@candorservices.co.in 252 TCS
Java run-time system generates What class of exceptions? 130 TCS
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255 327 Bosch
what is mean by com/Dcom ? Please answer me. Advance thanks. 19 Excel
whats is mean by tiles in struts 72 SolutionNET
Under what circumstances, that all four drivers are used? 201 TCS
can we stop the execution of a method before completion? 238  
What are invisible components?. 204  
What is JDBC Driver interface?How can you retrieve data from the ResultSet 87 CTS
What releases of Java technology are currently available? What do they contain? 116  
What is Stream Tokenizer? 186  
what is a ejb architecture? and overview of ejb software architecture? 481  
wahts is mean by dynavalidatorform in struts/ 69 SolutionNET
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
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