What is static keyword?

The static keyword in java is used for memory management mainly. We can apply java static keyword with variables, methods, blocks and nested class. 

java 2 Answer 40 views asked Aug 19 in Technology by muneshs16

Disadvantages of using scriptlet?

Disadvantages of using scriptlet: Disadvantage Overhead. Both JSP scriptlet and JSTL code are translated to a Java servlet for execution. Disadvantage: Not as Extensive as JSP...

java 2 Answer 61 views asked Aug 17 in Technology by muneshs16

What is a Spring “stereotype”?

The following stereotype annotations in 2.5 can be used in a Spring MVC application as an alternative to wiring the beans in XML:@Repository - for DAO beans - allows you to throw DataAccessException...

java 2 Answer 57 views asked Aug 15 in Technology by muneshs16

When to use LinkedList over ArrayList?

LinkedList is fast for adding and deleting elements, but slow to access a specific element. ArrayList is fast for accessing a specific element but can be slow to add to either end, and especially...

java 2 Answer 75 views asked Aug 14 in Technology by muneshs16

Avoiding != null statements

The most used idiom (code snippet) I’m programming in Java, is to test if an object != null before I use it. This is to avoid a NullPointerException. I find the code very ugly and it becomes...

java 2 Answer 52 views asked Aug 13 in Technology by muneshs16

how to Avoid Deadlock with an example

Deadlock is a permanent blocking of a set of threads that are competing for a set of resources. Just because some thread can make progress does not mean that there is not a deadlock somewhere...

java 2 Answer 38 views asked Aug 13 in Technology by muneshs16