Collection Flashcards

1
Q

Java Collection?

A

A Collection represents group of a single unit of objects

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

types ?

A

set, list, tuple, map,etc

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

Set Interface ?

A
  • unordered set of elements
  • no duplicate items.
  • onlyone null value allowed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List Interface?

A

List interface

  • store the ordered collection (of objects).
  • can have duplicate values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Queue Interface ?

A
  • Queue interface maintains the FIFO order.

- ordered list

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

map?

A

..

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

AOP ?

A

One of the key components of Spring Framework is the Aspect oriented programming (AOP) framework. Aspect-Oriented Programming entails breaking down program logic into distinct parts called so-called concerns. There are various common good examples of aspects like logging, auditing, declarative transactions, security, caching, etc. This brings two levels of complexity to our code.

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

cross-cutting concerns?

A

The functions that span multiple points of an application are called cross-cutting concerns and these cross-cutting concerns are conceptually separate from the application’s business logic.

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

AOP Terminologies

?

A

1 Aspect
This is a module which has a set of APIs providing cross-cutting requirements. For example, a logging module would be called AOP aspect for logging. An application can have any number of aspects depending on the requirement.
2 Join point
This represents a point in our application where we can plug-in the AOP aspect. we can also say, it is the actual place in the application where an action will be taken using Spring AOP framework.
3 Advice
This is the actual action to be taken either before or after the method execution. This is an actual piece of code that is invoked during the program execution by Spring AOP framework.
4 Pointcut
This is a set of one or more join points where an advice should be executed. We can specify pointcuts using expressions or patterns as we will see in our AOP examples.

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

Aspect? in AOP

A
1  Aspect
This is a module which has a set of APIs providing cross-cutting requirements. For example, a logging module would be called AOP aspect for logging. An application can have any number of aspects depending on the requirement.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Join point? in AOP

A

AOP terms-(1)Aspect(2)Join point(3) Advice(4)Pointcut

Join point :
This represents a point in our application where we can plug-in the AOP aspect. we can also say, it is the actual place in the application where an action will be taken using Spring AOP framework.

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

Advice? in AOP

A

AOP terms-(1)Aspect(2)Join point(3) Advice(4)Pointcut

Advice :-
This is the actual action to be taken either before or after the method execution. This is an actual piece of code that is invoked during the program execution by Spring AOP framework.

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

Pointcut? in AOP

A

AOP terms-(1)Aspect(2)Join point(3) Advice(4)Pointcut

Pointcut :-
This is a set of one or more join points where an advice should be executed. We can specify pointcuts using expressions or patterns as we will see in our AOP examples.

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