Language Specific Features Flashcards

1
Q

Diff between C++ and JavaScript

A

memory management
platform dependence
pointer support

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

Enables runtime polymorphism in C++

A

Virtual functions

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

Allow writing generic code that can work with diff data types

A

C++ templates

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

What are exceptions in Java & C++

A

Runtime errors

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

How are exceptions handled in Java & C++

A

try-catch blocks

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

Provides built-in support for multithreading using the Thread class and synchronized keyword

A

Multithreading (Java)

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

In C++ multithreading is handled by these libraries

A

<mutex>
<thread>
</thread></mutex>

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