Why does it happen?

i have two cases to analise tell me why so happens
void method()
Integer i ;
try{ i = new Integer(8);
}catch(Exception e){;}
System.out.println(i);
// generates an error that object might not be initialised now as far as i know i is object whose reference is outside try block than why does it get lost.
Interger i;
void method()
i = new integer(9);
void anotherMethod()
System.out.print(i);
// in the above case no such problem occurs

A gold star i see ... :-) congrats, but please donot
adopt an elitist/pompous attitude that manydisplay
here.Believe me, we had that attitude years before those
stars were invented.Yep... nothing to do with the stars; everything to do with the knowledge that being even a poor java developer is a thousand times better than being the best .NET, VB, C++ developer around.
[edit]
I hadn't even noticed until you pointed it out. When did that happen?
[edit]

Similar Messages

Maybe you are looking for

  • Password protected web gallery

    Would like to share some picture with my client over the internet. I have created a WebGallery and would like to publish the site content to my Mobileme account through the "Pucblish to Mobileme" button at the upper right conner that appears where We

  • Smartform assignment for Comapany Code

    Hi folks, I want to know which smartform Purchase Order is assigned to a Company Code. What is the T-code for assigning it or the tables to look into. Thanks in advance.

  • Install OWB 10g (10.1) - Repository Assistant Design Repository Data TS

    The 10g Install/config guide B12150-01 states in chap 2 heading 2.3 para 8 Select the tablespace for data. The tablespace for data stores the tables that Warehouse Builder creates in order to store the client's metadata. If you plan to run lineage im

  • The best platform for Data Services / Integrator / Quality

    Based upon the deployments of other customers, which combination of operating system and platform provides the most stable & reliable environment for Data Services / Data Integrator / Data Quality?

  • Problem with Dual Diplays

    I have bougth i LG flatron L1720B and connected it to my MSI MEGAPC 180 I have a iiyama visionmaster PRO 451 connected from the start but the problem is that only the monitor on the primary monitor output is working och the secondary the monitors say