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                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
 Categories  >>  Software  >>  Java J2EE  >>  Java Related       
 
  Core Java (1201)   Advanced Java (263)   Swing (41)   EJB (124)   Servlets (203)
  Struts (134)   JDBC (159)   JMS (4)   SunOne (3)   J2EE (27)
  Weblogic (34)   Websphere (3)   Java Networking (17)   Java J2EE AllOther (58)
 
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
What is user defined exception?  4  1481
What is meant by throwing an Exception? Accenture  4  1093
What is the use of ?this??  4  1098
What is parameter tag and what is its use?  1  1033
What is the use of an interface?  3  1184
What is the use of TL?  0  67
What is the superclass of exception?  2  1346
What is the smallest package in Java API?  4  1513
What is the return type of a program?s main() method?  2  1171
Explain the relationship between the Canvas and Graphics class?  1  139
What is clipping and repainting and what is the relation between them?  0  430
Relationship between an event-listener interface and an event-adapter class?  1  1230
What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?  2  786
What is the range of the short datatype?  2  1237
What is the range of the char type?  2  1156
E-Mail New Answers        Answer Selected Questions       
 
Prev    1   ... 12   ... 23   ... 34   ... 45   ... 56   ... 67   ... 78   ... 89   ... 100    120   [121]    122  ... 133   ... 144    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
 
How to check null value in JDBC? 302  
Hi friends am newbie to servlet. How code reusability easy in servlet. why not in jsp . here reusabillity means only javabeans or any thing else. 14  
what are the advantages of JTA over JTS? 142  
what is the diffrence between insurance and telecom domain? 194  
what is the use of bean managed and container managed with example? 69 EDS
Hi frnds iam new to Java Kindy any one can provide or me Servlets Example code and can explain to me flow of servlets and as Jsp and Struts and provide to me some sample example on these 3 topic flow,code example,and tutorials,and related websites which i can refer....thanks in advance.......... 11  
What is the SimpleTimeZone class? 212  
How entity beans support container managed persistence? 494  
Write a interface "CarOperations" with the following methods void turnOnEngin() void turnOffEngin() void turnOnLigths() void turnOffLights() void turnLeft() void turnRight() void accelerate() void deaccelerate() void putBreaks() void releaseBreaks() 19  
How to know howmuch data is truncated? 109 Mastek
wahts is mean by dynavalidatorform in struts/ 71 SolutionNET
Can we call virtual funciton in a constructor ? 119  
How to add and delete nodes in Jtree? 292 MindMill
What is the difference between RMI and Corba? 102  
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; } } 27  
hey how can i give words instead of url in orkut?? eg:"click here" instead of a url..when i clik that word it should direct to another page..please help me.... 235  
Explain Abt ur wls environment in ur company ?How to answer this question? 35 HCL
What are the steps to write p-to-p model application? 129  
What is a resource leak ? 125  
what is multiple server? 179  
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