This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Meaningless Drivel and the fly likes Java destruction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Java destruction" Watch "Java destruction" New topic

Java destruction

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

A simple, but funny, entry on TheDailyWTF.

[Jess in Action][AskingGoodQuestions]
Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

You really haven't read about JIBE? That's Java Intention Based Execution. The compiler sees the intention of the programmer was to destruct the object, and will generate code to do so....

loved the jibes!

[List of FAQs] | [Android FAQ] | [Samuh Varta]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

so, what is the conclusion ? why we need this
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

...ehm, we don't. That's the point of the WTF.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rohan kanade
Ranch Hand

Joined: Oct 22, 2009
Posts: 106
Seetharaman Venkatasamy wrote: so, what is the conclusion ? why we need this

since the argument is a object. a copy of the reference value will be passed to the method. so the original object in the heap is still being pointed to.

this class & method does nothing but brainfu*k

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1057

cool.....when will my brain work like that. I mean to understand when to say WTF and Bravo || OCJP:81%
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Java destruction