Sharon Christine has Published 413 Articles

What does the method fill(obj[], object val) do?

Sharon Christine

Sharon Christine

Updated on 13-Mar-2020 04:56:12

204 Views

The fill(Object[] a, Object val) method of the java.util.Arrays class assigns the specified Object reference to each element of the specified array of Objects.Exampleimport java.util.Arrays; public class ArrayDemo {    public static void main(String[] args) {       Object arr[] = new Object[] {10.5, 5.6, 4.7, 2.9, 9.7};     ... Read More

What is meant by a multithreaded program in Java?

Sharon Christine

Sharon Christine

Updated on 13-Mar-2020 04:54:40

317 Views

A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources specially when your computer has multiple CPUs.Multi-threading enables you to write in a way where multiple activities can proceed ... Read More

Maintaining print program, routines, and forms in SAP in QM02

Sharon Christine

Sharon Christine

Updated on 12-Mar-2020 12:47:58

509 Views

You configure print program and output controls in IMG. Run T-Code: SPRO →Search for Output control or Print controlCheck Shop Papers for Notification types and mention Shop Papers has the ABAP Form and print Program as shown below -

Store data in format of XML string in SAP HANA system

Sharon Christine

Sharon Christine

Updated on 12-Mar-2020 12:45:14

591 Views

In older SAP HANA versions, no XML functions were provided. With HANA 2.0, these two functions are provided- XMLEXTRACT and XMLEXTRACTVALUE for extracting XML string in SAP HANA.Use of XMLEXTRACTXMLEXTRACT(, [, ])Syntax to use −Specifies an XML document of type CLOB, NCLOB, VARCHAR, or NVARCHAR.Specifies an XPath expression of ... Read More

How can we create a MySQL view by using data from multiple tables?

Sharon Christine

Sharon Christine

Updated on 04-Mar-2020 06:29:22

2K+ Views

MySQL UNION operator can combine two or more result sets hence we can use UNION operator to create a view having data from multiple tables. To understand this concept we are using the base tables ‘Student_info’ and ‘Student_detail’ having the following data −mysql> Select * from Student_info; +------+---------+------------+------------+ | id ... Read More

How to declare, create, initialize and access an array in Java?

Sharon Christine

Sharon Christine

Updated on 25-Feb-2020 10:56:19

340 Views

You can declare an array just like a variable −int myArray[];You can create an array just like an object using the new keyword −myArray = new int[5];You can initialize the array by assigning values to all the elements one by one using the index −myArray [0] = 101; myArray [1] ... Read More

What does the method sort(obj[] a) do in java?

Sharon Christine

Sharon Christine

Updated on 25-Feb-2020 09:28:44

121 Views

The sort(Object[]) method of the java.util.Arrays class sorts the specified array of Objects into ascending order according to the natural ordering of its elements.Exampleimport java.util.Arrays; public class ArrayDemo {    public static void main(String[] args) {       Object ob[] = {27, 11, 44};       for (Object ... Read More

How to use images with HTML5 canvas?

Sharon Christine

Sharon Christine

Updated on 25-Feb-2020 06:21:01

454 Views

The HTML5 tag is used to draw graphics, animations, etc. using scripting. It is a new tag introduced in HTML5. To use images with HTML5 canvas, use the drawImage() method. This method draws the given image onto the canvas.You can try to run the following code to learn how ... Read More

How to use the instanceof operator in Java?

Sharon Christine

Sharon Christine

Updated on 20-Feb-2020 10:07:53

253 Views

The instanceof operator is used only for object reference variables. The operator checks whether the object is of a particular type (class type or interface type).Examplepublic class Test {    public static void main(String args[]) {       String name = "James";       boolean result = name instanceof String;       System.out.println(result);    } }Outputtrue

How to use isAlive() method of Thread class in Java?

Sharon Christine

Sharon Christine

Updated on 20-Feb-2020 10:00:55

370 Views

The isAlive() method of the Thread class returns true if the thread is alive, which is anytime after the thread has been started but before it runs to completion.Exampleclass first implements Runnable {    public void run() {       try {          for(int i=0; i

Advertisements