Search:

Type: Posts; User: novicenovice

Search: Search took 0.18 seconds.

  1. Replies
    4
    Views
    358

    Re: Flyweight Design Pattern

    No, for String it works.

    Lets run the below code.

    String str1= "flyweight";
    String str2= "flyweight";
    System.out.println(str1==str2); // the output is true

    The output indicates that...
  2. Replies
    4
    Views
    358

    Flyweight Design Pattern

    I read that Java String and Image classes implements 'Flyweight Design' pattern. I know, how to test this for a String class. But, I could not find a way to check this for Image class. My idea is...
Results 1 to 2 of 2