Sai Subramanyam has Published 80 Articles

When to use vararg methods in Java?

Sai Subramanyam

Sai Subramanyam

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

243 Views

Whenever, you want to pass different number of arguments each time you call a method you should use vararg methods. This example creates sumvarargs() method which takes variable no of int numbers as an argument and returns the sum of these arguments as an output. Example Live Demo ... Read More

What are number format exceptions in Java?

Sai Subramanyam

Sai Subramanyam

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

253 Views

This Exception happens once you associated convert a string variable in an incorrect format to a whole number (numeric format) that's not compatible with one another. Example public class Test { public static void main(String[] args) { int data = ... Read More

Comparing SAP ABAP Field symbols and data reference with Pointers in C

Sai Subramanyam

Sai Subramanyam

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

991 Views

Field symbol resembles pointer in C but there is one main difference: you can use Field Symbol only to access the values present in it but not the memory address. Similar to a pointer in actual, it stores the memory address of the variable that was assigned to it. You ... Read More

Replace Tab with space in SAP ABAP

Sai Subramanyam

Sai Subramanyam

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

728 Views

You just need to make a small change. You need to add an “If condition” for handling the tab as shown below − if CO gc_hex_char I think it should sort out your issue and neither it looks like hardcoding or a wrong implementation.

How do we pass parameters by value in a Java method?

Sai Subramanyam

Sai Subramanyam

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

355 Views

Passing Parameters by Value means calling a method with a parameter. Through this, the argument value is passed to the parameter. Example public class SwappingExample { public static void swapFunction(int a, int b) { int c = a+b; ... Read More

Where and how is import statement used in Java programs?

Sai Subramanyam

Sai Subramanyam

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

388 Views

Wan import statement in Java is used to − Import user defined classes/Interfaces Whenever you need to access a class which is not in the current package of the program you need to import that particular class using the import statement. Example In the following example we are using the ... Read More

What is constructor chaining in Java?

Sai Subramanyam

Sai Subramanyam

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

518 Views

Constructors are similar to methods but, They do not have any return type. The name of the constructor is same as the name of the class. Every class has a constructor. If we do not explicitly write a constructor for a class, the Java compiler builds a default constructor ... Read More

Java Web application pointing to SAP HANA locally

Sai Subramanyam

Sai Subramanyam

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

330 Views

You would require changing the connection.properties file of your local Tomcat Server (Server > Java Web Tomcat 8 Server-config/config_master/connection_data), to point to the HANA database. Here are the usual parameters that need to be configured for HANA database javax.persistence.jdbc.driver = com.sap.db.jdbc.Driver javax.persistence.jdbc.url = jdbc:sap://:/?reconnect=true&autocommit=false javax.persistence.jdbc.user = db-user javax.persistence.jdbc.password = ... Read More

Condition Variables within Sub-Query in SAP

Sai Subramanyam

Sai Subramanyam

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

177 Views

One line answer - Sub-Queries are not allowed. But if you need to handle your scenario, then you can do the following: Encapsulate your entire query into a stored procedure and then use the stored procedure. Create a view. The view is created to handle either your main query ... Read More

Finding code where admin user is created in SAP Hybris

Sai Subramanyam

Sai Subramanyam

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

187 Views

There is a method addUserRights at below path in which it is done.hybris/bin/platform/bootstrap/bin → ybootstrap.jar → DMLRecordFactory

Advertisements