Nitya Raut has Published 276 Articles

Feedback-based flow control in data link layer

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 13:03:04

1K+ Views

Flow control is a technique that allows two stations working at different speeds to communicate with each other. It is a set of measures taken to regulate the amount of data that a sender sends so that a fast sender does not overwhelm a slow receiver.In data link layer, the ... Read More

Create a StringBuffer object using a reference stored in a variable of type String in Java

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 13:00:02

202 Views

To create a StringBuffer Object, we use the following syntax −StringBuffer s=new StringBuffer();When we create a reference to an object, we use the assignment operator. For example, String s1 = ”hi”; String s2 = s1; // s2 is a reference of s1A program to illustrate the creation of a StringBuffer ... Read More

Constraint length of the Convolutional Code

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 12:33:27

3K+ Views

Convolutional CodesConvolutional codes are error correcting codes where the data streams of indefinite lengths are encoded before transmission over noisy channels. The message streams are encoded by the sliding application of Boolean functions that generate a sequence of output bits.Convolutional codes were first introduced in 1955, by Elias. After that, ... Read More

Hamming code for single error correction, double error detection

Nitya Raut

Nitya Raut

Updated on 27-Jun-2020 07:39:53

11K+ Views

Hamming code is a block code that is capable of detecting up to two simultaneous bit errors and correcting single-bit errors. It was developed by R.W. Hamming for error correction.In this coding method, the source encodes the message by inserting redundant bits within the message. These redundant bits are extra ... Read More

Object Serialization with Inheritance in Java Programming

Nitya Raut

Nitya Raut

Updated on 26-Jun-2020 15:57:47

669 Views

Serialization is the process of changing the state of an object into the byte stream so that the byte stream can return back into a copy of the objectIn Java, an object is said to be serializable if its class or parent classes implement either the Serializable interface or the ... Read More

Java program to insert a String into a Substring of StringBuffer

Nitya Raut

Nitya Raut

Updated on 26-Jun-2020 15:35:39

160 Views

The insert() method of the StringBuffer class inserts the String starting from an index specified in the parameter along with the stringThe syntax of the insert method is −original_string.insert( index , var)where var is the variable to be inserted and index is the position where the variable var is to ... Read More

Change the default capacity of the StringBuffer Object in Java

Nitya Raut

Nitya Raut

Updated on 26-Jun-2020 15:12:55

334 Views

In order to change the default capacity of the StringBuffer Object, we use the ensureCapacity() method. When the current capacity is less than the parameter passed, then a new internal array is allocated with greater capacity.The new capacity is the larger of the minimumCapacity argument and twice the old capacity, ... Read More

Remove a character from a Java StringBuffer object

Nitya Raut

Nitya Raut

Updated on 26-Jun-2020 15:04:51

292 Views

In order to remove a character from a Java StringBuffer object, we use the deleteCharAt() method. The deleteCharAt() removes the character at the specified index. The length of resultant sequence of characters of the StringBuffer object is reduced by one.Declaration − The java.lang.StringBuffer.deleteCharAt() method is declared as follows−public StringBuffer deleteCharAt(int ... Read More

Do any browsers yet support HTML5's checkValidity() method?

Nitya Raut

Nitya Raut

Updated on 25-Jun-2020 07:24:36

73 Views

Yes, the checkValidity() works in Google Chrome and Opera as well. This works as well −Example                    .valid {             color: #0B7866;          }          .invalid {     ... Read More

Building a Responsive Grid-View with CSS

Nitya Raut

Nitya Raut

Updated on 25-Jun-2020 06:08:40

302 Views

You can try to run the following code to build a responsive grid-view:ExampleLive Demo                          * {             box-sizing: border-box;          }          .header { ... Read More

Advertisements