jose chiramal wrote: in the code when we say if (color.equals("red")) { System.out.println("welcome color is red"); } Here how is color an object ??
Chinna Eranna wrote: jose chiramal wrote: in the code when we say if (color.equals("red")) { System.out.println("welcome color is red"); } Here how is color an object ?? Which code you are taking about ? Servlet or Some Action class in java ?