List vs Queue vs Set vs Map


 List vs Queue vs Set vs MapListQueueSetMapDuplicatesYesYesNoNo(Allow duplicate values not keys)OrderYesYesNoNoNull valuesYesPriority queue doesn't allow, but queue using LinkedList allows nullSingle nullSingle null key and many null valu...

ArrayList vs LinkedList vs Vector


ArrayList vs LinkedList vs Vector ArrayListLinkedListVectorData structureIndex-based  dynamic arrayDoubly linked listGrowable arrayIncrement size50%No initial size100%Traverse Uses iteratorUses iteratorUses enumerationMemory usageLess memory usageMore memory usageAccessibilityRandom...

Array vs ArrayList


 ArrayArrayListFixed-sizeSize is not fixedNot type-safeType-safeAllow both primitives and objectsDoesn't allow primitives. But after Java 5 auto-boxing will convert primitives to objectsType safety means the compiler will validate the types while compiling and throw an error if you do anything...

What is REST


RESTIntroductionStands for Representational State Transfer.REST is a web standards-based architecture that uses the HTTP protocol (port 80) for data communication.Uses HTTP methods for data communication REST server simply provides access to resources and client access and presents the resource.REST...

Directives in Angular 11


 DirectivesDirectives are instructions in the DOMIt adds additional behaviors to the elementsUsing inbuilt directives we can manage forms, lists, styles, and what users see.There are a few typesComponent directivesAttribute directivesStructural directivesComponent directivesThese directives are...

Access token vs refresh token


Access token vs refresh tokenAccess tokenThis is short-livedSend API request, with the access tokenIf the access token is invalid, fail and ask the user to re-authenticateThere are few types of access tokensBearer tokensJWT tokensOpaque tokenRefresh tokenThese tokens are long-livedRefresh tokens are...