Sai Nath has Published 15 Articles

How can we copy data with some condition/s from existing MySQL table?

Sai Nath

Sai Nath

Updated on 29-Jan-2020 05:15:52

298 Views

As we know that we can copy the data and structure from an existing table by CTAS script. If we want to copy data with some condition/s then we need to use WHERE clause with CTAS script. Consider the example below −mysql> Create table EMP_BACKUP2 AS SELECT * from EMPLOYEE ... Read More

how to convert Object array to String array in java

Sai Nath

Sai Nath

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

5K+ 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

977 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

819 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

254 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