Top "Non-static" questions

non-static is a term to define a function or field that is bound to some object instance.

What Cases Require Synchronized Method Access in Java?

In what cases is it necessary to synchronize access to instance members? I understand that access to static members of …

java concurrency synchronization methods non-static
Accessing non-static member variables from static methods

I'm just starting on Java and I need some help. I know I cannot make a non-static reference on a …

java static non-static
Android Studio static or non-static variables and methods

I'm a little confused about when a variable or a method should be static. I've developed an app with several …

android static non-static
Calling a method from an array-list of objects

I'm just starting with Java and I'm having trouble with the following code. I was using something like this to …

java methods static arraylist non-static
How to mock non static methods using PowerMock

I am trying to mock an inner method call of my test method My class looks like this public class …

powermock non-static
Illegal call of non-static member function

I wish to make a calculator that can calculate numbers of almost any length. The first function that I needed …

c++ function call non-static
std::sort function with custom compare function results error: reference to non-static member function must be called

I have trouble using the std::sort function with my custom comparison function when defined inside a class. class Test { …

c++ sorting reference non-static
accessing static member from non-static function in typescript

I am trying to access a static member from a non-static function in the class, and I get an error …

typescript static-methods static-members non-static
Why a non-static inner-class cannot have static members (fields and methods)?

Possible Duplicate: Why cant we have static method in an inner class? I know that the creation of a non-static …

java static inner-classes static-members non-static
how to resolve Non-Static method cannot be referenced from a static context?

class Base { Base show() { System.out.println("Base"); return new Base(); } class Child4 extends Base { Child4 show() { System.out.println("…

java non-static