Jai Janardhan

Jai Janardhan

41 Articles Published

Articles by Jai Janardhan

Page 2 of 5

How to create a table caption with JavaScript DOM?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 683 Views

To create a table caption using JavaScript DOM, use the createCaption() method on a table element. This method adds a element to the table, which displays as a title above the table content. Syntax table.createCaption() Return Value Returns the newly created element, which can be styled or modified with text content. Example Here's how to create a table caption dynamically using JavaScript: function captionFunc(x) { ...

Read More

How to set the favicon size in CSS rather than HTML attributes?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 3K+ Views

A favicon is a small icon visible on the web browser tab, just before the page title. It is generally a logo with a smaller size representing your website's brand. Setting Favicon Size You cannot set the favicon size using CSS properties. The web standards do not support controlling favicon dimensions through CSS. Instead, you must specify the size using HTML attributes in the element. Syntax Example: Adding Favicon with Size Attribute The following example shows how to properly add a favicon with specified dimensions using HTML attributes − ...

Read More

Finding and modifying Service File for SAP system in root directory

Jai Janardhan
Jai Janardhan
Updated on 13-Mar-2026 855 Views

You can find the SAP system service file in %SystemRoot%\system32\drivers\etc where %SystemRoot% is generally your C:\ drive. This file is commonly known as the hosts file or services file, which contains network service definitions and host mappings for SAP system connections. Modifying the Service File To modify this file, you can right-click and open this file in Edit mode using Notepad. To perform this operation, you must have Administrator rights in the system, as this file is protected by Windows security settings. ...

Read More

Using Breakpoint in SAP system

SAP
Jai Janardhan
Jai Janardhan
Updated on 13-Mar-2026 276 Views

In SAP systems, breakpoints are used to pause program execution at specific points during debugging. There are two main ways to implement breakpoints in your ABAP code. Syntax For user-specific breakpoints, use the following syntax − BREAK username. If you want to implement it for all users, you can use − BREAK-POINT. User-Specific Breakpoint The BREAK username statement creates a breakpoint that only activates when the ...

Read More

Viewing field names or tables names of the forms in SAP Business One

Jai Janardhan
Jai Janardhan
Updated on 13-Mar-2026 1K+ Views

It is possible that the older version of SAP B1 may not show you all the fields of all the forms. If you have the latest version, you should be able to see the data sources that are mapped to given field. You need to open the forms in SAP Business One Studio. There are a couple of methods to view fields. Method 1: Using SAP Business One Studio Integration This method allows you to directly edit forms from within SAP Business One using the integrated Visual Studio environment ...

Read More

Demonstrate static variables, methods and blocks in Java

Jai Janardhan
Jai Janardhan
Updated on 11-Mar-2026 9K+ Views

The static variable is a class level variable and it is common to all the class objects i.e. a single copy of the static variable is shared among all the class objects.A static method manipulates the static variables in a class. It belongs to the class instead of the class objects and can be invoked without using a class object.The static initialization blocks can only initialize the static instance variables. These blocks are only executed once when the class is loaded.A program that demonstrates this is given as follows:Examplepublic class Demo {    static int x = 10;    static ...

Read More

How to use the asList() method of the Arrays class to create a Vector object

Jai Janardhan
Jai Janardhan
Updated on 11-Mar-2026 2K+ Views

A Vector can be created from an Array using the java.util.Arrays.asList() method.A program that demonstrates this is given as follows:Exampleimport java.util.Arrays; import java.util.Vector; public class Demo {    public static void main(String args[]) {       Integer[] arr = { 3, 1, 9, 6, 4, 8, 7 };       Vector vec = new Vector(Arrays.asList(arr));       System.out.println("The Vector elements are: " + vec);    } }OutputThe Vector elements are: [3, 1, 9, 6, 4, 8, 7]Now let us understand the above program.The Integer Array arr[] is defined. Then a Vector is created using the Arrays.asList() ...

Read More

Creating a Multilevel Inheritance Hierarchy in Java

Jai Janardhan
Jai Janardhan
Updated on 11-Mar-2026 13K+ Views

Inheritance involves an object acquiring the properties and behaviour of another object. So basically, using inheritance can extend the functionality of the class by creating a new class that builds on the previous class by inheriting it.Multilevel inheritance is when a class inherits a class which inherits another class. An example of this is class C inherits class B and class B in turn inherits class A.A program that demonstrates a multilevel inheritance hierarchy in Java is given as follows:Exampleclass A {    void funcA() {       System.out.println("This is class A");    } } class B extends A ...

Read More

What is Default access level in Java?

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

The default access level is available when no access level is specified. All the classes, data members, methods etc. which have the default access level can only be accessed inside the same package.A program that demonstrates the default access level in Java is given as follows:Exampleclass Employee {    int empno;    String name;    void insert(int e, String n) {       empno = e;       name = n;    }    void display() {       System.out.println("Employee Number: " + empno);       System.out.println("Name: " + name);    } } public class Demo ...

Read More

Loop through the Vector elements using an Iterator in Java

Jai Janardhan
Jai Janardhan
Updated on 11-Mar-2026 2K+ Views

An Iterator can be used to loop through the Vector elements. The method hasNext( ) returns true if there are more elements in the Vector and false otherwise. The method next( ) returns the next element in the Vector and throws the exception NoSuchElementException if there is no next element.A program that demonstrates this is given as follows −Exampleimport java.util.Iterator; import java.util.Vector; public class Demo {    public static void main(String args[]) {       Vector vec = new Vector();       vec.add(4);       vec.add(1);       vec.add(3);       vec.add(9);       ...

Read More
Showing 11–20 of 41 articles
Advertisements