Jump to content

Today I Will Post Java Interview Questions


Recommended Posts

Posted

constructors meant for intialization. so if a constructor declared as private means the class can't be instantiated from outside of that class and it is mainly useful in singletons

Posted

[quote name='arunachalam' timestamp='1379009807' post='1304240288']
2. Let me try.. private constructor is used when the class is private ?
[/quote]

Nee answer ki nee Display pic ki correct gaa suit ayyindhi.. LOL

Just kidding....

Posted

[quote name='kiran karthik' timestamp='1379010412' post='1304240354']
constructors meant for intialization. so if a constructor declared as private means the class can't be instantiated from outside of that class and it is mainly useful in singletons
[/quote]
good
Inka emina answer cheyyagalara out of the box?

Posted

when we opt for singleton pattern we make class constructor as private.

Posted

[quote name='SinnaBabu_Chavatabbayi' timestamp='1379017128' post='1304241001']

Nee answer ki nee Display pic ki correct gaa suit ayyindhi.. LOL

Just kidding....
[/quote]


hahahaha aa answer to interview apestaru US or any place in the planet burra unna interviewer aithe

×
×
  • Create New...