Q8. What will be the statement you add so that you invoke Abc’s process( ) method?
|
1 |
Q8. What will be the statement you add so that you invoke Abc’s process( ) method?
|
1 |
Q16. If there is a source array list with 15MB of data, and the you create a new target empty array list and copy the source to target with target.addAll(source). …
Q. If Java did not have a Queue implementation, how would you go about implementing your own? A. A queue can be implemented in a similar fashion to a stack …
Q. Is there a more efficient sorting algorithm than bubble sorting? A. Although bubble-sort is one of the simplest sorting algorithms, it’s also one of the slowest. It has the …
Q1. Can you write a sample code that will count the number of “A”s in a given text? Show iterative, recursive, and tail recursive approaches?
A1.
Q1. Can you write a method that reverses a given String? A1. Can be done a number of different ways. Best Practice: Using the Proven Java API
Q1. Can you explain Reverse Polish Notation (RPN)? A1. You have already heard about the following from your elementary schooling: “Please Excuse My Dear Aunt Sally” (meaning Parentheses, Exponentiation (roots …
Problem Statement: How would you go about writing an application in Java where employee id to department name lookup is cached instead of reading from a database or an API. …
Q. How will you partition the following numbers 7 3 6 8 2 9 5 4 around the pivotal number of 5 so that the lower values are in front …
This extends Sorting a list of numbers by frequencies in Java using a map to use a BST instead of a Map.
PROBLEM to solve: Sort a list of numbers …
PROBLEM to solve: Sort a a list of numbers by frequency of their occurrences. For example INPUT: [ 5, 3, 7, 7, 7, 5, 4, 8 ] OUTPUT: [7, 7, …
Q. You need to sort an array of integers by repeatedly reversing the order of the first several elements of it. you always have to flip from the beginning element, …
Q1. Can you write code to extract numbers from a given input text and return the sum of those numbers? Example: “1 some text 2 more text 4 more text …
I have a good news, I got job offer. I like to share with you from my bottom of my heart feeling thankful to you.