the error end up getting is "cannot find symbol constructor Thread(A)".when i extend Thread it works fine.and if i leave the thread constructor empty(not passing a runnable)it compiles.