Hiển thị kết quả từ 1 đến 9 / 9
  1. #1
    Tham gia
    22-11-2002
    Bài viết
    306
    Like
    0
    Thanked 2 Times in 2 Posts

    Who knows Java? Help me, pls!

    I'd like to ask about "garbage collection" in Java. Tell me all you know about it, please. Thanks.
    Quote Quote

  2. #2
    Tham gia
    13-08-2002
    Bài viết
    762
    Like
    0
    Thanked 3 Times in 3 Posts
    instead of asking us, go ahead and read some good books/articles on Java' GC.

  3. #3
    Tham gia
    23-09-2002
    Location
    somewhere I belongs
    Bài viết
    159
    Like
    0
    Thanked 0 Times in 0 Posts
    Garbage Collector is a special process to automatically delete the unusable objects. When you create an object with the "new" operator, a reference is kept to access the object. Later on, if you change the reference to another object, hence the old object will be "lost". For example, the following statements create two new object:

    String yourName = new String("abcdef"); //create first object
    String myName = new String("nofear"); //create second object

    if we change the pointer:
    myName = yourName;
    then the reference myName is overwritten by yourName, so both references now point to the same object and the object that was pointed to myName is 'lost' and you can't get it back.

  4. #4
    Tham gia
    22-11-2002
    Bài viết
    306
    Like
    0
    Thanked 2 Times in 2 Posts
    To "nhayvoibaysoi": Ofcourse I've read "Thinking in Java". I don't understand much about it, so I ask you. Which is this forum for? We can't ask here?

  5. #5
    Tham gia
    22-11-2002
    Bài viết
    306
    Like
    0
    Thanked 2 Times in 2 Posts
    Thank nofear a lot. This forum still have good people.

  6. #6
    Tham gia
    13-08-2002
    Bài viết
    762
    Like
    0
    Thanked 3 Times in 3 Posts
    once you didnt understand GC with a very comprehensive book like "Thinking In Java" (maybe 1st or 2nd edition), i dont think that you can get through it simply with nofear@'s instruction.

    and, this room is English room. The more suitable place for your question may be Java room.

    well, yes, im some kindz of bad people.

    anyway, enjoy practicing English.

  7. #7
    Tham gia
    22-11-2002
    Bài viết
    306
    Like
    0
    Thanked 2 Times in 2 Posts
    I don't mean you are bad people, danceswithwolves. With instruction of nofear, ofcourse that's not all, but I now understand more about gc, . This is English or English for IT is either true. So I ask here, I like to read English rather than Vietnamese because some terms we can't translate into Vietnamese.

  8. #8
    Tham gia
    23-09-2002
    Location
    somewhere I belongs
    Bài viết
    159
    Like
    0
    Thanked 0 Times in 0 Posts
    Stop all of your serious arguments, please. We are all friends of each other.

  9. #9
    Tham gia
    13-08-2002
    Bài viết
    762
    Like
    0
    Thanked 3 Times in 3 Posts
    dont worry nofear@, just that'z something like practicing English.

Bookmarks

Quy định

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể sửa bài viết của mình
  •