+ 10

Top 30 Programming interview questions

Programming questions are an integral part of any Java or C++ programmer or software analyst interview. No matter on which language you have expertise it’s expected that you are familiar with fundamental of programming and can solve problems without taking help of API. Programming questions like reversing String using recursion or How to find if Array contains duplicates are some popular examples of programming question in Java. Programming questions present lot of challenges Especially to Java developers as compared to C++ programmer and I think, One reason for this is powerful Java API; Which has method for almost every need and you rarely need to write by your own or there are lots of third party library from Apache, Spring, Google and other open source. The questions are ------ 1) Write code to check a String is palindrome or not? 2) Write a method which will remove any given character from a String? 3) Print all permutation of String both iterative and Recursive way? 4) Write a function to find out longest palindrome in a given string? 5) How to find first non repeated character of a given String? 6) How to count occurrence of a given character in a String? 7) How to check if two String are Anagram? 8) How to convert numeric String to int in Java? Some more String related Questions which mostly appear in Java programming interviews: 1) What is difference between String, StringBuilder and StringBuffer in Java? 2) Why String is final in Java? 3) How to Split String in Java? 4) Why Char array is preferred over String for storing password? == In an array 1-100 numbers are stored, one number is missing how do you find it? 10) In an array 1-100 exactly one number is duplicate how do you find it? 11) In an array 1-100 multiple numbers are duplicates, how do you find it? 12) Given two arrays, 1,2,3,4,5 and 2,3,1,0,5 find which number is not present in the second array. 13) How do you find second highest number in an integer

20th Mar 2017, 4:47 PM
🎆Sourav Subhakant Dash🔥🔥
🎆Sourav Subhakant Dash🔥🔥 - avatar
1 Respuesta
+ 2
API's are good to do easier the work but is logical you, like a programmer, understand what happen into the API and of course, eventually, to making an API
8th Nov 2017, 6:12 AM
Daniel
Daniel - avatar