Object class creation in java

kiranchanti's Avatar, Join Date: Aug 2010
Newbie Member
Hi this is kiran

i would want to know this is correct or not

Object obj = new StringBuffer();
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
it compiles ,so its correct ,but does it do what you expect it to do?
kiranchanti like this