What does the keyword “synchronize” mean in java. When do you use it?
Synchronize is used when u want to make ur methods thread safe. The disadvantage of synchronise is it will end up in slowing down the program. Also if not handled... Read more »
Synchronize is used when u want to make ur methods thread safe. The disadvantage of synchronise is it will end up in slowing down the program. Also if not handled... Read more »
Native methods are methods that are defined as public static methods within a java class, but whose implementation is provided in another programming language such... Read more »
The JDBC is a pure Java API used to execute SQL statements. It provides a set of classes and interfaces that can be used by developers to write database applications. The... Read more »
Abstract keyword declares either a method or a class. If a method has a abstract keyword in front of it,it is called abstract method.Abstract method has no body.It... Read more »
instanceof is used to check to see if an object can be cast into a specified type without throwing a cast classexception. isInstance() Determines if the specified... Read more »
A public class may be accessed outside of its package. A non-public class may not be accessed outside of its package. Read more »
A layout manager is an object that is used to organize components in a container. Read more »
Set stores elements in an unordered way but does not contain duplicate elements, whereas list stores elements in an ordered way but may contain duplicate elements. Read more »
Its an Interface through which Java implements Threads.The class can extend from any class but if it implements Runnable,Threads can be used in that particular application. Read more »
Preemptive: Running tasks are given small portions of time to execute by using time-slicing. Non-Preemptive: One task doesn’t give another task a chance to run... Read more »
Transient: The transient modifier applies to variables only and it is not stored as part of its object’s Persistent state. Transient variables are not serialized. Volatile:... Read more »
Java’s security model is one of the most interesting and unique aspects of the language. For the most part it’s broken into two pieces: the user adjustable security... Read more »
In C++ terminology, all public methods in Java are virtual. Therefore, all Java methods can be overwritten in subclasses except those that are declared final, static,... Read more »
A child object constructor always first needs to construct its parent (which in turn calls its parent constructor.). In Java it is done via an implicit call to the... Read more »
As many as you want, but the static initializers and class variable initializers are executed in textual order and may not refer to class variables declared in the... Read more »
The JVM spec mandates automatic garbage collection outside of the programmers control. The System.gc() or Runtime.gc() is merely a suggestion to the JVM to run the... Read more »
The Iterator interface is used to step through the elements of a Collection. Read more »
The javax.servlet.Servlet interface defines the three methods known as life-cycle method. public void init(ServletConfig config) throws ServletException public void... Read more »
The getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface accepts parameter the path to the resource to be included or forwarded to,... Read more »
ServletContext interface is a window for a servlet to view it’s environment. A servlet can use this interface to get information such as initialization parameters... Read more »