Tags:JAVA Questions | 191 views
Q:In Java, what is the difference between an Interface and an Abstract class? A: An Abstract class declares have at least one instance method that is declared abstract which will be implemented by the subclasses. An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance [...]
Tags:JAVA Questions | 175 views
1) What is the purpose of garbage collection in Java, and when is it used? The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable [...]
Tags:JAVA Questions | 135 views
QUESTION: What is a JavaBean? (asked by Lifescan inc) ANSWER: JavaBeans are reusable software components written in the Java programming language, designed to be manipulated visually by a software develpoment environment, like JBuilder or VisualAge for Java. They are similar to Microsoft’s ActiveX components, but designed to be platform-neutral, running anywhere there is a Java [...]
Tags:JAVA Questions | 147 views
What is an Applet? Should applets have constructors? – Applets are small programs transferred through Internet, automatically installed and run as part of web-browser. Applets implements functionality of a client. Applet is a dynamic and interactive program that runs inside a Web page displayed by a Java-capable browser. We don’t have the concept of Constructors [...]