Swarali Sree has Published 48 Articles

How to set all the background properties in one declaration with JavaScript DOM?

Swarali Sree

Swarali Sree

Updated on 23-May-2020 11:41:14

157 Views

To set the background in JavaScript, use the background property. It allows you to set the background color, image, position, etc.ExampleYou can try to run the following code to learn how to set all the background properties in a single declaration with JavaScript.Live Demo           ... Read More

How [ ] is converted to String in JavaScript?

Swarali Sree

Swarali Sree

Updated on 23-May-2020 09:55:28

210 Views

Use the String() method in JavaScript to convert to String. You can try to run the following to learn how to convert [ ] to String in JavaScript.ExampleLive Demo           Convert [] to String                var myVal = [];          document.write("String: " + String(myVal));          

What happens to the current MySQL transaction if the session is killed by DBA?

Swarali Sree

Swarali Sree

Updated on 27-Feb-2020 11:09:23

764 Views

Suppose if a session is killed in the middle of a transaction then that current MySQL transaction will be rolled back by MySQL and ended. It means that all the database changes made in the current transaction will be removed. It is called n implicit rollback when the session is ... Read More

In SAP system, how can I find details of Change Request with modification?

Swarali Sree

Swarali Sree

Updated on 25-Feb-2020 11:10:59

815 Views

You can view Transport request that contains detail about your changes by going to T-Code SE37. You have to enter the name of Function Module and click on Utilities → Versions → Version ManagementAlso note that when you don’t put the changes in $TMP package, the system will ask you ... Read More

Where and how can I create a private constructor in Java?

Swarali Sree

Swarali Sree

Updated on 25-Feb-2020 10:17:06

388 Views

We can use a private contractor in a Java while creating a singleton class. The Singleton's purpose is to control object creation, limiting the number of objects to only one. Since there is only one Singleton instance, any instance fields of a Singleton will occur only once per class, just ... Read More

How to truncate a file in Java?

Swarali Sree

Swarali Sree

Updated on 20-Feb-2020 09:55:21

2K+ Views

The flush() method of the FileWriter class flushes the contents of the file. You can use this method to truncate a file.Exampleimport java.io.File; import java.io.FileWriter; public class FileTruncate {    public static void main(String args[]) throws Exception {       File file = new File("myData");       ... Read More

How to capture divide by zero exception in Java?

Swarali Sree

Swarali Sree

Updated on 20-Feb-2020 06:50:45

2K+ Views

When you divide a number by zero an Arithmetic Exception number is thrown.ExampleLive Demopublic class DividedByZero {    public static void main(String args[]) {       int a, b;       try {          a = 0;          b = 54/a;   ... Read More

Hiding SAP ABAP table control column

Swarali Sree

Swarali Sree

Updated on 18-Feb-2020 06:51:09

4K+ Views

You can use the structure CXTAB_CONTROL that has the following components:INVISIBLE C(1) Flag (X or blank) for visibility of entire table control.You can use sample program: RSDEMO02 that allow you to modify properties of table control and view the results.When you use this Table control INVISIBLE, this changes the content ... Read More

Getting number of rows in table in an itab in SAP

Swarali Sree

Swarali Sree

Updated on 18-Feb-2020 05:40:41

1K+ Views

There is a function “LINES” that can be used to get the number of lines in a table. Here is the code that can be used −DESCRIBE TABLE LINES VR1The variable VR1 will contain the number of rows.

What does a semicolon do after a C++ class name?

Swarali Sree

Swarali Sree

Updated on 11-Feb-2020 07:51:53

517 Views

If you have statements like −Class Person;This is a forward declaration. It lets the following code know that there is are classes with the name Person. This satisfies the compiler when it sees these names used. Later the linker will find the definition of the classes.

Advertisements