I'm totally new to java programming but I'm been programming with .Net and PHP. In .Net all you have to do is run it and it will output exe file in the bin dir which is already deployable, right? I'm confused with the use of maven and javac. I've been searching around but I don't still able to fathom them.
What I'm thinking is that when a certain source code is to be compiled in java, you use the cmd "javac " which is similar to "Run" in .Net. So why do we need Maven?
Maven is a software project management and comprehension tool and not a programming language compiler like javac.
Maven gives you a way to manage your project dependencies through out the development and deployment phases of it, meaning that it ensures that you have the necessary libraries to develop, build and deploy your project. Javac only gives a way to compile your Java code.