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!!

[311 byte] By [NewJavabeea] at [2007-11-27 0:19:06]
# 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..

drvijayy2k2a at 2007-7-11 22:10:14 > top of Java-index,Desktop,Developing for the Desktop...