Sponsored Link •
|
Advertisement
|
Advertisement
|
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.
Message:
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.
a). public class topclass b). static class topclass c). private class topclass d). all the above e). a and b 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';
Replies: |
Sponsored Links
|