A function f:R→R is defined as f(x)=x2 for x≥0 and f(x)=−x for x<0.
Consider the following statements in respect of the above function:
1. The function is continuous at x=0.
2. The function is differentiable at x=0.
Which of the above statements is/are correct?