Full Stack Developer (Java) Question:
Tell me how do you run a Java application on the command line and set the classpath with multiple jars?
![Full Stack Developer (Java) Interview Answer Full Stack Developer (Java) Interview Question](/public/images/interview/16.webp)
Answer:
Some people will be thinking “what!?” but I’ve met a lot of Java developers who’ve not run a Java application outside of an IDE for years.
java -cp /dev/myapp.jar:/dev/mydependency.jar com.codementor.MyApp
java -cp /dev/myapp.jar:/dev/mydependency.jar com.codementor.MyApp
Previous Question | Next Question |
Explain me what Are The Latest Trends In Full Stack Web Development? | Can you write a function to detect if two strings are anagrams (for example, SAVE and VASE)? |