Fendadis John has Published 98 Articles

How to make an object eligible for garbage collection in Java?

Fendadis John

Fendadis John

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

Java Garbage collector tracks the live object and objects which are no more need are marked for garbage collection. It relieves developers to think of memory allocation/deallocation issues. JVM uses the heap, for dynamic allocation. In most of the cases, the operating systems allocate the heap in advance which is ... Read More

Functional Interfaces in Java Programming

Fendadis John

Fendadis John

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

Functional interfaces have a single functionality to exhibit. For example, a Comparable interface with a single method 'compareTo' is used for comparison purpose. Java 8 has defined a lot of functional interfaces to be used extensively in lambda expressions. Following is the list of functional interfaces defined in java.util.Function package. ... Read More

How do I view events fired on an element in Chrome?

Fendadis John

Fendadis John

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

To view events fired on an element, follow the below steps in Google Chrome:Open Google Chrome and press F12 to open Dev Tools.Now go to Sources TabGo to Event Listener Breakpoints, on the right:Click on the events and interact with the target element.If the event will fire, then you will get ... Read More

What is the difference between cerr and clog streams in c++?

Fendadis John

Fendadis John

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

cerr and clog are both objects of the stderr stream. Following are the differences between them. You can also read about the cout object to get a clearer picture.Un-buffered standard error stream (cerr)cerr is the standard error stream which is used to output the errors. This is also an instance ... Read More

Java Boolean operators

Fendadis John

Fendadis John

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

There are following boolean operators supported by Java language.Assume variable A holds 10 and variable B holds 20, then −OperatorDescriptionExample== (equal to)Checks if the values of two operands are equal or not, if yes then condition becomes true.(A == B) is not true.!= (not equal to)Checks if the values of ... Read More

History of C++ language

Fendadis John

Fendadis John

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

The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. He began work on "C with Classes", which as the name implies was meant to be a superset of the C language. His goal was to add object-oriented programming ... Read More

Why string is immutable in Java?

Fendadis John

Fendadis John

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

In general, strings are used to represent the vital details like database connection URLs, username passwords etc. The immutability of strings helps to keep such details unchanged.Similarly, String is used as an argument while loading the class. At that time change in the string may result in loading the wrong ... Read More

Incrementing an integer inside loop in an ABAP program

Fendadis John

Fendadis John

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

You need to use the following:You are missing spaces between ls_id+1. You can also use Add 1 to ls_idIn case you are using internal tables, you can directly use SY-TABIX and SY-Index depending upon whether the loop is nested or not.

Previous 1 ... 6 7 8 9 10
Advertisements