Rishi Raj has Published 127 Articles

The Transport Layer in TCP/IP Model

Rishi Raj

Rishi Raj

Updated on 17-Jun-2020 12:56:19

10K+ Views

The transport layer is responsible for error-free, end-to-end delivery of data from the source host to the destination host. It corresponds to the transport layer of the OSI model.The functions of the transport layer are −It facilitates the communicating hosts to carry on a conversation.It provides an interface for the ... Read More

The Application Layer of OSI Model

Rishi Raj

Rishi Raj

Updated on 17-Jun-2020 12:41:02

2K+ Views

The application layer (Layer 7) is the topmost layer of the OSI model. It specifies the interfaces and supports services to the end users for network access.The main functions of the application layer are as follows −It provides a virtual network terminal through which a user can log on to ... Read More

Local Area Networks

Rishi Raj

Rishi Raj

Updated on 17-Jun-2020 11:00:53

14K+ Views

A Local Area Network (LAN) is a private network that connects computers and devices within a limited area like a residence, an office, a building or a campus. On a small scale, LANs are used to connect personal computers to printers. However, LANs can also extend to a few kilometers ... Read More

Ternary Search

Rishi Raj

Rishi Raj

Updated on 15-Jun-2020 14:50:10

3K+ Views

Like the binary search, it also separates the lists into sub-lists. This procedure divides the list into three parts using two intermediate mid values. As the lists are divided into more subdivisions, so it reduces the time to search a key value.The complexity of Ternary Search TechniqueTime Complexity: O(log3 n)Space ... Read More

How to give a limit to the input field in HTML?

Rishi Raj

Rishi Raj

Updated on 15-Jun-2020 11:04:46

4K+ Views

The HTML tag is used to get user input in HTML. To give a limit to the input field, use the min and max attributes, which is to specify a maximum and minimum value for an input field respectively.The max and min attributes are used with number, range, date, datetime, datetime-local, ... Read More

Troubleshooting tips

Rishi Raj

Rishi Raj

Updated on 13-Jun-2020 13:30:56

512 Views

Following steps are mostly required to Troubleshoot any problem that occurred in production.As the first step, get the time frame from the user when a particular issue occurred. Get the logs for that particular time period.If logs are very large in size, use grep command to filter out errors.$ grep -o ... Read More

Function Expression vs Function Declaration in JavaScript?

Rishi Raj

Rishi Raj

Updated on 12-Jun-2020 11:30:56

153 Views

Function DeclarationThe “function” keyword declares a function in JavaScript. To define a function in JavaScript use the “function” keyword, followed by a unique function name, a list of parameters (that might be empty), and a statement block surrounded by curly braces.Here’s an example −function sayHello(name, age) {    document.write (name ... Read More

What is the difference between transient and volatile in Java?

Rishi Raj

Rishi Raj

Updated on 26-Feb-2020 10:11:11

556 Views

transient: An instance variable is marked transient to indicate the JVM to skip the particular variable when serializing the object containing it.  This modifier is included in the statement that creates the variable, preceding the class or data type of the variable.Examplepublic transient int limit = 55;   // will ... Read More

What does the method addElement(E obj) do in java?

Rishi Raj

Rishi Raj

Updated on 26-Feb-2020 06:10:20

286 Views

The addElement(E obj) method is used to add the specified component to the end of this vector and increasing its size by one. The capacity of this vector is increased if its size becomes greater than its capacity. This addElement() method is identical in functionality to the add(Object) method. The add() method returns true/false ... Read More

What does the method removeAllElements() do in java?

Rishi Raj

Rishi Raj

Updated on 25-Feb-2020 10:07:20

89 Views

The removeAllElements() method is used to remove all components from this vector and sets its size to zero. This method is identical in functionality to the clear method.Exampleimport java.util.Vector; public class VectorDemo {    public static void main(String[] args) {       Vector vec = new Vector(4);   ... Read More

Advertisements