java Object inside a try {}
<p>Hy ... I have the following code :</p>

<pre><code>    try { Nrtrde record = new Nrtrde(); }
    catch (Exception e) {
        System.out.println(" ERROR\n");
        e.printStackTrace(); }
    finally { Nrtrde record = new Nrtrde(); System.out.println(" OK\n"); }

record.setSpecificationVersionNumber(specificationVersionNo);
</code></pre>

<p>and when compiling i get the following error :</p>

<pre><code>NRTRDE\ENCODER.java:28: error: cannot find symbol
        record.setSpecificationVersionNumber(specificationVersionNo);
        ^
  symbol:   variable record
  location: class ENCODER
1 error
</code></pre>

<p>It seems I cannot create an object insinde a <code>try {}</code> and use it outside <code>try {}</code> ..</p>

<p>Why ?</p>

<p>Thank you</p>
