tag:blogger.com,1999:blog-5431648502359420919.post6812087290783660797..comments2023-10-29T00:26:39.378-07:00Comments on Computer Programming: Core Java Interview Questions -Language Fundamentalsluckyacademyhttp://www.blogger.com/profile/02325187060013640211noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5431648502359420919.post-91742765392629408282017-05-09T21:49:40.264-07:002017-05-09T21:49:40.264-07:00This comment has been removed by the author.Karthika Shreehttps://www.blogger.com/profile/06515257484162457182noreply@blogger.comtag:blogger.com,1999:blog-5431648502359420919.post-49305744546862059092013-05-25T03:31:48.359-07:002013-05-25T03:31:48.359-07:00Hey hi
the output of the first program is NullPoin...Hey hi<br />the output of the first program is NullPointerException. Though you have passed copy of reference variable a in method and assign it Null but on line 12 you have Null the value of original and single reference variable a. So it will throw an Exception not because of line 16 but because of line 12. Anonymoushttps://www.blogger.com/profile/17889563685475990258noreply@blogger.com