<< < 14 15 16 17 18 19 20 21 22 23 24 > >>   Sort: Date

What modifiers may be used with an interface declaration?
What modifiers may be used with an interface declaration? An interface may be declared as public or abstract.
2012-12-04, 2296👍, 0💬

Can Java code be compiled to machine dependent executable file?
Can Java code be compiled to machine dependent executable file? Yes. There are many tools out there. If you did so, the generated exe file would be run in the specific platform, not cross-platform.
2013-04-06, 2295👍, 0💬

What environment variables do I need to set on my machine in order to be able to run Java programs?
What environment variables do I need to set on my machine in order to be able to run Java programs? CLASSPATH and PATH are the two variables.
2013-05-07, 2294👍, 0💬

What is the difference between the &gt&gt and &gt&gt&gt operators?
What is the difference between the &gt&gt and &gt&gt&gt operators? The &gt&gt operator carries the sign bit when shifting right. The &gt&gt&gt zero-fills bits that have been shifted out.
2012-09-26, 2294👍, 0💬

What modifiers are allowed for methods in an Interface?
What modifiers are allowed for methods in an Interface? Only public and abstract modifiers are allowed for methods in interfaces.
2013-02-06, 2292👍, 0💬

Which class is the superclass for every class.
Which class is the superclass for every class. Object.
2013-04-11, 2291👍, 0💬

What is the purpose of garbage collection?
What is the purpose of garbage collection? The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused.
2013-01-11, 2291👍, 0💬

What is the difference between a Window and a Frame?
What is the difference between a Window and a Frame? The Frame class extends Window to define a main application window that can have a menu bar.
2012-11-09, 2291👍, 0💬

Can a private method of a superclass be declared within a subclass?
Can a private method of a superclass be declared within a subclass? Sure. A private field or method or inner class belongs to its declared class and hides from its subclasses. There is no way for private stuff to have a runtime overloading or overriding (polymorphism) features.
2012-08-31, 2291👍, 0💬

What is the Locale class?
What is the Locale class? The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.
2013-06-11, 2290👍, 0💬

What is the purpose of garbage collection in Java, and when is it used?
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 unre...
2013-04-23, 2289👍, 0💬

What is Data Access Object pattern?
What is Data Access Object pattern? The Data Access Object (or DAO) pattern: separates a data resource's client interface from its data access mechanisms adapts a specific data resource's access API to a generic client interface The DAO pattern allows data access mechanisms to change independently o...
2013-03-15, 2289👍, 0💬

Explain the Polymorphism principle
Explain the Polymorphism principle The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism ...
2013-03-01, 2289👍, 0💬

What is the difference between an Interface and an Abstract class?
What is the difference between an Interface and an Abstract class? An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface ...
2013-04-22, 2285👍, 0💬

What is tunnelling?
What is tunnelling? Tunnelling is a route to somewhere. For example, RMI tunnelling is a way to make RMI application get through firewall. In CS world, tunnelling means a way to transfer data.
2013-04-05, 2285👍, 0💬

What is covariant return type?
What is covariant return type? A covariant return type lets you override a superclass method with a return type that subtypes the superclass method's return type. So we can use covariant return types to minimize upcasting and downcasting. class Parent { Parent foo () { System.out.println ("Parent fo...
2013-03-07, 2284👍, 0💬

What is the ResourceBundle class?
What is the ResourceBundle class? The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program's appearance to the particular locale in which it is being run.
2013-01-18, 2284👍, 0💬

What are synchronized methods and synchronized statements?
What are synchronized methods and synchronized statements? Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized ...
2013-06-13, 2283👍, 0💬

What is your platform's default character encoding?
What is your platform's default character encoding? If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1..
2013-01-09, 2283👍, 0💬

If I want an object of my class to be thrown as an exception object, what should I do?
If I want an object of my class to be thrown as an exception object, what should I do? The class should extend from Exception class. Or you can extend your class from some more precise exception type also.
2013-05-30, 2282👍, 0💬

In which package are most of the AWT events that support the event-delegation model defined?
In which package are most of the AWT events that support the event-delegation model defined? Most of the AWT-related events of the event-delegation model are defined in the java.awt.event package. The AWTEvent class is defined in the java.awt package.
2012-10-16, 2282👍, 0💬

What is the basic difference between the 2 approaches to exception handling.
520. What is the basic difference between the 2 approaches to exception handling. 1. try catch block and 2. specifying the candidate exceptions in the throws clause? When should you use which approach? In the first approach as a programmer of the method, you urself are dealing with the exception. Th...
2013-06-03, 2281👍, 0💬

Is a class a subclass of itself?
Is a class a subclass of itself? A class is a subclass of itself.
2012-12-05, 2281👍, 0💬

What is the purpose of the System class?
What is the purpose of the System class? The purpose of the System class is to provide access to system resources.
2012-11-27, 2281👍, 0💬

<< < 14 15 16 17 18 19 20 21 22 23 24 > >>   Sort: Date