Why should we use java?
Java has proven its strength in past two decades with below points. This language is being used in various fields like desktop, web, enterprise, game, mobile, embedded system, cloud and analytics (Hadoop).
• Open source
• Easy to learn
• Platform independent.
• Wide range of free community, forum
• Large number of APIs and JAVA docs.
• It’s an OOP language.
• Supports multithreading.
• Automatic memory management and garbage collection
• Good memory analysis tool like JConsole and VusualVM, and MAT
• Good number of free IDE tools etc
| Is This Answer Correct ? | 2 Yes | 0 No |
What are the states of thread in java?
What is use of static in java?
How garbage collection is done in java?
how to one war file class to another war file class?
Give us a program to check for parenthesis matching using stack.
In how many ways we can do synchronization in java?
84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.
what is the difference between static block and static method
What is data abstraction? Elaborate with example?
What is void in java?
Why string is a class?
what is thread? What are the high-level thread states? : Java thread