How do you make a class immutable in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More J2EE Interview Questions

Whats the O/p of the below code snippet ? And explain how does it imply the concept of call-by-value/call-by reference. (PS : Pls ignore syntax errors) public class One { public oneA(){ sop ("Into One--");} } public class Two extends One{ public twoT(){ sop ("Into Two--"); } } public class Home { One a; Two t; public static void main(argv[]) { sop ("In Home--"); sop(a.oneA()); sop(t.oneA()); sop(a.twoT()); sop(t.twoT()); } }

4 Answers   Wipro,


what is the difference between Tomcat 4 & Tomcat 5?

6 Answers   IBM, TCS,


What is layout in java?

0 Answers  


Which package is imported by default in java?

0 Answers  


What is business method?

0 Answers  






What does java awt stand for?

0 Answers  


What is javaserver pages standard tag library (jstl)?

0 Answers  


What is java technology stack?

0 Answers  


What is the description for expression element?

0 Answers  


What is java 2 platform, standard edition (j2se)?

0 Answers  


What are the main components of a class in java?

0 Answers  


What is a web container j2ee?

0 Answers  


Categories