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
Technical Lead Java Interview Questions
12,697 technical lead java interview questions shared by candidates
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?
Given an array of N integers, find the missing integer.
what is compiler ?
Oops concepts, what is pointer,what is Access specifiers, etc.
Write some code to print extract words from a piece of text. Analyse the words found and print out some metrics e.g. average word length, most common word length etc...
1. Find the frequency of each word occured in the given string. Eg. Bitter bitter B-2 i-2 t-4 e-2 r-2 2. Program to find lucky number. 3. Java program to merge two arrays in third array in ascending order.
wap input is a3b5c2 and o/p is aaabbbbbcc
Viewing 41 - 50 interview questions
See Interview Questions for Similar Jobs
Team Lead Java DeveloperLead Java DeveloperJavaJ2ee DeveloperTechnical Lead Architect AtgSenior Developer JavaTechnical LeadJava SpringJava DeveloperJava Solution ArchitectJava ArchitectSoftware Technical LeadJava J2ee DeveloperSenior Java DeveloperSpring DeveloperTechnical Lead Senior Java Software EngineerCore JavaSenior Applications Architect Java Developer