Given an array of pairs of numbers, simplify the numbers. The pairs represent ranges, and the result is a simplified version of these pairs. So [1,5],[3,7] should result in [1,7].
Java Lead Interview Questions
12,780 java lead interview questions shared by candidates
Interview question like that Q: 01 Given: 11. public static void parse(String str) { 12. try { 13. float f = Float.parseFloat(str); 14. } catch (NumberFormatException nfe) { 15. f = 0; 16. } finally { 17. System.out.println(f); 18. } 19. } 20. public static void main(String[] args) { 21. parse("invalid"); 22. } What is the result? A. 0.0 B. Compilation fails. C. A ParseException is thrown by the parse method at runtime. D. A NumberFormatException is thrown by the parse method at runtime. Answer: B
1.program to print 1 to 100 without using any loop
Some questions about Java basics, and some math problems and SQL
When does a deadlock occur?
First round was aptitude round followed by programing round then technical round and last hr round First aptitude round contain 3 section 1st section had 30 question based on logical reasoning , section B contain 15 question of english grammar like filling the blanks. Last section c contains technical questions like c,java programing output.It is not taugh but out of 60 students 15 clear that test. Sencond round was programing round they was given pattern program.out of 15 mostly 4-5 cracked that round and next round was technical round in that round they was ask me besic concept but in deep.this round took more than 1 hour. So be prepared oops concept deep.im wating for 3rd round result.
questions were from all concepts with a deep knowledge....programming as well as theoretical
reversing a words in a sentences represented as an array of characters.
I have an array of million integers. I want to sum it efficiently. How would you do it without using Java 8 parallel streams?
how to find square root of integer
Viewing 41 - 50 interview questions