|
Related Questions |
View Answer |
|
The following code is executed by a multi-threaded environment: public void functionOne() { System.out.println("Staring itrs= " + this.cntr); for( int i=0; i<this.cntr; i++ ) { System.out.println("iteration: " + i); } System.out.println("completed"); } and when run produces: Starting itrs= 100 iteration: 1 iteration: 2 iteration: 3 iteration: 4 iteration: 5 Give at least one reason why this is happening
|
View Answer
|
|
In a large-scale multi-threaded environment, how might you organise access to a shared resource (such as a database connection)?
|
View Answer
|
|
Discuss why Java 5 Executors are the preferred mechanism of creating and dispatching work in separate threads, over either directly creating Thread objects or directly using a pool of threads?
|
View Answer
|
|
Assume you are experiencing a deadlock situation on a java server application – what is your approach to identify the problem.?
|
View Answer
|
|
What are the main differences between jdk1.4 , jdk1.5 & jdk1.6?
|
View Answer
|
|
What is package? Define with example?
|
View Answer
|
|
If my java based application is hanging once in a while. Where would you start looking at the problem, what changes can you do?
My application has a builtin Ldap client and is communicating with a Ldap server. now having a problem with the authentication, how should i start troubleshooting? I, being responsible for the application and the OS, what can i do?
|
View Answer
|
|
How to invoke the primitive types within object in arraylist?
|
View Answer
|
|
String class can be extendable? and why?
|
View Answer
|
|
What is the difference between attribute and parameter ?
|
View Answer
|
|
What is the difference between length and length() ?
|
View Answer
|
|
What is the difference between concat and append?
|
View Answer
|
|
What is the difference between Java and J2EE? Is J2EE advanced version of Java?
|
View Answer
|
|
How do u create objects at runtime?
|
View Answer
|
|
What is a string Handling? How to use it? what is difference b/w Event handling?
|
View Answer
|
|
What is multi threading ?
|
View Answer
|
|
What are the main differences between jdk1.4 n jdk1.5?
|
View Answer
|
|
Given A = 1, B = 2, C = 3, D = 4 …… Z = 26, write a java standalone program to encode the word “TELEPHONE” into numbers.
|
View Answer
|
|
Write a java standalone program / method to take out all the special characters in the string provided below. //ASCII a – z (97 – 122) String sSENTENCE = “This!is^a$t*e)s|t”;
|
View Answer
|
|
Why pointers are not used in java?
|
View Answer
|