Which of the following cannot directly cause a thread to stop executing?
Correct Answer: Calling notify() method on an object.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Which interface does java.util.Hashtable implement?
Which statement is true about an anonymous inner class?
Otput of following code? StringBuilder sb = new StringBuilder('UpWork'); sb.insert(6,'-'); sb.insert(0,'-'); sb.insert(4,''); System.out.println(sb);
Output of following program? class Upwork { public static void main(String [] args) { int x = 0x80000000; System.out.print(x + ' and '); x = x >>> 31; System.out.println(x); } }
Output of the given program? public class Test122 { public static void main(String[] args) { int i = 0; i = i++; i = ++i; i = i++; System.out.println(i); } }
Output when the following code is compiled and run? public class Test { public static void main(String args[]) { int i; i = 3; System.out.println((int) i * 2.5 / 3.0); } }
Output of the given console application? public class Main { public static void main(String[] args) { final int X = 9; int[][] a = {{5, 4, 3}, {9, 7, 2}, {1, 6, 8}}; for (int i=0; i<3; i++) { for (int j=0; j<3; j++) { if (a[i][j] == X) break; System.out.print(a[i][j] + ' '); } } } }
Which keyword is used for manually throwing an exception?
Which statement is true? (Choose all that apply)
Output of the following program? class Upwork{ public static void main(String args[]) { int x , y; x = 10; x++; --x; y = x++; System.out.println(x + ' ' + y); } }