Sharon Christine has Published 436 Articles

JavaTuples setAt0() method for Triplet class

Sharon Christine

Sharon Christine

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

73 Views

The setAt0() method is used to set the Triplet value in JavaTuples and a copy with new value at the specified index i.e. index 0 here.Let us first see what we need to work with JavaTuples. To work with Triplet class in JavaTuples, you need to import the following package ... Read More

DecimalFormat("0.######E0") in Java

Sharon Christine

Sharon Christine

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

65 Views

DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers. Let us set DecimalFormat("0.######E0") and use the format() method as well −new DecimalFormat("0.######E0").format(298757)Since, we have used DecimalFormat class in Java, therefore importing the following package in a must −import java.text.DecimalFormat;The following is the complete example −Example Live Demoimport java.text.DecimalFormat; public ... Read More

What are Java methods equivalent to C# virtual functions?

Sharon Christine

Sharon Christine

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

282 Views

All instance methods in Java are virtual except, static methods and private methods.

Importing an object from ECM application in SAP Business Workplace

Sharon Christine

Sharon Christine

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

108 Views

Correct, importing to the business workplace and using object importer is same.

What is the super() construct of a constructor in Java?

Sharon Christine

Sharon Christine

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

351 Views

The super keyword is similar to this keyword. Following are the scenarios where a super keyword is used. It is used to differentiate the members of superclass from the members of the subclass if they have same names. It is used to invoke the superclass constructor from the subclass. ... Read More

When should I use the keyword ‘this’ in a Java class?

Sharon Christine

Sharon Christine

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

153 Views

The this is a keyword in Java which is used as a reference to the object of the current class, within an instance method or a constructor. Using this you can refer the members of a class such as constructors, variables, and methods. Example Live Demo public ... Read More

What is the difference between compositions and aggregations in Java?

Sharon Christine

Sharon Christine

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

132 Views

In Aggregation relationship among classes by which a class (object) can be made up of any combination of objects of other classes. It allows objects to be placed directly within the body of other classes.A composition is also a type of aggregation where the relationship is restrictive i.e. If two ... Read More

What is a method in Java that ends in a semicolon and has no method body?

Sharon Christine

Sharon Christine

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

577 Views

An abstract method is the one which has no definition and declared abstract. In short, an abstract method contains only method signature without body. To use this method, you need to inherit this method by extending the class and provide the method definition. Example public abstract class Employee{ ... Read More

What is Callable interface in Java?

Sharon Christine

Sharon Christine

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

553 Views

The Callable interface is found in the package java.util.concurrent. The Callable object can return the computed result done by a thread in contrast to a runnable interface which can only run the thread. The Callable object returns a Future object which provides methods to monitor the progress of a task ... Read More

Displaying popup in SAP STMS

Sharon Christine

Sharon Christine

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

110 Views

First of all use CALL SCREEN ... STARTING AT ..., then in PBO processing, use Suppress Dialog to bypass the screen (dynpro) processor and an empty screen is not displayed, then use LEAVE TO LIST-PROCESSING in PAI event. Now you can follow it with your WRITE statements to display it ... Read More

Advertisements