PRM392_-_PT2_-_FALL23_861.webp
G

PRM392_-_PT2_-_FALL23_861.webp

21
(Choose 1 answer)


Which statement is not allowed on the below block?
Thread
t = new Thread(new Runnable() {
@Override public void run() {
try {
synchronized (this){
wait(1000);
((TextView) findViewById(R.id.textView)).setText("Thread is running....");
} catch (InterruptedException e) { e.printStackTrace(); } }
}
});
t.start();
A. synchronized statement
B. wait statement
C. setText statement
D. All statements are allowed

Thông tin

Category
PRM392
Thêm bởi
Gluttony2001
Ngày thêm
Lượt xem
716
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRM392_-_PT2_-_FALL23_861.webp
File size
53.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom