adspace


What is anagram in java?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort array in descending order in java?

996


What do you mean by an interface in java?

1105


Is minecraft 1.15 out?

1045


What is java string pool?

1083


What are the differences between heap and stack memory in java?

1142


Write a program to print count of empty strings in java 8?

1087


Explain public static void main(string args[]) in java.

1078


What is a classloader in java?

1090


What is the difference between break and continue statements?

1128


How to create a base64 decoder in java8?

1138


What is a constructor overloading in java?

1125


What is the difference between equals() and == in java?

1042


What is an object in java and how is it created?

1141


Write a program to find the whether a number is an Armstrong number or not?

1101


explain different ways of using thread? : Java thread

1084