<< < 135 136 137 138 139 140 141 142 143 144 145 > >>   Sort: Date

How does multithreading take place on a computer with a single CPU?
How does multithreading take place on a computer with a single CPU? The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.
2012-12-14, 2212👍, 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, 2212👍, 0💬

How can I shut off the warning: possible pointer alignment problem ...
How can I shut off the ``warning: possible pointer alignment problem'' message which lint gives me for each call to malloc? A modern lint shouldn't be complaining about this. Once upon a time, lint did not and could not know that malloc ``returns a pointer to space suitably aligned for storage of an...
2016-06-03, 2211👍, 0💬

How can I print numbers with commas separating the thousands? What about currency formatted numbers?
How can I print numbers with commas separating the thousands? What about currency formatted numbers? The functions in &lt;locale.h> begin to provide some support for these operations, but there is no standard C function for doing either task. (In Standard C, the only thing printf does in respons...
2015-11-02, 2210👍, 0💬

How do you prevent the Creation of a Session in a JSP Page and why? What is the difference between include directive & jsp:inclu
How do you prevent the Creation of a Session in a JSP Page and why? What is the difference between include directive & jsp:include action? By default, a JSP page will automatically create a session for the request if one does not exist. However, sessions consume resources and if it is not necess...
2013-08-06, 2210👍, 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, 2210👍, 0💬

Name three subclasses of the Component class.
Name three subclasses of the Component class. Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, or TextComponent
2012-10-19, 2210👍, 0💬

What are wrapper classes?
What are wrapper classes? Java provides specialized classes corresponding to each of the primitive data types. These are called wrapper classes. They are e.g. Integer, Character, Double etc.
2013-05-27, 2209👍, 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, 2209👍, 0💬

What is Perl one-liner?
What is Perl one-liner? There are two ways a Perl script can be run: --from a command line, called one-liner, that means you type and execute immediately on the command line. You'll need the -e option to start like "C:\ %gt perl -e "print "Hello";". One-liner doesn't mean one Perl statement. One-lin...
2013-08-26, 2207👍, 0💬

Why do we need wrapper classes?
Why do we need wrapper classes? It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we...
2013-05-27, 2207👍, 0💬

What is the main difference between Java platform and other platforms?
What is the main difference between Java platform and other platforms? The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms. The Java platform has three elements: Java programming language The Java Virtual Machin...
2013-02-19, 2207👍, 0💬

Which class should you use to obtain design information about an object?
Which class should you use to obtain design information about an object? The Class class is used to obtain information about an object's design.
2012-11-30, 2207👍, 0💬

What restrictions are placed on method overloading?
What restrictions are placed on method overloading? Two methods may not have the same name and argument list but different return types.
2013-04-01, 2206👍, 0💬

How can I implement a thread-safe JSP page?
How can I implement a thread-safe JSP page? You can make your JSPs thread-safe by having them implement the SingleThreadModel interface. This is done by adding the directive &lt;%@ page isThreadSafe="false" % &gt; within your JSP page.
2013-07-27, 2203👍, 0💬

What Class.forName will do while loading drivers?
What Class.forName will do while loading drivers? It is used to create an instance of a driver and register it with the DriverManager. When you have loaded a driver, it is available for making a connection with a DBMS.
2013-07-15, 2202👍, 0💬

What is the % operator?
What is the % operator? It is referred to as the modulo or remainder operator. It returns the remainder of dividing the first operand by the second operand.
2012-11-09, 2202👍, 0💬

Which package is always imported by default?
Which package is always imported by default? The java.lang package is always imported by default.
2013-01-09, 2201👍, 0💬

When is the finally clause of a try-catch-finally statement executed?
When is the finally clause of a try-catch-finally statement executed? The finally clause of the try-catch-finally statement is always executed unless the thread of execution terminates or an exception occurs within the execution of the finally clause.
2012-12-17, 2201👍, 0💬

What is the Collection interface?
What is the Collection interface? The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates.
2012-12-10, 2201👍, 0💬

Which Component subclass is used for drawing and painting?
Which Component subclass is used for drawing and painting? Canvas
2013-01-30, 2198👍, 0💬

What is a void return type?
What is a void return type? A void return type indicates that a method does not return a value.
2013-01-07, 2198👍, 0💬

What is the difference between the paint() and repaint() methods?
What is the difference between the paint() and repaint() methods? The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.
2012-12-12, 2198👍, 0💬

What type of parameter passing does Java support?
What type of parameter passing does Java support? In Java the arguments are always passed by value .
2013-05-16, 2197👍, 0💬

<< < 135 136 137 138 139 140 141 142 143 144 145 > >>   Sort: Date