Articles on Trending Technologies

Technical articles with clear explanations and examples

What is the difference between /* */ and /** */ comments in Java?

vanithasree
vanithasree
Updated on 11-Mar-2026 856 Views

Multiline comments (/* */) are used to comment multiple lines in the source code. Example public class CommentsExample { /* Following is the main method here, We create a variable named num. And, print its value * */ public static void main(String args[]) { //Declaring a variable named num int num = 1; ...

Read More

Usage of Bootstrap previous class to left align the links

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

Use the .previous class in Bootstrap to left align the links. You can try to run the following code to implement the .previous class −Example           Bootstrap Example                                 Answers                             ← Older             Newer →              

Read More

What are valid identifiers in Java?

seetha
seetha
Updated on 11-Mar-2026 914 Views

A valid identifier in java – Must begin with a letter (A to Z or a to z), currency character ($) or an underscore (_). Can have any combination of characters after the first character. Cannot be a keyword. Example Following example shows various possible identifiers used to declare a variable in Java. public class VariableTest { public static void main(String args[]) { // Declaring a variable named num int num = 1; int _num = ...

Read More

Bootstrap Grid for multiple devices

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

The following is an example showing the usage of Grid for multiple devices −Example           Bootstrap Example                                          Hello, world!                                      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do                   eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut         ...

Read More

Offset Columns in Bootstrap

George John
George John
Updated on 11-Mar-2026 6K+ Views

An offset is used to push columns over for more spacing. To use offsets on large displays, use the .col-md-offset-* classes. You can try to run the following code to learn how to work with offset columns in Bootstrap −Example           Bootstrap Example                                          Heading One                                      This is demo text. This is demo text.                                

Read More

Nesting Columns in Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 2K+ Views

To nest your content with the default grid, add a new .row and set of .col-md-* columns within an existing .col-md-* column. You can try to run the following code to learn how to implement nesting columns in Bootstrap −Example           Bootstrap Example                                          Heading                                      Heading                This is demo text.                                        Heading                This is demo text.                                                        This is box 1.                                                          This is box 2.                                                                                          This is box 3.                                                          This is box 4.                                                                  

Read More

Bootstrap .pagination class

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

Use the .pagination class to get the pagination on your page.You can try to run the following code to implement the .pagination class −Example           Bootstrap Example                                 Coding Examples       The following are the examples:                «          Code1          Code2          Code3          »          

Read More

How do I write class names in Java?

usharani
usharani
Updated on 11-Mar-2026 5K+ Views

While writing class names you need to keep the following points in mind. You shouldn’t use predefined or existing class names as the name of the current class. You shouldn’t use any Java keywords as class name (with the same case). The First letter of the class name should be capital and remaining letters should be small (mixed case). class Sample Likewise, first letter of each word in the name should be capital an remaining letters should be small. class Test Keeping interface names simple and descriptive is suggestable. Better not ...

Read More

Bootstrap btn-toolbar class

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

Set Button Toolbar in Bootstrap using the btn-toolbar class.You can try to run the following code to implement the btn-toolbar class −Example           Bootstrap Example                                                       MCA             BCA                                 MBA             MS                    

Read More

What is the difference between method hiding and method overriding in Java?

Sreemaha
Sreemaha
Updated on 11-Mar-2026 2K+ Views

When super class and the sub class contains same instance methods including parameters, when called, the super class method is overridden by the method of the sub class. WIn this example super class and sub class have methods with same signature (method name and parameters) and when we try to invoke this method from the sub class the sub class method overrides the method in super class and gets executed. Example class Super{ public void sample(){ System.out.println("Method of the Super class"); } } public class MethodOverriding extends ...

Read More
Showing 30211–30220 of 61,297 articles
Advertisements