Programming Flashcards
Basic concepts of java
High-level language
OOP language that organizes software deigns around classes and objects
Strongly typed
What is OOP
Object-oriented programming is a programming paradigm based on the concept of “objects”, which can contain data and code: data in the form of fields, and code, in the form of procedures.
What makes java different from other languages
one defining differnce Java is compiled into bytecode which can run on any device with the Java Virtual Machine (JVM)
Other features of java:
- lots of libraries
- relatively intuitive to read, although not as intuitive as say python
When would you use Java
- building android apps
- building java web apps
- building software tools
- scientific application
Difference between a compiled and interpreted language?
Compiled languages are converted directly into machine-native code by a compiler program. They require an explicit build step before run time. They tend to be faster and more efficient.
On the other hand, in interpreted languages (Python, JavaScript), there are no build steps. Instead, interpreters operate on the source code of the program while executing it.
What is the difference between space and time complexities?
Time complexity is the amount of time it takes to run the program & perform the functions in it where space complexities measures the total amount of memory that an algorithm needs to run according to it’s input size.