What does it mean that strings are immutable?
No Answer is Posted For this Question
Be the First to Post Answer
what is synchronization
How do you check if two given string are anagrams?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
why are there separate wait and sleep methods? : Java thread
What is an argument java?
What are the basic interfaces of java collections framework?
interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?
Why is it called buffering?
What is the difference between abstract classes and interfaces?
Is it possible to make an array volatile?
What is the difference between private & public & friendly classes?
what is singleton class in java?