L
lowenbrau
Hi,
do you declare variables outside or inside a try catch statement?
for example:
public void nameitmethod()
{
String str = null; //HERE?
try
{
String str = null; // OR HERE?
//do something
}
catch (Exception e)
{
//do something
}
}
ST
do you declare variables outside or inside a try catch statement?
for example:
public void nameitmethod()
{
String str = null; //HERE?
try
{
String str = null; // OR HERE?
//do something
}
catch (Exception e)
{
//do something
}
}
ST