Articles on Trending Technologies

Technical articles with clear explanations and examples

Tutorix - AI Tutor

Bootstrap class pull-left

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 682 Views

Float an element to the left with class pull-left.You can try to run the following code to implement the pull-left class −Example           Bootstrap Example                                          Float to left          

Read More

Add information to the table row with Bootstrap

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

To add information to the table row in Bootstrap, use the .info class in Bootstrap −Example           Bootstrap Example                                          Rank of Cricketers          The following are the rank of cricketers:                                                         Cricketer                   Rank                                                                           Virat                   1                                                   David                   2                                                   Rohit                   3                                                   Kenn                   4                                                   Steve                   5                                                

Read More

Display flex items vertically in Bootstrap 4

Kristi Castro
Kristi Castro
Updated on 11-Mar-2026 344 Views

To display flex items vertically, use the flex-column class in Bootstrap 4 −Now set the flex-items in it −   One   Two   Three   Four   Five Let us see an example to learn how to learn how to display flex-column class −   Example       Bootstrap Example                             Example of Flex Column     Stating the usage of flex column class:           One       Two       Three       Four       Five      

Read More

Bootstrap well-lg class

Anvi Jain
Anvi Jain
Updated on 11-Mar-2026 235 Views

Change the size of well using the optional classes such as, well-lg or well-lg. These classes are used in conjunction with .well class.You can try to run the following code to implement well-lg class in Bootstrap −Example           Bootstrap Example                                 This has more space!       This has less space!    

Read More

Bootstrap 4 .flex-*-column class

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

Use the .flex-*- column class in Bootstrap to show flex items vertically on different screen sizes:Set it vertically on small, medium, large, etc screen size. Let us see it on small and medium screen size:Small Screen SizeFlex on different screen size (Small)   One   Two   Three Medium Screen SizeFlex on different screen size (Medium)   One   Two   Three The following is an example implementing what I have shown above the usage of flex-*-column −Example       Bootstrap Example                   ...

Read More

Should a constructor always have the same name as the class in java?

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

Yes, the constructor should always have the same name as the class. Constructor looks like method but it is not. It does not have a return type and its name is same as the class name. Mostly it is used to instantiate the instance variables of a class. If the programmer doesn’t write a constructor the compiler writes a constructors on his behalf. Example public class Sample{ public Sample(){ System.out.println("This is a constructor"); } public static void main(String args[]){ Sample obj = new Sample(); } } Output This is a constructor

Read More

What are final, abstract, synchronized non-access modifiers in Java?

Jai Janardhan
Jai Janardhan
Updated on 11-Mar-2026 571 Views

The abstract keyword is used to declare methods abstract methods and abstract classes. Once a method is declared abstract we should not specify body for those. And once a class is declared abstract it cannot be instantiated. Example abstract class Employee { private String name; private String address; private int number; public Employee(String name, String address, int number) { System.out.println("Constructing an Employee"); this.name = name; ...

Read More

How to Initialize and Compare Strings in Java?

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

You can compare Strings using compareTo() method or, equals() method or, or == operator. Following example demonstrates how to initialize and compare strings in Java. Example public class StringDemo { public static void main(String[] args) { String str1 = "tutorials"; String str2 = "point"; // comparing str1 and str2 int retval = str1.compareTo(str2); // prints the return value of the comparison if (retval < 0) { System.out.println("str1 is greater than str2"); } else if (retval == 0) { System.out.println("str1 is equal to str2"); } else { System.out.println("str1 is less than str2"); } } } Output str1 is less than str2

Read More

What does synchronized modifier do in Java?

Rishi Raj
Rishi Raj
Updated on 11-Mar-2026 1K+ Views

The synchronized keyword used to indicate that a method can be accessed by only one thread at a time. The synchronized modifier can be applied with any of the four access level modifiers. Example public class TestThread { public static Object Lock1 = new Object(); public static Object Lock2 = new Object(); public static void main(String args[]) { ThreadDemo1 T1 = new ThreadDemo1(); ThreadDemo2 T2 = new ThreadDemo2(); ...

Read More

What is the class "class" in Java?

seetha
seetha
Updated on 11-Mar-2026 662 Views

The Java.lang.Class class instance represent classes and interfaces in a running Java application. It has no public constructor. Example Following is the example demonstrates the usage of the class Class. The java.lang.Class.getCanonicalName() method returns the canonical name of the underlying class as defined by the Java Language Specification. It returns null if the class does not have a canonical name. import java.lang.*; public class ClassDemo { public static void main(String[] args) { ClassDemo c = new ClassDemo(); Class cls = c.getClass(); ...

Read More
Showing 30171–30180 of 61,298 articles
Advertisements