V
vishist
Hi,
For my project, I see that some people use static methods for the
web-application in DB layer.
eg:
public static List getId(){
return list;
}
Now, I know that this method works in a threaded environment since all
these methods fall in thread scope. But coding like this defeats the
whole purpose of choosing a object oriented language. I'm confused
here whether it is a good style or not.
You comments are really appreciated..
V.
For my project, I see that some people use static methods for the
web-application in DB layer.
eg:
public static List getId(){
return list;
}
Now, I know that this method works in a threaded environment since all
these methods fall in thread scope. But coding like this defeats the
whole purpose of choosing a object oriented language. I'm confused
here whether it is a good style or not.
You comments are really appreciated..
V.