Can we create an object of private class?
Answer / Anju Upadhyay
No, a class with a private access modifier can only be accessed within the same file. Therefore, it cannot be instantiated as an object from another file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you call a constructor within a constructor?
How do you replace a string in java?
Explain the private protected method modifier?
Differences between C and Java?
what is difference between Interface and abstract class
What is use of valueof () in java?
Explain creating threads by implementing runnable class?
Can we override static methods in java?
How to do a true java ping from windows?
How many bits is a word?
How do you convert string to int in java?
Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?