The == operator compares object references, not their contents. Even though both a and b contain "hello", they are two separate objects. Use .equals() instead:
If you want to compare memory references, use ==. For content comparison, always use .equals().