Vikyath Ram

Vikyath Ram

96 Articles Published

Articles by Vikyath Ram

Page 5 of 10

The Internet Layer in the TCP/IP Model

Vikyath Ram
Vikyath Ram
Updated on 17-Jun-2020 12K+ Views

The Internet layer is responsible for logical transmission of data packets over the internet. It can be compared to the network layer of the OSI model.The main functions of the internet layer are −It transmits data packets to the link layer.It routes each of the data packets independently from the source to the destination, using the optimal route.It reassembles the out-of-order packets when they reach the destination.It handles the error in transmission of data packets and fragmentation of data packets.The protocols used in this layer are −Internet Protocol, IP − It is a connectionless and unreliable protocol that provides a ...

Read More

The Data Link Layer of OSI Model

Vikyath Ram
Vikyath Ram
Updated on 17-Jun-2020 2K+ Views

The data link layer (Layer 2) converts the raw transmission facility provided by the physical layer to a reliable and error-free link.The main functions of the data link layer are as follows −It breaks up the stream of bits into data frames having sizes from a few hundred to a few thousand bytes.It ensures distribution of the frames to the different systems. For this, it adds a header to the frame containing the address of the sender and the receiver.In case of reliable connection, this layer ensures that the receiver sends an acknowledgement frame. In absence of acknowledgement frames, frame ...

Read More

Metropolitan Area Networks (MAN)

Vikyath Ram
Vikyath Ram
Updated on 17-Jun-2020 6K+ Views

A metropolitan area network (MAN) is a network with a size greater than LAN but smaller than a WAN. It normally comprises networked interconnections within a city that also offers a connection to the Internet.The distinguishing features of MAN areNetwork size generally ranges from 5 to 50 km. It may be as small as a group of buildings in a campus to as large as covering the whole city.Data rates are moderate to high.In general, a MAN is either owned by a user group or by a network provider who sells service to users, rather than a single organization as ...

Read More

What is the difference between decodeURIComponent and decodeURI?

Vikyath Ram
Vikyath Ram
Updated on 16-Jun-2020 495 Views

decodeURIComponentTo decode a URL component in JavaScript, use the decodeURLComponent() method.ExampleYou can try to run the following code to decode a URL component −           Check                      function display() {             var uri = "http://example.com/welcome msg.jsp?name=åmit&sub=programming";             // first encode             var encode = encodeURIComponent(uri);             var decode = decodeURIComponent(encode);             var result = "Encode= " + ...

Read More

Java labelled for loop

Vikyath Ram
Vikyath Ram
Updated on 15-Jun-2020 2K+ Views

Following program is using labeled for loops.ExampleLive Demopublic class Tester {    public static void main(String args[]) {             first:          for (int i = 0; i < 3; i++) {             for (int j = 0; j< 3; j++){                if(i == 1){                   continue first;                }                      System.out.print(" [i = " + i + ", ...

Read More

How to parse JSON object in JavaScript?

Vikyath Ram
Vikyath Ram
Updated on 12-Jun-2020 726 Views

ExampleTo parse JSON object in JavaScript, implement the following code −                    myData = JSON.parse('{"event1":{"title":"Employment period","start":"12\/29\/2011 10:20 ","end":"12\/15\/2013 00:00 "},"event2":{"title":"Employment period","start":"12\/14\/2011 10:20 ","end":"12\/18\/2013 00:00 "}}')          myArray = []          for(var e in myData){             var dataCopy = myData[e]             for(key in dataCopy){                if(key == "start" || key == "end"){                   dataCopy[key] = new Date(dataCopy[key])                }             }             myArray.push(dataCopy)          }          document.write(JSON.stringify(myArray));          

Read More

What is nodeValue property in JavaScript HTML DOM?

Vikyath Ram
Vikyath Ram
Updated on 22-May-2020 330 Views

The nodeValue property is used to get the node value. You need to specify the node.ExampleYou can try to run the following code to learn how to get nodeValue property.Live Demo           Get the node value       Demo Button Text                var val = document.getElementsByTagName("BUTTON")[0];          var res = val.childNodes[0].nodeValue;          document.write("Node Value: "+res);          

Read More

How to limit input text length using CSS3?

Vikyath Ram
Vikyath Ram
Updated on 25-Feb-2020 1K+ Views

With HTML, you can easily limit input length. However, with CSS3, it will not be possible, since CSS can’t be used to limit the number of input characters. This will cause a functional restriction.CSS deals with presentation i.e. how your web page will look. This is done with HTML attribute malength, since it’s for behavior.Let’s see how to do it in HTML −ExampleYou can try to run the following code to limit input text lengthLive Demo           HTML maxlength attribute                        Student Name                    

Read More

Does a favicon have to be 32x32 or 16x16?

Vikyath Ram
Vikyath Ram
Updated on 25-Feb-2020 6K+ Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with a smaller size. The size of a favicon is 16x16, since it also gets displayed next to the URL of your site in a browser's address bar.The 16x16 size for Favicon is suitable for web browsers. But the size varies on multiple platforms and devices. The size is added using the sizes attribute.The preferred size,    1.16x16: For web browser   2. 32x32: or taskbar shortcut icon   3. 96x96: For desktop shortcut iconHere’s how you can add them ...

Read More

Member variables vs Local variables in Java

Vikyath Ram
Vikyath Ram
Updated on 24-Feb-2020 2K+ Views

Local VariableLocal variables are declared in methods, constructors, or blocks.Local variables are created when the method, constructor or block is entered and the variable will be destroyed once it exits the method, constructor, or block.Access modifiers cannot be used for local variables.Local variables are visible only within the declared method, constructor, or block.Local variables are implemented at stack level internally.There is no default value for local variables, so local variables should be declared and an initial value should be assigned before the first use.Instance/Member VariableInstance variables are declared in a class, but outside a method, constructor or any block.When a ...

Read More
Showing 41–50 of 96 articles
« Prev 1 3 4 5 6 7 10 Next »
Advertisements