Monica Mona has Published 85 Articles

How -Infinity is converted to Number in JavaScript?

Monica Mona

Monica Mona

Updated on 23-May-2020 09:30:39

135 Views

Use the Number() method in JavaScript to convert to Number. You can try to run the following code to learn how to convert -Infinity Number in JavaScript.ExampleLive Demo           Convert -Infinity to Number                var myVal = -Infinity;          document.write("Number : " + Number(myVal));           OutputConvert -Infinity to Number Number : -Infinity

Can anyone help me about integration of Hybris with SAP ERP?

Monica Mona

Monica Mona

Updated on 26-Feb-2020 06:12:28

52 Views

Many companies have an on-premise solution that contains master data, customer and product information, and pricing data. Details from SAP ECC system is required when opportunities are won and the sales order is generated.Following are the key reasons why an integration is required with SAP ERP and CRM system −To ... Read More

What is the base class for errors and exceptions in Java?

Monica Mona

Monica Mona

Updated on 25-Feb-2020 12:25:55

2K+ Views

All exception classes are subtypes of the java.lang.Exception class. The Exception class is a subclass of the Throwable class. Other than the Exception class there is another subclass called Error which is derived from the Throwable class.

What is Deserialization in Java?

Monica Mona

Monica Mona

Updated on 25-Feb-2020 10:30:46

177 Views

After a serialized object has been written into a file, it can be read from the file and Deserialized that is, the type information and bytes that represent the object and its data can be used to recreate the object in memory.Exampleimport java.io.*; public class DeserializeDemo {    public ... Read More

What are file operations in Java?

Monica Mona

Monica Mona

Updated on 25-Feb-2020 10:23:05

151 Views

File class provides various methods to perform respective file operations.canRead(): This method tests whether the application can read the file denoted by this abstract pathname. It returns true if and only if the file specified by this abstract pathname exists and can be read by the application; false otherwise.canWrite(): This ... Read More

Which method must be implemented by all threads in Java?

Monica Mona

Monica Mona

Updated on 25-Feb-2020 10:22:01

791 Views

While creating a thread class we must override the run() method of the Thread class. This method provides an entry point for the thread and you will put your complete business logic inside this method.Exampleclass ThreadDemo extends Thread {    private String threadName;    ThreadDemo( String name) {   ... Read More

SAP interfaces throws an error message "Completion Code 2, Reason 2161, MQJMS2002”

Monica Mona

Monica Mona

Updated on 24-Feb-2020 09:22:46

104 Views

As per my understanding,  the only way to get the MQ jar files or the MQ C/C++ library files onto a system is by installing any of the below:Using WebSphere MQ product orUsing WebSphere MQ Client SupportPacsYou can find jar file under WebSphere MQ V7.0 Clients SupportPacks. The install files ... Read More

What does the method equals(int[] a1, int[] a2) do in java?

Monica Mona

Monica Mona

Updated on 20-Feb-2020 12:46:02

189 Views

The equals(int[] a, int[] a2) method of java.util.Arrays returns true if the two specified arrays of integers are equal to one another. Two arrays are equal if they contain the same elements in the same order. Two array references are considered equal if both are null.Exampleimport java.util.Arrays; public class ArrayDemo {   ... Read More

What does the method sort(obj[] a, int fromIndex, int toIndex) do in java?

Monica Mona

Monica Mona

Updated on 20-Feb-2020 12:34:40

58 Views

The java.util.Arrays.sort(Object[] a, int fromIndex, int toIndex) method sorts the specified range of the specified array of objects into ascending order, according to the natural ordering of its elements. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive.Exampleimport java.util.Arrays; public class ArrayDemo {   ... Read More

How to check the Existence of a File using Java?

Monica Mona

Monica Mona

Updated on 20-Feb-2020 08:27:51

90 Views

The file class provides a method named exists() which returns true if the file specified in the current file object exists.ExampleLive Demoimport java.io.File; public class FileHandling {    public static void main(String args[]) {       File file = new File("samplefile");       if(file.exists()) {   ... Read More

Previous 1 ... 3 4 5 6 7 ... 9 Next
Advertisements