Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Output of code segment (https://www.askmehelpdesk.com/showthread.php?t=379280)

  • Jul 24, 2009, 08:03 AM
    thspngrl
    Output of code segment
    What is the result of executing the following code segment:

    String a = "test";
    String b = a;
    if (a.equals(b))
    System.out.println("equal");

  • All times are GMT -7. The time now is 01:33 PM.