How to reverse a number in Java without using any API or write a simple Java program to reverse a number is common programming questions asked on fresher level software engineer interviews. Reversing a number is also popular homework questions on many Java programming courses on school, colleges and training institutes. I personally feel java program to reverse number is good programming exercise for some one who is just started learning programming in Java or any other programming language because of its simplicity and little bit of trickiness which shows how to use operators for programming purposes rather than arithmetic purpose. In last couple of Java programming tutorial we have seen some basic programming exercises like how to reverse string in Java using recursion and how to check if a number is prime or not, while in this Java tutorial we will see a simple example of Java program to reverse number by just using basic Java operators like division operator(/) and remainder operator(%). division operator returns quotient while modules or remainder operator % returns remainder.
If you are looking for theoretical java interview question which involves understanding of concept rather than programming then you may like Why multiple inheritance is not supported in Java, why wait and notify are defined in object class and Why main method is public static in Java. But I would say you better horn your programming skills as well by programming Simple programs than moving to tougher one which involves data-structure and designs like how to find length of linked list using iteration and recursion and design and code for vending machine in Java which accepts per-defined coin and return per-defined product handling all practical condition like returning change, returning money if product is not there etc