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 Active Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice