varun

varun

65 Articles Published

Articles by varun

Page 7 of 7

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

varun
varun
Updated on 30-Jul-2019 255 Views

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

Read More

What is a JAR file?

varun
varun
Updated on 30-Jul-2019 3K+ 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 particular JAR file. You can create a JAR file using the command line options or using any IDE’s. Creating a Jar file You can create a Jar file using the jar command as shown below. jar cf jar-file input-file(s) Let us consider an example, create a Sample Java ...

Read More

Are identifiers hello and Hello same in Java?

varun
varun
Updated on 30-Jul-2019 404 Views

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

Read More

Can a method return multiple values in Java?

varun
varun
Updated on 30-Jul-2019 10K+ 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 returns the array. public class ReturningMultipleValues { static int[] calculate(int a, int b){ int[] result = new int[4]; result[0] = a + b; result[1] = a - b; ...

Read More

Is main a keyword in Java?

varun
varun
Updated on 30-Jul-2019 1K+ Views

No, main is not a keyword in Java.

Read More
Showing 61–65 of 65 articles
« Prev 1 3 4 5 6 7 Next »
Advertisements