title: Can I have same Java file with different versions for debug and release?
body: <p>I am developing an android application. I have an java file that I want to use it differently in debug and release build types. I know I can have different resource files for debug and release versions. But is it possible to do the same with Java files also? How to achieve this?</p>