Programming Flashcards

1
Q

Basic concepts of java

A

High-level language
OOP language that organizes software deigns around classes and objects
Strongly typed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is OOP

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What makes java different from other languages

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When would you use Java

A
  • building android apps
  • building java web apps
  • building software tools
  • scientific application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Difference between a compiled and interpreted language?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between space and time complexities?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly