Answer Posted / venkata siva reddy
1.Make the class as final.
2.Make all the properties (variables) as private and final
3.Provide only getter methods for variables.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between association, aggregation and inheritance relationships.
How to use Media tracker Class.
What does provide mean construction?
what do you mean by stream pipelining in java 8? Explain
Can a class have 2 constructors?
What is the difference between integer parseint and integer valueof?
Does java set allow duplicates?
State the merge-sort principle and its time complexity.
What is a file pointer?
How big is a boolean?
What is flag in python?
What are runtime exceptions?
How to perform linear search in java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
Explain the difference between jvm and jre?