Thread: singleton

Forum : New To Java   9 Days ago
User Image
Deleep3776

Newbie

Joined: 20 Apr, 2017

Points: 100

Threads: 27

Posts: 6

singleton

| Quote Date : 11 Feb, 2019    Views:76    

Singleton in presences of multiple class loaders  ? 

tags: singleton

Comments

User Image
manoj4105

Newbie

Joined : 20 Apr, 2017

Points : 100

Threads: 10

Posts: 39

Re: singleton

Reply Date : 17 Feb, 2019

Hi Deleep,

I think your asking can singleton class loaded by multiple class loader?

If this your question.

Ans:

its depend if classloader is in the same hierarchy singleton class will be loaded only once.

But classloader are siblings then the singlton class will be loaded by both classloader

User Image
satya1995

Newbie

Joined : 21 Feb, 2018

Points : 110

Threads: 11

Posts: 34

Re: singleton

Reply Date : 15 Feb, 2019

can you elaborate your question.

Load More

No More Comments