<< < 20 21 22 23 24 25 26 27 > >>   Sort: Rank

What' is Java?
What's Java? Java is an object-oriented programming language developed initially by James Gosling and colleagues at Sun Microsystems. The language, initially called Oak (named after the oak trees outside Gosling's office), was intended to replace C++, although the feature set better resembles that o...
2012-05-15, 2705👍, 0💬

General technical question
What is the difference between Java and C++? What is the advantage of each of them? Java does not support typedefs, defines, or a preprocessor. Without a preprocessor, there are no provisions for including header files. Since Java does not have a preprocessor there is no concept of #define macros or...
2011-06-28, 3419👍, 0💬

How does one iterate through items and records in a specified block?
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to iterate (loop) through items in a specific block and NEXT_RECORD to iterate through records in a block. Code example: OriPos := TO_NUMBER(:System.Trigger_Reco rd);First_Record; LOOP -- do processing IF (:S...
2011-03-22, 8475👍, 0💬

Synchronization Premitives on EJB Methods
Should synchronization primitives be used on overrided bean methods? No. The EJB specification specifically states that the enterprise bean is not allowed to use thread primitives. The container is responsible for managing concurrent access to beans at runtime.
2009-11-05, 6990👍, 0💬

Is Ajax just another name for XMLHttpRequest?
Is Ajax just another name for XMLHttpRequest? No. XMLHttpRequest is only part of the Ajax equation. XMLHttpRequest is the technical component that makes the asynchronous server communication possible; Ajax is our name for the overall approach described in the article, which relies not only on XMLHtt...
2009-06-23, 4839👍, 0💬

How do I test my AJAX code?
How do I test my AJAX code? There is a port of JUnit for client-side JavaScript called JsUnit
2009-06-23, 4154👍, 0💬

What is encapsulation technique
What is encapsulation technique? Hiding data within the class and making it available only through the methods. This technique is used to protect your class against accidental changes to fields, which might leave the class in an inconsistent state.
2007-11-16, 5547👍, 0💬

What is the difference between a NULL pointer and a void pointer
What is the difference between a NULL pointer and a void pointer? A NULL pointer is a pointer of any type whose value is zero. A void pointer is a pointer to an object of an unknown type, and is guaranteed to have enough bits to hold a pointer to any object. A void pointer is not guaranteed to have ...
2007-11-13, 5321👍, 0💬

What are some advantages and disadvantages of Java Sockets
What are some advantages and disadvantages of Java Sockets? Advantages of Java Sockets: Sockets are flexible and sufficient. Efficient socket based programming can be easily implemented for general communications. Sockets cause low network traffic. Unlike HTML forms and CGI scripts that generate and...
2007-11-13, 6679👍, 0💬

What are the seven layers(OSI model) of networking
What are the seven layers(OSI model) of networking? 1.Physical, 2.Data Link, 3.Network, 4.Transport, 5.Session, 6.Presentation and 7.Application Layers.
2007-11-12, 5247👍, 0💬

What is a JavaBean
What is a JavaBean? 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-neu...
2007-11-12, 5069👍, 0💬

What Is invokeLater() Method
When should the method invokeLater() be used? This method is used to ensure that Swing components are updated through the event-dispatching thread.
2007-03-03, 6430👍, 0💬

What Is Finalization
What is the purpose of finalization? The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.
2007-03-03, 6587👍, 0💬

Anonymous Classes
Can an anonymous class be declared as implementing an interface and extending a class? An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.
2007-03-03, 6549👍, 0💬

Infinite Loops
How can you write a loop indefinitely? Two examples are listed in the following code: for(;;) { ... } while(true) { ... }
2007-03-03, 6168👍, 0💬

Native Method
What is a native method? A native method is a method that is implemented in a language other than Java.
2007-03-03, 5716👍, 0💬

Component Subclasses in Swing Package
Name Component subclasses that support painting? The Canvas, Frame, Panel, and Applet classes support painting.
2007-03-03, 5287👍, 0💬

Preemptive Scheduling
What is the difference between preemptive scheduling and time slicing? Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and the...
2007-03-03, 5130👍, 0💬

Garbage Collection
Does garbage collection guarantee that a program will not run out of memory? No, it doesn't. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.
2007-03-03, 5388👍, 0💬

Wrapped Classes
What are wrapped classes? Wrapped classes are classes that allow primitive types to be accessed as objects.
2007-03-03, 5252👍, 0💬

Vector and ArrayList Classes
What is the main difference between a Vector and an ArrayList? Java Vector class is internally synchronized and ArrayList is not.
2007-03-03, 6119👍, 0💬

ASCII, Unicode, UTF-8 and UTF-16
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bi...
2007-03-03, 6988👍, 0💬

Protected Methods
If a method is declared as protected, where may the method be accessed? A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.
2007-03-03, 4861👍, 0💬

Modifiers on Inner Classes
What modifiers may be used with an inner class that is a member of an outer class? A inner class may be declared as public, protected, private, static, final, or abstract.
2007-03-03, 4942👍, 0💬

<< < 20 21 22 23 24 25 26 27 > >>   Sort: Rank