Can a constructor be protected?
No Answer is Posted For this Question
Be the First to Post Answer
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What are Encapsulation, Polymorphism and Inheritance?
Tell me a few examples of final classes defined in Java API?
Explain scope or life time of local variables in java?
What is singleton service?
Explain the importance of throwable class and its methods?
How can be define MARKER interfce in java
how to create multithreaded program? : Java thread
What are Access Specifiers and Access Modifiers.
I was asked to draw the class diagram for the below scenario which should obey OOPS concept. A Portal is to be developed for a school , which has 3 main divisions viz , Education , Admin & Trust. Each division has 2 sub divisions Kinder Garden & Higer Secondary.
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Why non nested classes in java are not having marked as protected access specifier