Chandu yadav has Published 1163 Articles

Selects every element whose href attribute value contains the substring "java" with CSS

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 06:03:46

542 Views

Use the [attribute*=”value”] selector to select elements whose attribute value contains a specified value.You can try to run the following code to implement the CSS [attribute*="value"] selector,ExampleLive Demo                    [href* = java] {             border: 5px solid orange;             border-radius: 5px;          }                     PHP Tutorial       Java Tutorial    

What is Rule of Five in C++11?

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 05:50:29

535 Views

The rule of five is applied in C++ for resource management. Resource management frees the client from having to worry about the lifetime of the managed object, potentially eliminating memory leaks and other problems in the C++ code. But this management comes at a cost. The Rule of The Big ... Read More

Select elements whose attribute value contains a specified value with CSS

Chandu yadav

Chandu yadav

Updated on 24-Jun-2020 05:49:32

127 Views

To select elements whose attribute value contains a specified value, use the [attribute*=”value”] selector.You can try to run the following code to implement the CSS [attribute*="value"] selector,ExampleLive Demo                    [alt* = "tut"] {             border: 5px solid orange;             border-radius: 5px;          }                              

How to specify the perspective on how 3D elements are viewed

Chandu yadav

Chandu yadav

Updated on 23-Jun-2020 16:08:25

45 Views

Use the CSS perspective property to specify the perspective on how 3D elements are viewed.You can try to run the following code to achieve thisExampleLive Demo                    .demo1 {             position: relative;       ... Read More

Add a blur effect to the shadow with CSS

Chandu yadav

Chandu yadav

Updated on 23-Jun-2020 15:47:46

1K+ Views

To add a blur effect to the shadow, use the box-shadow property.You can try to run the following code to add blur effectExampleLive Demo                    h2 {             box-shadow: 10px 10px 7px green;             height: 50px;             background-color: yellow;          }                     Heading Two       Above heading has shadow.    

volatile Keyword in Java

Chandu yadav

Chandu yadav

Updated on 23-Jun-2020 15:30:10

5K+ Views

The volatile modifier is used to let the JVM know that a thread accessing the variable must always merge its own private copy of the variable with the master copy in the memory.Accessing a volatile variable synchronizes all the cached copied of the variables in the main memory. Volatile can ... Read More

Jagged Array in Java

Chandu yadav

Chandu yadav

Updated on 23-Jun-2020 15:28:13

4K+ Views

Jagged array is a multidimensional array where member arrays are of different size. For example, we can create a 2D array where first array is of 3 elements, and is of 4 elements. Following is the example demonstrating the concept of jagged array.Example Live Demopublic class Tester {    public static ... Read More

Set Bordered Form Inputs with CSS

Chandu yadav

Chandu yadav

Updated on 23-Jun-2020 15:27:59

70 Views

To set border to form inputs, use the CSS border property.You can try to run the following code to add borderExampleLive Demo                    input[type = text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;             border: 3px inset orange;          }                     Fill the below form,                Subject                    Student                    

Java 8 Optional Class

Chandu yadav

Chandu yadav

Updated on 23-Jun-2020 15:24:33

274 Views

Optional is a container object used to contain not-null objects. Optional object is used to represent null with absent value. This class has various utility methods to facilitate code to handle values as 'available' or 'not available' instead of checking null values. It is introduced in Java 8 and is ... Read More

Java program to check occurrence of each vowel in String

Chandu yadav

Chandu yadav

Updated on 23-Jun-2020 15:22:32

2K+ Views

To count occurence of vowels in a string again use Map utility of java as used in calculating occurence of each character in string.Put each vowel as key in Map and put initial value as 1 for each key.Now compare each character with key of map if a character matches ... Read More

Advertisements