Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Interview Questions and Answers for 'Splunk' - 2 question(s) found - Order By Newest | ||||
| ||||
| Ans. public void checkIfAnagram(String str1,String str2){ boolean anagram = true; for(char c:str1.toCharArray()){ if(!str2.contains(String.valueOf(c))){ System.out.println("Strings are Anagrams"); anagram = false; } if(anagram == true){ System.out.println("Strings are not Anagrams"); } } } | ||||
or What is the difference between String , StringBuilder and StringBuffer ? | ||||
or Explain OOPs Principles or Explain OOPs Concepts or Explain OOPs features or Tell me something about OOPs | ||||
| ||||
| Ans. == compares values === is used in scripting languages for comparing two values as well as there data tpe. like in js,php. | ||||