Regarding scope of some variable
<p>Can I use the "str" named variable in the code below outside of try block the way I have?</p>

<p>I am a bit confused.</p>

<pre><code>if ()
{
 try
 {
  String str;
 }
 catch
 {
  //exception
 }
 String result=str; // Will this work ??? It's inside of IF block only.
}
</code></pre>
