title: Comparing a char value with an object
body: <p>In Java, the <code>pop()</code> function returns the popped out value in the form of an object.</p>
  
  <p>I converted the object into a <code>String</code> using the <code>.toString()</code> method. I have a character which I converted into a <code>String</code>. Now my question is that if I compare the two Strings, will they be equal or not?</p>
  
  <p>Example: (Assume that I already had some values in the stack)</p>
  
  <pre><code>Stack&lt;Character&gt; stack=new Stack&lt;&gt;();
  Character c=stack.pop();
  //let the returned value is : a
  String a=c.toString();
  String b=Character.toString('a');
  </code></pre>
  
  <p>Now if I compare the two Strings as:</p>
  
  <pre><code>if(a.equals(b)){System.out.println("same");}
  </code></pre>
  
  <p>Will the condition becomes true?</p>