part1 Flashcards
what is the difference between a compiler and an interpreter?
A compiler translates the entire code of a program into machine language before running it, so the program runs faster, but you have to wait for the whole translation to finish first. An interpreter translates the code line by line as the program runs, so you can start seeing results right away, but it generally runs slower.
what are dependencies?
Dependencies are things that a program needs to work properly. Just like a recipe needs certain ingredients to make a dish, a program needs certain pieces of code or software to run correctly.
- example npm for nodejs
pip for python
what is JDK (java development kit)
it is a toolkit you use to DEVELOPE BUILD and RUN programs in the Java programming language. It includes tools like a compiler (to translate your code) and a runtime environment (to run your code).
what is a java runtime environment (JRE)
It is what is needed to run a java application. This is included when you install JDK
what is a war file?
A WAR file (Web Application Archive) is like a zip file for a web application. It packages all the files needed for a web app, such as HTML, JavaScript, images, and Java code, into a single file. This makes it easy to deploy the app to a web server
what are the steps that form a build process in java?
develop the code
compile the code
package the code
note that many other steps can be added.
what is the use of a build tool in a java application?
A build tool in a Java application automates tasks like compiling code, packaging it into files (like JARs or WARs), running tests, and deploying the application
name some build tools you know.
Maven Gradle Ant
when using maven in what file can you find the build instructions?
pom.xml
what is nodejs?
Node.js is a runtime environment that allows you to run JavaScript code outside of a web browser.
what is Node Package Manager (npm) ?
npm (Node Package Manager) is a package manager for Node.js. It’s a tool that comes bundled with Node.js installation and allows you to easily manage and install libraries (packages) written in JavaScript.
which file in nodejs contain dependencies needed by the application?
package.json