Mahesh Parahar

Mahesh Parahar

135 Articles Published

Articles by Mahesh Parahar

Page 7 of 14

Difference between ArrayBlockingQueue and ArrayDeque

Mahesh Parahar
Mahesh Parahar
Updated on 27-Jan-2020 509 Views

ArrayBlockingQueue stores elements in FIFO order. Insertion of element always happened at the tail of the queue and removal of the element always happened from the head of the queue.  It is thread safe and It is bounded array queue therefore once created, the capacity cannot be changed. It is the implementation of the Blocking queue.As per Java Docs −Resizable-array implementation of the Deque interface. Array deques have no capacity restrictions; they grow as necessary to support usage. They are not thread-safe; in the absence of external synchronization, they do not support concurrent access by multiple threads. Null elements are ...

Read More

Difference between OpenId and OAuth

Mahesh Parahar
Mahesh Parahar
Updated on 27-Jan-2020 487 Views

OAuth is designed for providing authorization of the third party without providing password. It is http based. OAuth provides an access token that can be exchanged for any supported assertion via an API.OpenId is designed for authentication. In openId third-party authenticate your users for you, by using accounts they already have. It is used to authenticate single sign-on identitySr. No.KeyOAuthOpenId1BasicOAuth is designed for providing authorization of the third party without providing passwordOpenId is designed for authentication.2SessionIt does not initiate user's session.OpenId initiate user's session3Access TokenIt used token concept to provide authorizationIn openId third-party authenticate your users for you, by using ...

Read More

Mathematical Logic Statements and Notations

Mahesh Parahar
Mahesh Parahar
Updated on 21-Jan-2020 6K+ Views

PropositionA proposition is a collection of declarative statements that has either a truth value "true” or a truth value "false". A propositional consists of propositional variables and connectives. We denote the propositional variables by capital letters (A, B, etc). The connectives connect the propositional variables.PredicateA predicate is an expression of one or more variables defined on some specific domain. A predicate with variables can be made a proposition by either assigning a value to the variable or by quantifying the variable.The following are some examples of predicates −Let E(x, y) denote "x = y"Let X(a, b, c) denote "a + ...

Read More

Difference between the and$ operator in php

Mahesh Parahar
Mahesh Parahar
Updated on 13-Jan-2020 537 Views

$ operatorOperator is used to define variables in php. For example, message. Such variables can contain any type of value like int, string, etc.$$ operator$$ is a special operator that contains the name of another variable and can be used to access the value of that variable.ExampleFollowing the example, shows the usage of '′vs′$' operators. Live Demo    PHP Example     Outputmessage Welcome to Tutorialspoint

Read More

Difference between the | and || or operator in php

Mahesh Parahar
Mahesh Parahar
Updated on 13-Jan-2020 397 Views

'|' Bitwise OR operator'|' operator is a bitwise OR operator and is used to set the bit to 1 if any of the corresponding bit is 1.'||' Logical Or operator'||' is a logical Or operator and works on complete operands as whole.ExampleFollowing example, shows usage of '|' vs '||' operators. Live Demo    PHP Example     Output$x | $y = 3 $x || $y = 1

Read More

Difference between !== and ==! operator in PHP

Mahesh Parahar
Mahesh Parahar
Updated on 13-Jan-2020 604 Views

'!==' comparison operator'!==' operator checks the unequality of two objects with a type check. It does not converts the datatype and makes a typed check.For example 1 !== '1' will results true.'==!' comparison operator'==!' operator is combination of two operators and can be written as == (!operands).ExampleFollowing example, shows usage of '!==' vs '==!' operators. Live Demo    PHP Example     Output$x !== operator $y = bool(true) $x ==! operator $y = bool(true)

Read More

Difference between != and !== operator in JavaScript Program

Mahesh Parahar
Mahesh Parahar
Updated on 13-Jan-2020 677 Views

'!=' comparison operator'!=' operator checks the unequality of two objects without making the type check. It converts the datatype of two operands to one and then compares their value. For example 1 != '1' will results false.'!==' comparison operator'!==' operator checks the unequality of two objects with a type check. It does not converts the datatype and makes a typed check.For example 1 !== '1' will results true.Following example, shows usage of '!=' vs '!==' operators.Example    Operator Example           console.log(" 1 != '1' " + (1 != '1'));       ...

Read More

Difference between "." and "#" selector in CSS

Mahesh Parahar
Mahesh Parahar
Updated on 13-Jan-2020 3K+ Views

'.' selector'.' selector is a class level selector. The dot operator is used to create a style class which can then be applied on multiple html elements.'#' selector'#' selector is an element level selector. Hash operator is used to applying style on a particular element whose id is the same as used in '#' selectorExampleFollowing the example, shows usage of '.' as well as '#' selector on three div elements.    Selector Example>/title>           .blackBorder {          border: 2px solid black;       }       #redDiv {   ...

Read More

Difference between Managed and Unmanaged code in .NET

Mahesh Parahar
Mahesh Parahar
Updated on 06-Jan-2020 3K+ Views

.NET Framework has CLR, Common Language Runtime which execute the code written in .NET languages. CLR manages the memory needs, security concern, code optimization, platform specific conversion etc. In case of Unmanaged code, no CLR is present, and code is directly executed by Operating system.Following are some of the important differences between Managed and Unmanaged code.Sr. No.KeyManaged CodeUnmanaged code1Executed ByExecuted by CLR, Common Language Runtime, also named as Managed Runtime Environment.Executed by Operating System directly on the underlying hardware.2SecurityCLR handles security concerns and provides inbuilt security to code written in .NET.No inbuilt security present. It is developer's responsibility to write ...

Read More

Difference between const char* p, char * const p, and const char * const p in C

Mahesh Parahar
Mahesh Parahar
Updated on 06-Jan-2020 13K+ Views

PointerIn C programming language, *p represents the value stored in a pointer and p represents the address of the value, is referred as a pointer.const char* and char const* says that the pointer can point to a constant char and value of char pointed by this pointer cannot be changed. But we can change the value of pointer as it is not constant and it can point to another constant char.char* const says that the pointer can point to a char and value of char pointed by this pointer can be changed. But we cannot change the value of pointer ...

Read More
Showing 61–70 of 135 articles
« Prev 1 5 6 7 8 9 14 Next »
Advertisements