• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help 2 questions.

 
Michael Jonston
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1,
In java what is the size of a character, and what are its minimum
and maximum values.

Q2.
Which of the following condition will cause the thread to stop?
A) sleep (long ms)
B) wait ()
C) notify ()
D) suspend ()
E) stop ()
F) run method ends
I realize q2 has already been answered, however, I still am not sure which are correct.
thanking you kindly
Michael
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi michael,
-------------------------------------
The size of character : 16 bits
min value - 0
max value - 65535
-------------------------------------
Q2:
----
I feel a thread will stop because of following
E) stop ()
F) run method ends
but if u mean a when thread will stop running then
I think all except option C will be correct.
regards
deekasha

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!