karthikeya Boyini

karthikeya Boyini

1,421 Articles Published

Articles by karthikeya Boyini

Page 81 of 143

Bootstrap .has-error class

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 3K+ Views

The has-error class allows you to set error for input.You can try to run the following code to implement the has-error classExample           Bootstrap Example                                                                      Input with error                                                                        

Read More

Coupling in Java

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 5K+ Views

Coupling refers to the usage of an object by another object. It can also be termed as collaboration. This dependency of one object on another object to get some task done can be classified into the following two types −Tight coupling - When an object creates the object to be used, then it is a tight coupling situation. As the main object creates the object itself, this object can not be changed from outside world easily marked it as tightly coupled objects.Loose coupling - When an object gets the object to be used from the outside, then it is a loose coupling ...

Read More

Bootstrap .btn class

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

Use the .btn class in Bootstrap to add a button to the web page.You can try to run the following code to implement a .btn classExample           Bootstrap Example                                             Result    

Read More

Disable a pagination link with Bootstrap

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 1K+ Views

Use the .disabled class in Bootstrap with the .pagination to disable a pagination link.You can try to run the following code to disable pagination linkExample           Bootstrap Example                                              Java Tutorial          The following are the lessons of Java Tutorial:                       1             2             3             4             5             6             7             8                    

Read More

CopyOnWriteArrayList Class in Java

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 5K+ Views

Class declarationpublic class CopyOnWriteArrayList    extends Object implements List, RandomAccess, Cloneable, SerializableCopyOnWriteArrayList is a thread-safe variant of ArrayList where operations which can change the ArrayList (add, update, set methods) creates a clone of the underlying array.CopyOnWriteArrayList is to be used in a Thread based environment where read operations are very frequent and update operations are rare.Iterator of CopyOnWriteArrayList will never throw ConcurrentModificationException.Any type of modification to CopyOnWriteArrayList will not reflect during iteration since the iterator was created.List modification methods like remove, set and add are not supported in the iteration. This method will throw UnsupportedOperationException.null can be added to the ...

Read More

Bootstrap .btn-lg class

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

To make a large button, use the .btn-lg class in Bootstrap.You can try to run the following code to implement the btn-lg classExample           Bootstrap Example                                                Large button          

Read More

Calling a method using null in Java

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

When a method is invoked on a null reference, it throws NullPointerException but in case of the static method, we can make it possible using cast expression. See the example below −Examplepublic class Tester {    public static void display(){       System.out.println("display");    }    private void print() {       System.out.println("print");    }    public static void main(String[] args) {       //Scenario 1:       //Calling a method on null reference       //causes NullPointerException       try {          Tester test = null;       ...

Read More

Bootstrap progress class

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

Use the .progress class in Bootstrap to create a progress bar. The class is a container for progress bars.You can try to run the following code to implement progress class in BootstrapExample           Bootstrap Example                                                       90% Complete                    

Read More

clone() method in Java

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 1K+ Views

Java provides an assignment operator to copy the values but no operator to copy the object. Object class has a clone method which can be used to copy the values of an object without any side-effect. Assignment operator has a side-effect that when a reference is assigned to another reference then a new object is not created and both the reference point to the same object. This means if we change the value in one object then same will reflect in another object as well. clone() method handles this problem. See the below example.Examplepublic class Tester {    public static ...

Read More

Force an element to be hidden with Bootstrap

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

Use the .hidden class in Bootstrap to force an element to be hiddenExample           Bootstrap Example                                 This is visible.       This is hidden.    

Read More
Showing 801–810 of 1,421 articles
« Prev 1 79 80 81 82 83 143 Next »
Advertisements