Академический Документы
Профессиональный Документы
Культура Документы
1) notify();
2) notifyAll();
3) isInterrupted();
4) synchronized();
5) interrupt();
6) wait(long msecs);
7) sleep(long msecs);
8) yield();
A. 1, 2, 4
B. 2, 4, 5
C. 1, 2, 6
D. 2, 3, 4
6.One that can be modified by the class even when the object of the class or the member
function doing the modification is const it is known as______________
A. member function
B. mutable member
C. constant member
D. none of these
8.Which of the following operators below have the highest priority when evaulating?
A. ()
B. []
C. *
D. ->
9. Which of the following operation(s) is/are required to convert the java source code into
output form.
A. Compilation
B. interpretation
C. both a and b
D. none of these
A. 22
B. 23
C. 30
D. Compilation Error
A. a,b,c
B. a,b,c,d
C. e,f
D. None of the above
13.What happens when the following code is compiled and run. Select the one correct
answer.
for(int i = 1; i < 3; i++)
for(int j = 3; j > i; j--)
assert i!=j {System.out.println(i); }
A) The class compiles and runs, but does not print anything.
B) The number 1 gets printed with AssertionError
C) The program generates a compilation error
D) The number 2 gets printed with AssertionError
14.What gets printed when the following code is compiled and run with the following
command - java test 2 Select the one correct answer.
if(args.length > 1)
System.out.println(i);
if(args.length > 0)
System.out.println(i - 1);
else
System.out.println(i - 2);
}
}
A. test
B. test-1
C. 0
D. 1
A. using very large time slices converts it into First come First served scheduling algorithm
B. using very small time slices converts it into First come First served scheduling algorithm
D. using very small time slices converts it into Shortest Job First algorithm