title: Can I define a function in Java ouside the class
body: <p>I have declared a function in a class and want to know if I could define it outside the class. I have seen these cases in C++ but haven't come across anything like this in Java. Does Java allows doing this?</p>