Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #31.8K
[CODE] [1]class A{ [2]public static void main(String...agrs){ [3]String str1="ABC"; [4]String str2="ABC"; [5]String str3=new String("ABC"); [6]} [7]} [/CODE] How many objects are created at each line and finally at line 7? |
|
Hello everybody. I am new to java and to this forum so please excuse my mistakes. i wanted to knew what happens internally when we do typecasting of any reference variable to its super type/sub type.Does there is any change in its reference? |