$证明:(1)连接 B D\because 边 A B 上的垂直平分线为 D E$
$\therefore A D=B D$
$\because B C^{2}=A D^{2}-C D^{2}$
$\therefore B C^{2}=B D^{2}-C D^{2}$
$\therefore B C^{2}+C D^{2}=B D^{2}$
$\therefore \angle C=90^{\circ}$
$(2) 解:设 C D=x , 则 A D= B D=4-x$
$在 Rt \triangle B C D 中, C D^{2}+B C^{2}=B D^{2}$
$\therefore x^{2}+3^{2}= (4-x)^{2} , 解得 x=\frac{7}{8}$
$\therefore C D 的长为 \frac{7}{8}$