Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 110
Is delete a keyword in Java?

Results 1 to 2 of 2

Thread: Is delete a keyword in Java?

  1. #1
    Senior Member
    Join Date
    Jun 2015
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is delete a keyword in Java?

    Delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.

  2. #2
    Member
    Join Date
    Nov 2018
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if (something) { Object o = new Object(); } // as you leave the block, the reference is deleted. Later on the garbage collector will delete he object itself. Yea, java is Garbage collected, it will delete the memory for you.

Similar Threads

  1. Java as a second Language
    By kat in forum Web Programming
    Replies: 2
    Last Post: 04-03-2013, 07:16 AM
  2. Java Programming Language
    By zsazsa in forum Website design
    Replies: 2
    Last Post: 03-25-2013, 08:14 AM
  3. Does JAVA works with Sql server?
    By abbie in forum Web Programming
    Replies: 1
    Last Post: 01-16-2013, 04:42 PM
  4. What is a pointer and does Java support pointers?
    By Yasirraza in forum Web Programming
    Replies: 1
    Last Post: 01-11-2013, 08:48 PM
  5. Good Books for Java ??
    By tipumaka in forum Web Programming
    Replies: 1
    Last Post: 01-09-2013, 09:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

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