How do you ensure that n threads can access n resources without deadlock?
No Answer is Posted For this Question
Be the First to Post Answer
What is method in java ?
Write a java program for binary search?
What is the use of math abs in java?
what is filters and its use?
can any body body expalin best definitions & best real time exaples for opps concepts.
Are strings immutable in java?
What is %d in printf?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is string syntax?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
What is the difference between DataInputStream and BufferedReader
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an <applet> tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.