GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Java MCQ

Bharathy Kgisl 2 Fragen

Quiz starten

Fragen in diesem Quiz (2)

  1. 1Which of these cannot be declared static?
    1. Aclass
    2. Bobject
    3. Cvariable
    4. Dmethod
  2. 2class access{
    static int x;
    void increment(){
    x++;
    }
    }
    class static_use {
    public static void main(String args[])
    {
    access obj1 = new access();
    access obj2 = new access();
    obj1.x = 0;
    obj1.increment();
    obj2.increment();
    System.out.println(obj1.x + " " + obj2.x);
    }
    }
    1. A1 2
    2. B1 1
    3. C2 2
    4. Dcompilation Error

Informationen

Beschreibung
To understand the concepts in java
Sprache
English
Aufrufe
60
Schlagwörter
java
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck