Results 1 to 2 of 2
  1. #1
    bozovilla is offline Member
    Join Date
    Nov 2007
    Posts
    19
    Rep Power
    0

    Default String byte storage

    How many byte of storage is taken up for a string variable. E.g int takes up 4 and short takes up 2. How many does string takes up? unlimited?

  2. #2
    Allan Zue is offline Member
    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0

    Default

    It takes up storage only when it has been initiated, so the storage it takes depends on the value of the String.

Similar Threads

  1. Array storage
    By Stev0 in forum New To Java
    Replies: 6
    Last Post: 04-17-2008, 08:18 AM
  2. using Byte arrays
    By mew in forum New To Java
    Replies: 2
    Last Post: 01-30-2008, 04:54 AM
  3. int to byte
    By ravian in forum New To Java
    Replies: 1
    Last Post: 01-13-2008, 08:22 PM
  4. j2me.storage.RandomAccessStream certificate error
    By asdfghjkl in forum CLDC and MIDP
    Replies: 1
    Last Post: 11-09-2007, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •