Sai Nath has Published 24 Articles

how to convert Object array to String array in java

Sai Nath

Sai Nath

Updated on 30-Jul-2019 22:30:21

3K+ Views

As list.toArray() returns an Object[], it can be converted to String array by passing the String[] as parameter. See the example below.import java.util.ArrayList; import java.util.List; public class Tester { public static void main(String[] args) { List data = new ArrayList(); ... Read More

Why we do not import a package while we use any string function?

Sai Nath

Sai Nath

Updated on 30-Jul-2019 22:30:21

717 Views

The String class belongs to the java.lang package. This is the default package of the Java language therefore it is not mandatory to import it to use its classes.

Immutable String in Java

Sai Nath

Sai Nath

Updated on 30-Jul-2019 22:30:21

478 Views

In Java immutable objects are those whose data can’t be changed or modified (once modified). String class is immutable i.e. once we create a String object its data cannot be modified.

Calling a JAVA method through JavaScript in SAPUI5 project

Sai Nath

Sai Nath

Updated on 30-Jul-2019 22:30:20

106 Views

Create a REST service hosted on a server and place java method inside it. Now you can call this REST service from a SAPUI5 application using AJAX by passing required parameters.

Advertisements