What Will Be The Output Of The Following Codep Pre Langcpp #337

What will be the output of the following code?</p> <pre><code class="language-cpp"> import java.awt.Point; class Testing { public static void main(String[] args) { Point t1,t2,t3; t1=new Point(100,100); t2=t1; t3=t1; t1.x=200; t1.y=200; t2.x=300; t3.y=500; System.out.println(“Point 1: ” + p1.x + ”, “ + p1.y); } } </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOps Objects - OOPs MCQ: Object Reference - Quiz No.1.


Similar question(s) are as followings:



Online Quizzes of gs111 OOP Object Oriented Programming Java

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background