Javase Print Output--------01

Source: Internet
Author: User

 Public classDemo01 { PublicString A1;  Public intA2;  PublicDemo01 (String A,inti) {A1=A; A2=i; }     Public voidDispose () {A1=NULL; }     Public Static voidMain (string[] args) {//TODO auto-generated Method StubDemo01 A =NewDEMO01 ("Test", 3); DEMO01 A3=NewDEMO01 ("Test", 3); if(A = =A3) {System.out.println ("(A = = A3) ..." + "true"); } Else{System.out.println ("(A = = A3) ..." + "false"); } Demo01 A2=A; if(A = =A2) {System.out.println ("(A = = A2) ..." + "true"); } Else{System.out.println ("(A = = A2) ..." + "false");        } a.dispose (); if(A = =A2) {System.out.println ("(A = = A2) ..." + "true"); } Else{System.out.println ("(A = = A2) ..." + "false"); } a3.a1= "Test"; if(A2 = =A3) {System.out.println ("(A2 = = a3) ..." + "true"); } Else{System.out.println ("(A2 = = a3) ..." + "false"); } System.out.println ("*****************************************"); System.out.println ("Equal?" + a.a1 = =a2.a1); }//The following are the output results://(A = = A3) ... false//(A = = A2) ... true//(A = = A2) ... true//(A2 = = a3) ... false//    *****************************************//false}

Javase Print Output--------01

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.