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
Are you smarter than a 5th grader?
16834
On The Farm
840
Is It Right to Fight Quiz!
11611
HCMG Holiday Trivia
1268
Fundamentals of Statistics and Probability Test - Free
15816742
Teen Personality: What Kind of Teen Are You?
201016626
British Open Trivia - Test Your Championship Knowledge
201018731
Is He Into Me or Just Being Nice? Free Online
201018342
What Kind of Partner Am I? - See Your Relationship Type
201018893
What Christian Denomination Am I? Find Out Now!
201018495
Subconscious Test - Discover Your Mind Type (Free)
201017693
Which Phrase Describes the Relative Age of a Rock?
201016982