This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!

Dana Bothner-By

Ranch Hand
+ Follow
since Jul 28, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dana Bothner-By

The compiler needs to be told that large literals are of type long. To do this, append a L to the end:
11 years ago
Cheating? What rule did I violate? Ockham's razor gives me a clean shave!
11 years ago
11 years ago
A "flag" is just a boolean field, right? So what's to cock a snoot at?
11 years ago

Originally posted by saikrishna cinux:
what is the format for calling a constructor ?



You've entered more than 400 posts and you haven't created an object yet? Just what have you been doing?
12 years ago
I keep reading dark warnings about not using Java to control nuclear power plants or airplanes. What's up with that?
12 years ago

Originally posted by Terence Thant Zin Oo:


you mean i should create an inner class or something like this???



I never mentioned "inner class". If you feel you need to define an inner class in your particular case, go right ahead. The choice is orthogonal to the question of starting a new thread.
12 years ago
Something like this:
12 years ago
This discussion reminds me of the final comment Woody Allen wrote for a fictitious Philosophy course:

Philosophy : Everyone from Plato to Camus is read and the following topics are covered :
  • Ethics : The categorical imperative, and six ways to make it work for you.
  • Aesthetics : Is art the mirror of life, or what?
  • Metaphysics : What happens to the soul after death? How does it manage?
  • Epistemology : Is knowledge knowable? If not, how do we know this?
  • The absurd : Why existence is often considered silly, particularly for men who wear brown-and-white shoes.


  • Manyness and oneness are studied as they relate to otherness.
    (Students achieving oneness move ahead to twoness.)
    12 years ago
    Did you forget that strings are immutable?
    12 years ago
    That's a good question, and can only be answered by the code that calls setXY -- does the calling thread want this method to return immediately and then call the server later or is the calling thread willing to wait and have the server called synchronously?

    If it were me, and I were writing a method that calls a server asynchronously, I would hide the Runnable object from the caller -- have some local variable that was Runnable or a private field that was Runnable -- why should the caller see that a class is Runnable, they might call run() by mistake!
    12 years ago
    I thought that String literals could be garbage collected under ceratin conditions, like if the ClassLoader that causes them to be loaded into memory was itself garbage collected. Am I wrong?
    12 years ago

    Originally posted by Ken Blair:

    Find the "new" in Class.newInstance.



    Class.newInstance
    12 years ago

    Originally posted by laxmidhar:
    sir
    without using new ,can we create object or not



    Why do you ask?
    12 years ago
    I thought it was for the same reason that this is not allowed:

    What this has to do with floats and longs, I don't know...
    [ August 29, 2006: Message edited by: Dana Bothner-By ]
    12 years ago