5 years ago in Introduction To Java

Is constructor is private or not?

[A] True
[B] False
Next Question

Overall Stats

Attempted 714
Correct 219
Incorrect 229
Viewed 266


Charbel Zalaket - 2 years ago

The only case where you ever would need to declare a private constructor is the singleton design pattern. However, in all remaining cases, constructors are to be declared public.

at - 4 years ago

question should say: Can a declare a constructor as private?

Rawan Alsb
Rawan Alsb - 2 days ago

Rawan Alsb is saying False is correct answer

Shamsa hafeez
Shamsa hafeez - 3 days ago

Shamsa hafeez from Lahore, Pakistan is saying False is correct answer

Tsega Asresa Mengistu
Tsega Asresa Mengistu - 1 week ago

Tsega Asresa Mengistu from Dessie, Ethiopia is saying False is correct answer

Related Questions

In java , if you do not give a value to a variable before using it ,______

  • [A] It will contain a garbage value
  • [B] It will initialized with zero
  • [C] Compiler will give an error
  • [D] None of above