What is constructor chaining in Java?

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 for that class. Each time a new object is created, at least one constructor will be invoked. A class can have more than one constructor. this() and super() are used to call constructors explicitly. Where, using this() you can call the current class’s constructor and using super() you can ... Read More

While changing Partner number, VBA code keeps running while interacting with SAP system

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

193 Views

The best possible solution to avoid this issue is by adding breakpoints to the best places. This issue is common with VBA and C# while debugging code includes COM libraries.

What is Java API and what is its use?

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

7K+ Views

The full form of API is Application Programming Interface. It is a document which gives you the list of all the packages, classes, and interfaces, along with their fields and methods.Using these API’s, the programmer can know how to use the methods, fields, classes, interfaces provided by Java libraries.

Can you use both this() and super() in a constructor in Java?

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

2K+ Views

No, you cannot have both this() and super() in a single constructor.

Difference between using - "standard table of", "Hashed table of", or simply "table of" in SAP ABAP

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

2K+ Views

“TYPE STANDARD TABLE OF “refers to the standard table. It refers to a normal internal table which can be accessed via table index or by key in case if you have a key defined over a table while sorting.“TYPE HASHED TABLE OF” refers to the generic hashed internal table. The table is created and data is stored using the hashing algorithm. The main advantage of the hashing algorithm is that accessing any part of the table is independent of the size of the table and hence an increase in the size of the table does not result in any delay ... Read More

SAP connector failed, use of port number 3350

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

340 Views

This port is used to provide a range of connections to SAP gateway for RFC connection. If you are getting this error, try to resolve your server name with “nslookup” or try connecting to IP address instead of server name.

Specifying working directory while executing FM SXPG_COMMAND_EXECUTE in SAP system

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

826 Views

I thought it can be done using a script in SM69 T-code defined as a call to sh with parameters of -c 'cd && /path/to/command.However it doesn’t accept wildcards and && is converted to & and script is not working. As per SAP Note 401095 - Wildcards in external commandsSymptom:Customers would like to use wildcards when defining external commandsOther Terms:SM49, SM69, wildcardReason and Prerequisites:Wildcards are not supported in external commands, amongst other things for security reasons.For example:An ls with a wildcard was defined as a command: "ls $1".During execution, the parameter "; rm -R /*" is entered. At operating ... Read More

Can’t create a Dictionary Object: View by adding two db tables

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

145 Views

When you create a view, it is created on top of multiple database tables using an inner join. Note that basis table of database views should be transparent tables.To create a view on 2 tables, you have to enter the primary table you want to maintain and place the cursor in that field and click on the button below the list of tables and select the other table to add the view. If you are not getting this option, it means Relationship is wrong.To know more about database Views: https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenddic_database_views.htmRead More

Using CSS3 in SAP BSP application without using DOCTYPE tag

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

264 Views

To add a DOCTYPE tag without changing code of your BSP application, you can try using in Web Server, JQuery, or other UI libraries.There are various other libraries that you can search for as a replacement for CSS3 and they have their own advantage. I have used JQuery UI, Wijmo or Modernizer.

What is the keyword used in instantiating a class in Java?

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

1K+ Views

An object is created from a class. In Java, the new keyword is used to create new objects. There are three steps when creating an object from a class − Declaration − A variable declaration with a variable name with an object type. Instantiation − The 'new' keyword is used to create the object. Initialization − The 'new' keyword is followed by a call to a constructor. This call initializes the new object. Following is an example of creating an object − Example Live Demo public class Puppy { public Puppy(String name) { ... Read More

Advertisements