Top "Method-call" questions

How to get name of calling function/method in PHP?

I am aware of function debug_backtrace, but I am looking for some ready to use implementation of function like …

php debugging backtrace method-call
Check if returned value is not null and if so assign it, in one line, with one method call

Java is littered with statements like: if(cage.getChicken() != null) { dinner = cage.getChicken(); } else { dinner = getFreeRangeChicken(); } Which takes two calls …

java syntax null variable-assignment method-call
How to call the method in thread with arguments and return some value

I like to call the method in thread with arguments and return some value here example class Program { static void …

c# multithreading method-call
How to see from where a public method is called in Eclipse using Java?

I am working on a Java project in Eclipse. Sometimes when I do refactoring I would like to see from …

java eclipse keyboard-shortcuts method-call
C# method call with parameter name and colon

I've begun to notice at times when I'm making method calls in C# that the names of the parameters for …

c# language-features method-call
How to call java method in JSTL?

This might be duplicate question. I just want to call method which is not getter or setter method eg. makeCall(…

java jstl method-call
can we call any method on null object?

is it possible? Object obj=null; obj.someMethod(); someMethod{/*some code here*/}

java null method-call
Java: Calling a static method in the main() method

I am supposed to do the following: Write a Java application (Client) program with a static method called generateEmployees( ) that …

java static-methods main method-call
Passing single object vs. passing multiple parameters

Suppose I have the following Class A { Foo getFoo(); Bar getBar(); Baz getBaz(); } And I need to define a function …

design-patterns parameters method-call parameter-object
What is the best way to call a method right AFTER a form loads?

I have a C# windows forms application. The way I currently have it set up, when Form1_Load() runs it …

c# .net winforms method-call form-load