logo

Crowdly

Browser

Add to Chrome

Questions Bank (1561465 total)

O interfață poate fi instanțiată;

0%
100%
View this question

Які перемикачі потрібно замкнути, щоб одночасно світилася перша лампочка і дзвонив дзвінок?

0%
0%
0%
0%
0%
0%
View this question

Codul de mai jos este corect? 

interface A {

    int x = 5;

    void metoda();

}

 

class B implements A {

    public void metoda() {

        x = 10;

    }

}

0%
100%
View this question

Ce caracteristici sunt valabile pentru clasele interne nestatice? 

100%
20%
90%
View this question

O clasă anonimă poate extinde o clasă sau implementa o interfață, dar nu ambele simultan.

11%
89%
View this question

До кінців резистора прикладена напруга 10В. Якої сили буде струм в резисторі,  якщо його опір становить 2 Ом?

100%
0%
0%
0%
0%
View this question

Хто із вчених створив перший гальванічний елемент?

0%
0%
100%
0%
View this question

Від чого залежить опір провідника?

0%
100%
0%
View this question

  1. Ce afișează codul de mai jos?

class Externa {

    private int x = 10;

 

    class Interna {

        void afiseaza() {

            System.out.println(x);

        }

    }

 

    public void executa() {

        Interna i = new Interna();

        i.afiseaza();

    }

}

 

public class Main {

    public static void main(String[] args) {

        new Externa().executa();

    }

}

View this question

Care dintre următoarele metode sunt implementări valide ale unei metode dintr-o interfață?(A,B sau C)

interface I {

    void show();

}

 

class A implements I {

    public void show() { }    // A

    void show() { }           // B

    public void show(int x) { } // C

}

View this question