Articles on Trending Technologies

Technical articles with clear explanations and examples

Private and final methods in Java Programming

Vikyath Ram
Vikyath Ram
Updated on 11-Mar-2026 8K+ Views

In Java private methods are the methods having private access modifier and are restricted to be access in the defining class only and are not visible in their child class due to which are not eligible for overridden. However, we can define a method with the same name in the child class and could access in parent class.Like private methods final methods in Java are the methods having final non-access modifier instead of private and are again restricted to be accessed in the defining class only and are not visible in their child class due to which are not eligible ...

Read More

Create BigInteger from byte array in Java

Samual Sam
Samual Sam
Updated on 11-Mar-2026 2K+ Views

BigInteger class provides operations for modular arithmetic, GCD calculation, primality testing, prime generation, bit manipulation, and a few other miscellaneous operations.Let’s say the following is our byte array −byte[] arr = new byte[] { 0x1, 0x00, 0x00 };We will now convert them to BigInteger −BigInteger bInteger = new BigInteger(arr);The following is an example that creates BigInteger from a byte array in Java.Exampleimport java.math.BigInteger; public class Demo {    public static void main(String[] argv) throws Exception {       byte[] arr = new byte[] { 0x1, 0x00, 0x00 };       BigInteger bInteger = new BigInteger(arr);       System.out.println(bInteger);    } }Output65536

Read More

Display text inside an element in a smaller font size with Bootstrap

Rishi Rathor
Rishi Rathor
Updated on 11-Mar-2026 284 Views

Use the .initialism class in Bootstrap to show text inside an element. This allows setting smaller font size in Bootstrap −Example           Bootstrap Example                                          Cricket          The ICC governs cricket boards.          The ICC was founded as the Imperial Cricket Conference in 1909          Above the ICC abbreviation text is displayed with a smaller font.          

Read More

border-top-0 class in Bootstrap 4

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 360 Views

Use the border-top-0 class in Bootstrap 4 to remove the top border.Set the border-top-0 class −   Rectangle is missing the TOP border. Let us see an example to implement the border-top-0 class −Example       Bootstrap Example                             .mystyle {       width: 350px;       height: 170px;       margin: 10px;     }             Heading Two           Rectangle is missing the TOP border.      

Read More

Set orange border on an element in Bootstrap to indicate danger

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 255 Views

To set orange border to an element, use the border-warning class −   Danger (Orange border) Set the style for the element − .mystyle {   width: 200px;   height: 100px;   margin: 10px; } Let us see an example to implement the border-warning class in Bootstrap −Example       Bootstrap Example                             .mystyle {       width: 200px;       height: 100px;       margin: 10px;     }             The following are two Rectangles:     Danger (Orange border)  

Read More

Set a white border to an element in Bootstrap

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 227 Views

Use the border-white class in Bootstrap 4 to set white border to an element.   This has white border The test class above styles the element as shown below − .test {   width: 120px;   height: 100px;   margin: 10px;   background: blue; } Let us see an example to implement the border-white class in Bootstrap −Example       Bootstrap Example                             .test {       width: 120px;       height: 100px;       margin: 10px;       background: blue;     }               Two Rectangles     This has white border     This has orange border  

Read More

Hide content with Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 455 Views

To hide content with Bootstrap, use the .hidden class in Bootstrap. You can try to run the following code to hide content:Example           Bootstrap Example                                                       Content is visible.                                 Content is hidden.                    

Read More

sr-only Bootstrap class

George John
George John
Updated on 11-Mar-2026 476 Views

Hide an element to all devices except screen readers with the class .sr-only.You can try to run the following code to implement the sr-only Bootstrap −Example           Bootstrap Example                                                                      Email address                                                        Password                                                

Read More

Bootstrap 4 Button .btn-outline-dark class

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 403 Views

Use the .btn-outline-dark class in Bootstrap to set dark outline on a button.The following is an example of a button with dark outline −Set the above outline to the button, using the btn-outline-dark class as shown below −   Submit You can try to run the following code to implement the btn-outline-dark class −Example       Bootstrap Example                               Bootstrap 4     Learning  btn-outline-dark class usage:     Submit  

Read More

Create a padded grey box with rounded corners in Bootstrap

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 804 Views

Use the .jumbotron class to create a padded grey box with rounded corners.You can try to run the following code to implement .jumbotron class in Bootstrap.Example           Bootstrap Example                                                       Welcome to my website.             This is demo text.                            More                                

Read More
Showing 29781–29790 of 61,297 articles
Advertisements