StackOverflow Questions for Tag: local-class

Pubby
Pubby

Reputation: 53097

Why aren't static data members allowed in local classes?

Score: 35

Views: 13848

Answers: 5

Read More
Markus A.
Markus A.

Reputation: 12762

Is there such a thing as a "local interface" in Java?

Score: 3

Views: 2705

Answers: 5

Read More
theutonium.18
theutonium.18

Reputation: 525

Local Class instance creation expression occurs in a static context - compilation error?

Score: 0

Views: 18

Answers: 0

Read More
Mohsen Kamrani
Mohsen Kamrani

Reputation: 7457

Does java forward referencing act differently in different situations?

Score: 1

Views: 175

Answers: 2

Read More
HighCommander4
HighCommander4

Reputation: 52957

Member template in local class

Score: 55

Views: 13475

Answers: 2

Read More
kaka
kaka

Reputation: 825

Can we declare interface inside a method?

Score: 1

Views: 94

Answers: 1

Read More
bragboy
bragboy

Reputation: 35572

Use of class definitions inside a method in Java

Score: 128

Views: 98110

Answers: 9

Read More
Fedor
Fedor

Reputation: 21347

Can friend function of a local class be defined in namespace scope?

Score: 0

Views: 133

Answers: 0

Read More
user11712295
user11712295

Reputation:

How to make function friend of local class?

Score: 1

Views: 292

Answers: 4

Read More
bfin
bfin

Reputation: 1

JDK8: No enclosing instance of type Object is accessible. Must qualify the allocation with an enclosing instance of type Person (e.g. x.new A()

Score: 0

Views: 94

Answers: 0

Read More
iammilind
iammilind

Reputation: 70100

Why field inside a local class cannot be static?

Score: 17

Views: 1734

Answers: 6

Read More
davidalayachew
davidalayachew

Reputation: 1055

Why is there a ClassLoader exception when there are 2 objects with similar type names

Score: 3

Views: 2348

Answers: 2

Read More
Gonen I
Gonen I

Reputation: 6127

Are all local classes and all anonymous classes also inner classes?

Score: 1

Views: 220

Answers: 2

Read More
M. Dudek
M. Dudek

Reputation: 1085

Get constructor for local-class in non-static method by reflection

Score: 0

Views: 223

Answers: 0

Read More
Desmond Gold
Desmond Gold

Reputation: 2095

Leaking the local class outside function

Score: 2

Views: 54

Answers: 0

Read More
ishan
ishan

Reputation: 301

static member variable inside a local class in c++?

Score: 4

Views: 4326

Answers: 6

Read More
Timur
Timur

Reputation: 179

Call Local class within PAI Module

Score: 1

Views: 1502

Answers: 1

Read More
locobe
locobe

Reputation: 99

Does local class of interface exist?

Score: 0

Views: 58

Answers: 1

Read More
jw_
jw_

Reputation: 1795

Use Clang LibTooling to scan C++ source that has call to local class in a templated parent class

Score: 1

Views: 241

Answers: 1

Read More
Yati Sawhney
Yati Sawhney

Reputation: 1402

Why does an inner class instance remian in the memory even if the outer class object is destroyed?

Score: 2

Views: 880

Answers: 4

Read More
PreviousPage 1Next