Sample Flashcards

1
Q

What is an Object?

A

refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures.

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

What is a Class?

A

an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods).

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

What is concurrency?

A

When two processes are assigned to different cores on a machine by the kernel, and both cores execute the process instructions at the same time.

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

What is a deadlock?

A

A deadlock occurs when two or more tasks permanently block each other by each task having a lock on a resource which the other tasks are trying to lock.

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

What is the difference between HashMap and TreeMap?

A

HashMap is implemented as a hash table, and there is no ordering on keys or values. TreeMap is implemented based on red-black tree structure, and it is ordered by the key.

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

The types of joins in SQL?

A

JOIN or INNER JOIN
2. OUTER JOIN

 2. 1 LEFT OUTER JOIN or LEFT JOIN
 2. 2 RIGHT OUTER JOIN or RIGHT JOIN
 2. 3 FULL OUTER JOIN or FULL JOIN
  1. NATURAL JOIN
  2. CROSS JOIN
  3. SELF JOIN
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is normalization in SQL?

A

a systematic approach of decomposing tables to eliminate data redundancy and undesirable characteristics

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

How do you handle exceptions in JAVA? What are the different types of exceptions?

A

1) Checked exceptions

2) Unchecked exceptions

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

What is the difference between overloading and overriding?

A

Method overloading deals with the notion of having two or more methods in the same class with the same name but different arguments. Method overriding means having two methods with the same arguments, but different implementations.

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

What is inheritance?

A

lets you create classes that are derived from other classes.

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

What is a method?

A

A method is a set of code which is referred to by name and can be called (invoked) at any point in a program simply by utilizing the method’s name.

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

What is an array?

A

An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created.

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

What is collection?

A

a framework that provides an architecture to store and manipulate the group of objects.

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

What is the relationship between a class and an object?

A

Class is a definition, while object is a instance of the class created. Class is a blue print while objects are actual objects existing in real world.

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

what is a full outer left joint

A

keyword return all records when there is a match in either left (table1) or right (table2) table records.

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

What is an interface?

A

An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods

17
Q

What is an abstract class?

A

Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared

18
Q

What is Primary Key.

A

a key in a relational database that is unique for each record.

19
Q

What is the difference between DELETE and TRUNCATE? What is a trigger?

A

No DML triggers will be fired. The operation cannot be rolled back. DROP and TRUNCATE are DDL commands, whereas DELETE is a DML command. Therefore DELETE operations can be rolled back (undone), while DROP and TRUNCATE operations cannot be rolled back.

20
Q

what do variables do

A

a value that can change, depending on conditions or on information passed to the program.