Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by karthikeya Boyini
Page 81 of 143
Bootstrap .has-error class
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 MoreCoupling in Java
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 MoreBootstrap .btn class
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 MoreDisable a pagination link with Bootstrap
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 MoreCopyOnWriteArrayList Class in Java
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 MoreBootstrap .btn-lg class
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 MoreCalling a method using null in Java
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 MoreBootstrap progress class
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 Moreclone() method in Java
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 MoreForce an element to be hidden with Bootstrap
Use the .hidden class in Bootstrap to force an element to be hiddenExample Bootstrap Example This is visible. This is hidden.
Read More