Varun has Published 83 Articles

Interface enhancements in Java 8

varun

varun

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

352 Views

Java 8 introduces a new concept of default method implementation in interfaces. This capability is added for backward compatibility so that old interfaces can be used to leverage the lambda expression capability of Java 8.For example, ‘List’ or ‘Collection’ interfaces do not have ‘forEach’ method declaration. Thus, adding such method ... Read More

What is the difference between local storage vs cookies?

varun

varun

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

1K+ Views

On client and server, the following storages are available: local storage, session storage, and cookies.The Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a ... Read More

Types of Array in Java

varun

varun

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

176 Views

Java supports single dimensional and multidimensional arrays. See the example below:Example Live Demopublic class Tester {    public static void main(String[] args) {       double[] myList = {1.9, 2.9, 3.4, 3.5};       // Print all the array elements       for (double element: myList) {   ... Read More

Change leaves duration from hours to days in SAP Fiori app

varun

varun

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

113 Views

In general, customizing Fiori applications involves customizing the parent SAP application. So, if in the application, it defaults to hours then the Fiori app will also inherit the default behavior and show it in hours.Go ahead and change it to days, it will impact your Fiori app and the app ... Read More

Generate Database diagram within SAP

varun

varun

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

584 Views

Generating the database diagram completely as generated in SQL server or other DBMS is not possible over here. But there are couples of ways that can be of small help in your case. Firstly, you can refer to Object Model guide present in the SAP market place. This guide will explain ... Read More

How to build JCo server without using a Properties file in SAP?

varun

varun

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

122 Views

You can create your own implementation of DDP and then register using Environment.registerDestinationDataProvider().

What is a JAR file?

varun

varun

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

2K+ Views

A java archive file is a file format/ archiving tool which contains all the components of an executable Java application. All the predefined libraries are available in this format. To include any of these (other than rt.jar) in to your project you need to set the class path for this ... Read More

Connecting SAP B1 via DI API takes too much time

varun

varun

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

311 Views

Try deleting all the files under this location - %UserProfile%\AppData\Local\SAP\SAP Business One\Log\DIAPIWhen you delete all files, it will speed up the connection process.

Are identifiers hello and Hello same in Java?

varun

varun

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

172 Views

Identifiers in Java are case-sensitive, therefore, hello and Hello are considered as two different identifiers.

Can a method return multiple values in Java?

varun

varun

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

9K+ Views

You can return only one value in Java. If needed you can return multiple values using array or an object. Example In the example given below the calculate() method accepts two integer variables performs the addition subtraction, multiplication and, division operations on them stores the results in an array and ... Read More

Advertisements