1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Object class creation in java

Discussion in 'Java' started by kiranchanti, Aug 7, 2010.

  1. kiranchanti

    kiranchanti New Member

    Joined:
    Aug 7, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi this is kiran

    i would want to know this is correct or not

    Object obj = new StringBuffer();
     
  2. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0
    it compiles ,so its correct ,but does it do what you expect it to do?
     
    kiranchanti likes this.

Share This Page