What is anagram in java?



What is anagram in java?..

Answer / Ankita Srivastava

An anagram is a word or phrase formed by rearranging the letters of another word or phrase, usually using all the original letters exactly once. In Java, you can check for anagrams by comparing two strings after sorting their characters. However, it's more efficient to compare character frequencies instead.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain about version control?

1 Answers  


State the significance of public, private, protected class?

1 Answers  


How will you initialize an Applet?

1 Answers  


What is the difference between java applets and applications?

1 Answers  


Difference between JDK, JRE, JVM

16 Answers   Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,


Can u write constructor in abstract.If yes den when it will be invoked.

4 Answers   SunGard,


Is main a keyword in java?

1 Answers  


What do you mean by of string::valueof expression in java 8?

1 Answers  


Can we add default constructor to Servlet?

1 Answers   Fidelity,


Sample code to retrieve objects from HashMap in sorted ascending order?

2 Answers  


What is a serializable interface?

4 Answers  


Is java code slower than native code?

1 Answers  


Categories