Doubt in bean creation
Hi all,
I have a very basic doubt. Is it possible to create an array of objects for a bean class as following:
FileDetails_Bean FileBean[] =new FileDetails_Bean();
Note
FileDetails_Bean is a bean class.
clarify my doubt plzzzzzzzz!!
# 1
hai
class call
{
public static void main(String[] args)
{
//System.out.println("Hello World!");
myBean m[]=new myBean[5];
m[0].setstr("x");
m[1].setstr("y");
System.out.println(m[1].getstr());
}
}
no syntax error
but nullpointerassingment exception formed..
so some what not possible like this..