The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Browse by Tags

All Tags » java (RSS)
  • Re: Java reflection WTF

    [quote user="HypocriteWorld"] I don't have a sister and I don't have a dog[/quote] You'd have both, if not for Java!
    Posted to Forum by Spectre on 12-01-2008
  • Java reflection WTF

    Found some code today: if(object.getClass().getName().toString().indexOf("Double") >= 0) { double d= (double)object; //do some stuff with d } Count the WTFs, include if you wish TRWTF is Java.
    Posted to Forum by AJAXdrivenBuzzwords on 11-25-2008
  • Lunacy or Stupidity?

    I can't tell whether this lunacy or stupidity: while (true) { long time_ = Calendar.getInstance().getTimeInMillis(); mInterval = time_ - mPrevTime; if ((mInterval > mSleepTime) || (mPrevTime == 0)) { //do some stuff mPrevTime = Calendar.getInstance().getTimeInMillis(); } } Time for you to pull...
    Posted to Forum by spxza on 10-14-2008
  • Re: Ban Google, Save India

    [quote user="lizardfoot"]How are they going to get "teh codez" without being able to search on Google?[/quote] Do they actually use it? I thought they go straight to Java forums.
    Posted to Forum by Spectre on 09-19-2008
  • Re: CBT for screenings.

    [quote user="mxsscott"] [quote user="fourchan"] I'm not a Java developer, but answer E looks correct to me. What am I missing? [/quote] That there is no main() method. [/quote] Oh, right, it's called "run". Smart you. Silly me.
    Posted to Forum by fourchan on 08-08-2008
  • HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor

    Speaks for itself.... HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor
    Posted to Forum by seconddevil on 06-27-2008
  • Re: Hello, anybody hear of XML?

    [quote user="fluffy777"] <pedantic> Wrong: The BOM is not valid for UTF-8, it's only needed to mark utf16-little-endian v.s. uft16-big-endian encodings. utf8 can't be big or little endian, they're probably converting from utf16le-windows to utf8 w/o stripping the BOM. <...
    Posted to Forum by FraGag on 06-16-2008
  • Best Java web framework

    I know this is a bit of a religious issue for some, and I don't want to start a flame war, but this is something I've had to research a bit recently and I was wondering what other people's thoughts were. There seems to be a huge proliferation of Java web frameworks out there at the moment...
    Posted to Forum by PhillS on 05-09-2008
  • Re: Classic Java language WTF

    [quote user="MasterPlanSoftware"] The simple solution is to add a webservice layer in here. [/quote] Clearly this can be extracted to a propper class hierarchy. We create two servers which create two integers, then they send using Remote Method Invocation an invocation of a comparison and reply...
    Posted to Forum by dlikhten on 05-02-2008
  • Re: Classic Java language WTF

    [quote user="quamaretto"] I don't really know Java, but I would assume... That at 128, new objects are instantiated for each Integer while there are existing objects cached for a range up to 127? [/quote] Looks like this is a test because somone does not trust the JVM doing object creations...
    Posted to Forum by dlikhten on 05-02-2008
Page 1 of 6 (51 items) 1 2 3 4 5 Next > ... Last ยป
Powered by Community Server (Non-Commercial Edition), by Telligent Systems