This below question is from the website
http://valiveru.tripod.com/java/jvaltest.html Question 49.
Which of the following
java classes are immutable??
A.java.lang.Math
B.java.util.String
C.java.util.StringBuffer
D.java.lang.Boolean
E.java.lang.Object
Answer is B and D
My question is Why A is not correct.I thought Math class is also immutable.
One more question
Question 52.
If you want to create java GUI application using AWT, you constructed a frame calling
Frame f = new Frame();
What methods you need to call on the Frame f to make it visible.
A.f.setVisible(true);
B.f.setSize(true);
C.Both A & B
D.There is no need to call any methods on f explicitly to
make it visible.
Answer is c
I think setSize takes two parameters with width and height, here they have given boolean value parameter .
Can anyone please help with this.
[This message has been edited by sdev (edited July 18, 2000).]
[This message has been edited by sdev (edited July 18, 2000).]
[This message has been edited by sdev (edited July 18, 2000).]
[This message has been edited by sdev (edited July 18, 2000).]