Object class creation in java

Newbie Member
8Aug2010,00:46   #1
kiranchanti's Avatar
Hi this is kiran

i would want to know this is correct or not

Object obj = new StringBuffer();
Pro contributor
9Aug2010,04:11   #2
virxen's Avatar
it compiles ,so its correct ,but does it do what you expect it to do?
kiranchanti like this