Why Method Overloading Cannot Be Achieved by Changing Only the Return Type in Java

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

3K+ Views

Overloading is the mechanism of binding the method call with the method body dynamically based on the parameters passed to the method call. If you observe the following example, it contains two methods with same name, different parameters and if you call the method by passing two integer values the first method will be executed and, if you call by passing 3 integer values then the second method will be executed.It is not possible to decide to execute which method based on the return type, therefore, overloading is not possible just by changing the return type of the method. Example ... Read More

Using AT FIRST to Initialize Variables in Loop in SAP ABAP

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

180 Views

There would not be much of difference in both ways. The only thing is without AT_FIRST, the counter variables will be cleared in all cases while using AT_FIRST, the counter variables will be cleared only if there is at least one execution of the loop. So, the only difference would come into the picture if ls_itab is empty.

Recovery Database SBO COMMON in SAP Business One

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

1K+ Views

In SAP Business One, SBO-Common is only used in functionality handling or following your company database. Normal day to day business functions happens entirely in the company database. You can create a new set of sample database SBO-COMMON by reinstalling SAP B1 server. SBO-Common database holds this information − DB List (DB's which having SAP DB Structures) DB Details like Version, Upgrade Details License Details For more details about SBO-COMMON database, you can refer below link − https://archive.sap.com/discussions/thread/1447063

Same Features in SAP ABAP as in Visual Studio

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

113 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.

Can We Overload the Main Method in Java

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

3K+ Views

Yes, we can overload the main method in Java, but When we execute the class JVM starts execution with public static void main(String[] args) method. Example Live Demo public class Sample{ public static void main(){ System.out.println("This is the overloaded main method"); } public static void main(String args[]){ Sample obj = new Sample(); obj.main(); } } Output This is the overloaded main method

Restart Dead Thread in Java

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

2K+ Views

A thread goes through various stages in its lifecycle. For example, a thread is born, started, runs, and then dies. New − A new thread begins its life cycle in the new state. It remains in this state until the program starts the thread. It is also referred to as a born thread. Runnable − After a newly born thread is started, the thread becomes runnable. A thread in this state is considered to be executing its task. Waiting − Sometimes, a thread transitions to the waiting state while the thread waits for another thread to perform a task. ... Read More

Are There Inline Functions in Java?

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

4K+ Views

If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time. Any change to an inline function could require all clients of the function to be recompiled because compiler would need to replace all the code once again otherwise it will continue with old functionality. No, Java does not provide inline functions it is typically done by the JVM at execution time.

What is Concurrency in Java

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

548 Views

The ability to run multiple programs or parts of programs (threads) in parallel is known as concurrency.A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources especially when your computer has multiple CPUs. Multi-threading enables you to write in a way where multiple activities can proceed concurrently in the same program.

Exclude Subclasses from Backoffice Results in SAP

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

115 Views

You can uncheck the option - Include subtypes in a search bar and this will only give you the results of the parent type.

Limit SAP User Access to Transaction Code SOST

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

851 Views

You can make use of T-code: SU24 and check objects related to SOST T-code. These are authorization objects for this Transaction - S_OC_DOC; S_OC_ROLE; S_OC_SEND; S_OC_SOSG; S_OC_TCD

Advertisements