BasicJava_3007

Last modified by superadmin on 2018-01-12 20:24

Back to Item Set

<p/>
<!-- START TestItem -->
<p/>
<div class="TestItem">
<div class="TestItemQuestion">3007 Question:\

Kas parādās standartizvadē, ja darbina sekojošu programmu: {code}
class A {
    public static void main(String[] args) {
        method();
    }
    static void method() {
        try {
            System.out.println("hello");
            return;
        } finally {
            System.out.println("good-bye");
        }
    }
}
{code}

</div>

Select 1 correct answer(s)!

<p/>
<ol class="MTestItemChoices" type='A'>
<li>

"hello"

</li>
<li>

"good-bye"

</li>
<li>

Vispirms "hello", tad "good-bye"

</li>
<li>

Kodu nevar nokompilēt, jo aiz <tt>try</tt> neseko <tt>catch</tt>

</li>
</ol>
<p/>
<div class="TestItemSkill"><!--$skillid>Skill: Vadības plūsma</div>
<p/>
</div>
<!-- END MTestItem -->
<p/>
<p/>


{{/velocity}}

Tags:
Created by Kalvis Apsītis on 2007-12-28 15:40
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation