Who said derivative of |x| is undefined?? its derivative is |x|/x.
(not differentiable at x=0)
see the fist derivative...u can call it as the locus of slopes of tangents drawn to the graph . so it being defined or undefined(at a point) is not related with double derivative.