Articles on Trending Technologies

Technical articles with clear explanations and examples

Assigning long values carefully in java to avoid overflow

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 442 Views

In case of having the operation of integer values in Java, we need to be aware of int underflow and overflow conditions. Considering the fact that in Java, The int data type is a 32-bit signed two's complement integer having a minimum value of -2, 147, 483, 648 and a maximum value of 2, 147, 483, 647. If a value goes beyond the max value possible, the value goes back to minimum value and continue from that minimum. In a similar way, it happens for a value less than the min value. Consider the following example.Examplepublic class Tester {   ...

Read More

Bootstrap alert-danger class

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 489 Views

The alert-danger class in Bootstrap is used to set danger action.You can try to run the following code to implement the alert-danger class in Bootstrap −Example           Bootstrap Example                                 This is danger action!    

Read More

Set blue outlined Bootstrap 4 Button

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

To set blue outlined Bootstrap 4 button, use the .btn-outline-primary class.Add a blue outline to a button −   Blue outline You can try to run the following code to implement the btn-outline-primary class in Bootstrap −Example       Bootstrap Example                             Bootstrap 4     You can see blue outline below:     Blue outline

Read More

Define the style for the body of the modal with Bootstrap

Nancy Den
Nancy Den
Updated on 11-Mar-2026 340 Views

Use the .modal class to define the style for the body of the modal.You can try to run the following code to implement the .modal class −Example           Bootstrap Example                                          Website Information          Info                                                                              ×                      Warning                                                          If JavaScript isn't enabled in your web browser, then you may not be able to see this information correcty.                                                          Close                                                                  

Read More

Bootstrap 4 .rounded-circle class

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 9K+ Views

To create a rounded circle with Bootstrap, use the rounded-circle class.Add the rounded-circle class in the Above, we also have a test class, which is a CSS class to style the circle −.test {   width: 270px;   height: 320px;   background-color: yellow; }You can try to run the following code to implement the rounded-circle class in Bootstrap 4 −Example      Bootstrap Example                             .test {       width: 350px;       height: 320px;       background-color: yellow;     }             Circle     We have a circle below:      

Read More

Bootstrap 4 Button .btn-outline-light class

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

Use the btn-outline-light class in Bootsrap 4 to set light grey outlined button.To include it on the web page, set it as a class in the element as shown in the following code snippet −Let us see an example to implement the btn-outline-light class −Example       Bootstrap Example                         Demo Button   Below is a light grayed outline button:       Sample  

Read More

Bootstrap 4 .card-text class

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 471 Views

Use the card-text class in Bootstrap to set text in a card. Add this class in your web page  by including it as any other class in an element, for example, tag in the below given code snippet −   Demo text in a card The text in the card is added inside the class using the card-text class −       Demo Title     Demo text in a card   You can try to run the following code to implement the card-text class −Example       Bootstrap Example                         Demo             Demo Title       Demo text in a card      

Read More

Align gathered items from the start in Bootstrap 4

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

To align gathered items from the start, use the .align-content-start class in Bootstrap 4.Set the items as shown below −   Work 1   Work 2   Work 3   Work 4   Work 5   Work 6 You can try to run the following code to implement the align-content-start in Bootstrap 4 −Example       Bootstrap Example                             Align Flex Items           Work 1       Work 2       Work 3       Work 4       Work 5       Work 6       Work 7       Work 8       Work 9       Work 10       Work 11       Work 12       Work 13       Work 14        

Read More

Assigning values to static final variables in java

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

In java, a non-static final variable can be assigned a value at two places.At the time of declaration.In constructor.Examplepublic class Tester {    final int A;    //Scenario 1: assignment at time of declaration    final int B = 2;    public Tester() {       //Scenario 2: assignment in constructor       A = 1;    }    public void display() {       System.out.println(A + ", " + B);    }    public static void main(String[] args) {               Tester tester = new Tester();     ...

Read More

Segment button dropdowns in Bootstrap input groups

Jennifer Nicholas
Jennifer Nicholas
Updated on 11-Mar-2026 315 Views

To segment button dropdowns in input groups, use the same general style as the dropdown button, but add a primary action along with the dropdown as can be seen in the following example:Example           Bootstrap Example                                                                                                                                       Subject                                                                                         Toggle Dropdown                                                                                       Maths                               Science                                                                                                                                                                                                                                                                            Course                                                                                                        Toggle Dropdown                                                                            BCA                            MCA                                                                                                              

Read More
Showing 29841–29850 of 61,299 articles
Advertisements