logo

Crowdly

Browser

Add to Chrome

Що буде виведено у результаті виконання програми? class PassA {     public...

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

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

class PassA

{

    public static void main(String [] args)

    {

        PassA p = new PassA();

        p.start();

    }

 

    void start()

    {

        long [] a1 = {3,4,5};

        long [] a2 = fix(a1);

        System.out.print(a1[0] + a1[1] + a1[2] + " ");

        System.out.println(a2[0] + a2[1] + a2[2]);

    }

 

    long [] fix(long [] a3)

    {

        a3[1] = 7;

        return a3;

    }

}

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome