Lakshmi Srinivas has Published 315 Articles

Can constructors be marked final, abstract or static in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

1K+ Views

Except public, protected and, private constructor does not allow any other modifier. When you use a final keyword with a method or constructor it cannot be overridden. But, a constructor in Java cannot be overridden therefore, there is no need of using the final keyword with the constructor. Since ... Read More

What is the difference between super and this, keywords in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

489 Views

The this is a keyword in Java which is used as a reference to the object of the current class. Using it you can − Differentiate the instance variables from local variables if they have same names, within a constructor or a method. Call one type of constructor (parametrized ... Read More

What is a composition in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

177 Views

The composition is also a type of aggregation where the relationship is restrictive i.e. If two objects are in composition, the composed object will not exist without the other.

What is binding in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

5K+ Views

Association of method call with the method body is known as binding in Java. There are two kinds of binding. Static binding In static binding the method call is bonded with the method body at compile time. This is also known as early binding. This is done using static, private ... Read More

What is Externalizable in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

111 Views

Externalization is used whenever we need to customize serialization mechanism. If a class implements an Externalizable interface then, object serialization will be done using writeExternal() method.Whereas at receiver’s end when an Externalizable object is a reconstructed instance will be created using no argument constructor and then the readExternal() method is ... Read More

What is the purpose of System class in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

1K+ Views

System class belongs to the package java.lang. It cannot be instantiated. A System class provides − standard output. error output streams. standard input and access to externally defined properties and environment variables. A utility method for quickly copying a portion of an array. a means of loading files and ... Read More

What is default, defender or extension method of Java 8?

Lakshmi Srinivas

Lakshmi Srinivas

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

78 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 ... Read More

Double click on ALV Grid to call Transaction and pass information in SAP

Lakshmi Srinivas

Lakshmi Srinivas

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

718 Views

You can make use of field - “wa_selrow” to define which column was clicked. Also, change the grid from row selection mode to cell selection mode.wa_selrow contains which field it is calling the transaction regardless or the field you clicked on so based on the content of wa_selrow, you can ... Read More

What are the types of arrays in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

14K+ Views

There are two types of arrays in Java they are − Single dimensional array − A single dimensional array of Java is a normal array where, the array contains sequential elements (of same type) − int[] myArray = {10, 20, 30, 40} Example Live Demo ... Read More

Can we get same features in SAP ABAP as they are in VS?

Lakshmi Srinivas

Lakshmi Srinivas

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

52 Views

If you want to show all the occurrences of a variable in an ABAP program, you can use a shortcut- ctrl+shift+F3 or you can also make use of Yellow icon at the top.

Advertisements