How do you make a class immutable in java?
No Answer is Posted For this Question
Be the First to Post Answer
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()); } }
what is the difference between Tomcat 4 & Tomcat 5?
What is layout in java?
Which package is imported by default in java?
What is business method?
What does java awt stand for?
What is javaserver pages standard tag library (jstl)?
What is java technology stack?
What is the description for expression element?
What is java 2 platform, standard edition (j2se)?
What are the main components of a class in java?
What is a web container j2ee?