Object class creation in java

kiranchanti's Avatar
Newbie Member
Hi this is kiran

i would want to know this is correct or not

Object obj = new StringBuffer();
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