logo

Crowdly

Browser

Add to Chrome

Що буде виведено на екран в результаті виконання наступного коду? public clas...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Що буде виведено на екран в результаті виконання наступного коду?

public class SomeClass {

public static void main (String args []) {

SomeClass2 s = new SomeClass2 ();

}

public SomeClass () {

System.out.print ( "1");

}

{

System.out.print ( "2");

}

}

class SomeClass2 extends SomeClass {

public SomeClass2 () {

System.out.print ( "3");

}

{

System.out.print ( "4");

}

}

(Java)

0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome