Paul Richard has Published 66 Articles

Static variables in Java

Paul Richard

Paul Richard

Updated on 04-Oct-2023 12:40:34

27K+ Views

Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block. There would only be one copy of each ... Read More

CSMA with Collision Avoidance (CSMA/CA)

Paul Richard

Paul Richard

Updated on 14-Sep-2023 21:52:01

47K+ Views

Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) is a network protocol for carrier transmission that operates in the Medium Access Control (MAC) layer. In contrast to CSMA/CD (Carrier Sense Multiple Access/Collision Detection) that deals with collisions after their occurrence, CSMA/CA prevents collisions prior to their occurrence.AlgorithmThe algorithm of CSMA/CA ... Read More

How to mark text superscript in HTML?

Paul Richard

Paul Richard

Updated on 29-Dec-2021 07:07:53

2K+ Views

To mark superscripted text in HTML, use the … tag. Just keep in mind both the opening and closing tag is mandatory while using the ... tag.The superscript text appears to be half a character above the normal line. It is displayed as a smaller font.You can try the following ... Read More

How to set the distance between lines in a text with JavaScript?

Paul Richard

Paul Richard

Updated on 23-Jun-2020 13:22:18

461 Views

To set the distance between lines, use the lineHeight property. You can try to run the following code to set the distance between lines in a text with JavaScript −ExampleLive Demo           Heading 1       This is Demo Text.This is Demo TextThis is ... Read More

How to set all outline properties in a single declaration with JavaScript?

Paul Richard

Paul Richard

Updated on 23-Jun-2020 12:01:37

137 Views

To set all outline properties in one declaration, use the outline property. It sets the following properties: outline-width, outline-style, and outline-color.ExampleYou can try to run the following code to learn how to work with outline properties −Live Demo                    #box ... Read More

How to set border width, border style, and border color in one declaration with JavaScript?

Paul Richard

Paul Richard

Updated on 23-Jun-2020 11:06:22

975 Views

To set the border width, style, and color in a single declaration, use the border property in JavaScript.ExampleYou can try to run the following code to learn how to set border in JavaScript −Live Demo           Set border             ... Read More

What will happen when 1 is converted to Boolean in JavaScript?

Paul Richard

Paul Richard

Updated on 23-Jun-2020 09:20:39

125 Views

You can try to run the following code to learn how to convert 1 to Boolean in JavaScript −ExampleLive Demo           Convert 1 to Boolean                var myVal = 1;          document.write("Boolean: " + Boolean(myVal));          

Which event occurs in JavaScript when the dragged element is over the target?

Paul Richard

Paul Richard

Updated on 23-Jun-2020 08:14:21

380 Views

The ondragover event triggers when the dragged element is over the drop target.ExampleYou can try to run the following code to learn how to implement ondragover event in JavaScript −Live Demo                    .drag {             ... Read More

What is the role of the window.history object in JavaScript?

Paul Richard

Paul Richard

Updated on 23-Jun-2020 08:00:51

220 Views

The window.history object is used to go back or to the next page of the web browser. It has the browser's history and comes with the following two methods −history.back − Go to previous URLhistory.next − Go to next URLExampleYou can try to run the following code to learn how ... Read More

How can we have multiple virtuals GENERATED COLUMNS in MySQL table with CREATE TABLE statement?

Paul Richard

Paul Richard

Updated on 22-Jun-2020 14:35:35

284 Views

It is quite possible to add multiple virtual generated columns in a MySQL table. It can be illustrated with the following example as follows −Examplemysql> Create table profit(cost int, price int, profit int AS (price-cost), price_revised int AS (price-2)); Query OK, 0 rows affected (0.73 sec) mysql> Describe profit; ... Read More

1 2 3 4 5 ... 7 Next
Advertisements