Hie Vivek,
Here is my
attempt Q#1
ThreadGroup class instances:
a) Allow threads to be manipulated as a group
This is surely true.With thread groups you have the advantage of organizing your threads into a single
unit, so you can manage them better.
b) Provide support for ThreadDeath listeners
I can not commit myself on this one yet I will come back to you when I am sure about this.
c) May contain other ThreadGroups
Obviously very true.
d) Must contain threads of the same type
FALSE, you can place any thread you desire in any thread group.
Q#2
The following are true with respect to the Thread class:
a) It cannot be subclassed
FALSE.One of the ways for creating
Java threads is by subclassing the Thread class.
b) Each instance belongs in a ThreadGroup
This is quite tricky.I know you can create a Thread instance without specifying a thread group, but I am tempted to think that when you do not specify, your thread belongs to some default group, may be as according by the application main thread.
I can not commit myself on this one yet, I will come back to you when I verify.
c) Individual instances may communicate with each other
definitely true.A thread instance is just like any other object and shares the same process and memory stack with other threads of the same app.
d) Unsecure / Unsigned Applets may not create new instances
false ,you can create as many thread instances in your applets as you can in an application.
I hope this helps. You might want to wait for other people to review and confirm my answers before before you consider them
gospel .I believe I am right.
Good Luck,
Herbert