Question: what is difference between concatenation and operator?
Answer: concat() method takes arguments of string type only. + operator takes any type of argument and converts it to string type and then combine them. concat() takes concatenates two strings and return new string object only string length is greater than 0, otherwise it returns same object..