The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


help me

Posted by raji on January 26, 2001 at 8:31 PM

1.An automatic variable becomes eligible for garbage collection when it goes out of scope

a]. true

b]. false

and the answer that has given is :true.

how come a local variable eligile for garbage collection when it goes out of scope.

Which of the following is not a valid top level class?

a). public class topclass

b). static class topclass

c). private class topclass

d). all the above

e). a and b
how come declaring a toplevel class as public is invalid.
tell me.

2. An example unicode value is '0x3c0' in hexadecimal.

Which of the following correctly initializes the char primitive to the pi?

a). char pi='u3c0';

b). char pi='\u03c0';

c). char pi="\u03c0";

d). char pi='\x03c0';

and i think it is'/u03c0'
can anyone tell me iff iam wrong the corrct answer.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us