Search:

Type: Posts; User: na9ort

Search: Search took 0.16 seconds.

  1. Replies
    4
    Views
    1,923

    Re: Java String Pool - Beginner Question

    Thanks for your answer.

    Yes, I understand that I must use equals method for comparing two strings.
    My question is more about Java theory. Not about practical issues.

    I tried find something in...
  2. Replies
    4
    Views
    1,923

    Java String Pool - Beginner Question

    Hi.

    I have a question about string pool.
    There is a code:



    public static void main(String[] args) {
    String s1 = new String("ABC");
    String s2 = new String("ABC");
Results 1 to 2 of 2