Explain yield() method in thread class ?
No Answer is Posted For this Question
Be the First to Post Answer
Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..
what are the uses of Class class and what it returns? explain it with the example code.
INTERVIEW QUESTION FOR ANDROID
Which number is denoted by leading zero in java?
When should we create our own custom exception classes?
What is starvation?
33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac
Why are lists ordered in java?
Why java is called not pure object oriented language?
Name four container classes.
what is difference between length and length()?
What is a Java package and how is it used?