What is the difference between scrollbar and scrollpane?
No Answer is Posted For this Question
Be the First to Post Answer
what is daemon thread and which method is used to create the daemon thread? : Java thread
What is Exception handling in Java How do you handle run time errors please explain with an example
What is a protected class in java?
what is the form of storage space in java?
What is the range of the short datatype?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
What is the argument in java?
Which collection object is faster to retrieving the data and inserting the data into it.
2 Answers Jamcracker, Virtusa,
If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?
They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run?
Are variables stored in ram?
How does singleton class work?