Uncategorized Print Only Odd Numbers In Java - In other words, if the number is not completely divisible by 2 then it is an odd number. In java, we can create a thread by either extending the thread class or by implementing the runnable interface.