|
|
.JARa's Bilingual Weblog
Life's better with NetBeans
|
|
|
Java test
(

Pátek březen 10, 2006 )
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?
|
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?
|
Posted by jara
( III 10 2006, 04:53:35 odp. CET )
Permalink
Trackback URL: http://blogs.sun.com/jara/entry/java_test
|
|
|
|
| Archives |
|
|
| « listopad 2009 | | Po | Út | St | Čt | Pá | So | Ne |
|---|
| | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | | | | Today |
|
|
|
| Search |
|
|
|
|
|
|
| Contact |
|
|
Name: Jaromír Uhřík
E-mail: Jaromir.Uhrik@Sun.Com
ICQ: #265092035
RSS:
|
|
|
| Links |
|
|
|
|
|
| Visits map |
|
|
|
|
|
| Referrers |
|
|
|
Today's Page Hits: 267
|
|
|
|
|
|
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 #
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 #