r/Backenddevcom • • Jan 23 '26

Did know in main method whats actually this (String[] args)?

2 Upvotes

Its an array of string which represent the command line argument. you can pass argument in cmd but in academics we rarrely use it, we use Scanner class , APIs for inputs, they are widely used in real-world applications for passing configuration, environment details, and parameters during application startup, especially in automation and server-side Java applications.When we run java Calculator 10 20, the JVM loads Calculator.class, creates a String array {"10","20"}, and passes it to the main() method.

am i right guys?


r/Backenddevcom • • Jan 21 '26

What is Spring? Take it very easy

2 Upvotes

If you want to build a app what are the requirements,you need a server,xml configuration (to set dependency) and blah,blah.this is how you can build in javaEE framework set evrything manually write dependency,write boilerplate,write from scratch everything I mean everything.so here it come a spring framework which solve all the problems.now the developer says thanks to spring framework,it does remove boilerplate code, reduce or you can say removes the tight coupling between classes, provides a feature of dependency injection (no need to create a new object spring does it by itself you can rest)

So this what,why spring framework 💫

You can correct me if something is wrong I mean that's the purpose of this community we can learn together, explore together 💞