.JARa's Bilingual Weblog

Life's better with NetBeans
photo of Jara

Java test ( 20060310 Pátek březen 10, 2006 )
Czech flag Dnes mě jeden můj kolega vyzkoušel jednoduchým příkladem z programátorských dovedností. Musím se přiznat, že jsem neodpověděl správně. Jsem znechucený a budu celý víkend studovat. Uhádnete aspoň vy, co vypíše následující kousek kódu?
Source code
English flag One of my colegues gave me a quick test from Java skills today. He asked me just an easy question. Unfortunately I have to say I failed. I am frustrated and thus I will study whole weekend. So you can check your skills on the same test. What is the result of the following code?
Source code
Posted by jara ( III 10 2006, 04:53:35 odp. CET ) Permalink Comments [2]


Trackback URL: http://blogs.sun.com/jara/entry/java_test
Comments:

CS: Tak to je hezké že tiskne aritmetický výraz a navíc dává univerzální odpověď, tedy 42, viz odkaz Stopařův průvodce po Galaxii. Dole je vidět další varianta programu, jen výsledek je o jedničku větší.
EN: It's nice that it's printing arithmetic expression, and even returning universal answer, 42 - see The Hitchhiker's Guide to the Galaxy. Bellow is other program variation, only result is greater by one.

  char value\u000A = ' ';
       \u0076\u0061\u006C\u0075\u0065 = '!';
   System.out.println(value
   + '\n');

Posted by Josef on březen 12, 2006 at 12:05 dop. CET #

CS: Jsem rád, že jste si všimnul univerzální odpovědi jako výsledku právě Vy Josefe. Gratuluji!
EN: I am glad that it is right you Josef who noticed the universal answer as a result. Congratulation!

Posted by .JARa on březen 13, 2006 at 08:59 dop. CET #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed
Archives
Search
Contact
Links
Visits map
Referrers

   Disclaimer: This blog contains my own opinions which may differ from viewpoints of Sun Microsystems.