Hi,
Here are some questions from ibm mock exam can somebody help me to find the answers
Thanks in advance
1. An
applet is more restrictive than an application in the following ways: (2 choices)
a) An applet may not perform local disk I/O.
b) An applet may not connect with any server except the
server where the applet was loaded from
c) An applet can change the CODEBASE
d) An applet cannot call the update() method directly
2) ThreadGroup class instances: (2 choices)
a) Allow threads to be manipulated as a group
b) Provide support for ThreadDeath listeners
c) May contain other ThreadGroups
d) Must contain threads of the same type
3) Primitive type wrapper classes: (3 choices)
a) Allow primitive types to behave as reference types
b) Allow operator overloading to be implemented for
primitive numeric types
c) Provide
string parsing and conversion methods
d) Provide arithmetic operators such as plus and minus
e) Are provided for all primitive types, including void
4) The following are true of
Java character-oriented streams:
(2 choices).
a) They provide support for character conversion between
Unicode and ASCII
b) They all implement the CharacterStream Interface
c) They inherit from either the Reader or Writer abstract
classes
d) They are restricted to 2^16 (2 raised to power of 16) in
length
5) Which of the following method pairs are best used for controlling
thread communication?
a) stop() and resume()
b) wait() and notify()
c) threadWait() and threadNotify()
d) run() and destroy()
6)if(a) {x=y;} else{x=z;} can otherwise be writtern as
a) a=x?x=y:x=z;
b) x=a?x=y:x=z;
c) x=a?y:z;
d) a=x?y:z;