Search:

Type: Posts; User: syedbhai

Search: Search took 0.10 seconds.

  1. Replies
    15
    Views
    1,447

    Re: primitive vs reference data-type

    Wolfone,
    This link may be of help to you.
    String constant/literal pool » the Open Tutorials

    Syed.
  2. Replies
    15
    Views
    1,447

    Re: primitive vs reference data-type

    <code>
    public static void main(String str[]) {
    String s1="abc", s2="abc";

    System.out.println(s1.hashCode());
    System.out.println(s2.hashCode());
    ...
  3. Replies
    15
    Views
    1,447

    Re: primitive vs reference data-type

    Hello.
    It is okay to use "reference" in java termilonogy.
    Suppose I have a ArrayList object arrayList that holds 'n' strings.
    I invoke shrink(arrayList). In the shrink() method I remove the...
Results 1 to 3 of 3