GRILA JAVA 16
{"name":"GRILA JAVA 16", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Se considera clasa Test cu codul de mai jos. Precizati efectul rularii secventei din programul principal. package examen; class test { int x = 0; void metoda() { this.x += 2; } } class MainApp { public static void main (String[] args) { Test t = new Test(); t.metoda(); System.out.println(t.x); } }, Incercuiti afirmatia corecta cu privire la codul de mai jos: class Artist { T nume; S varsta; public Artist(T nume, S varsta) { this.nume = nume; this.varsta = varsta; } public String tostring { return nume + “, “ + varsta; } } class MainApp { public static void main (String []args) { Artist artist = new Artist (“Ionel”, 20); System.out.println(arist); } }, Precizati ce va afisa secventa: class OClasa { private static int x; private int y; public OClasa(int x, int y) { this.x = x; this.y = y; } public int GetX() { return x; } public int GetY() { return y; } } class MainOClasa { public static void main (String[] args) { OClasa ob1 = new OClasa(1, 3); OClasa ob2 = new OClasa(2, 4); int xx = ob1.getX() + ob2.getX(); int yy = ob1.getY() + ob2.getY(); System.out.println(xx + “ “ + yy); } }","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
More Quizzes
Baby Emoji PictionaryGuess the correct phrases that match the emoji
10519
MEGA QUIZ (Random)
20100
Mayo
12611
Which Disney character are you ?
630
What's the Ultimate Source of Energy in Food? Take the!
201034752
Ultimate Geometry Trivia: Test Your Skills Now
201026625
Which Supernatural Character Are You? Take the Free
201032096
Res & Bibliography in Music
15825187
Ultimate Tennessee Vols Fan: Are You a True Vol?
201029540
Free Regulation of Transcription in Prokaryotes
201095114
Word Test: Free Microsoft Word Challenge
201047146
Which Percy Jackson Weapons Suit You Best? Free
201030938