<< < 119 120 121 122 123 124 125 126 127 128 129 > >>   Sort: Date

What is new with the stop(), suspend() and resume() methods in JDK 1.2??
What is new with the stop(), suspend() and resume() methods in JDK 1.2?? The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.
2012-09-18, 2608👍, 0💬

How many ways can we express string in Perl?
How many ways can we express string in Perl? Many. For example 'this is a string' can be expressed in: "this is a string" qq/this is a string like double-quoted string/ qq^this is a string like double-quoted string^ q/this is a string/ q&this is a string& q(this is a string)
2013-09-25, 2607👍, 0💬

What is an IO filter?
What is an IO filter? An IO filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.
2012-08-02, 2606👍, 0💬

How do I read command-line arguments with Perl?
How do I read command-line arguments with Perl? With Perl, command-line arguments are stored in the array named @ARGV. $ARGV[0] contains the first argument, $ARGV[1] contains the second argument, etc. $#ARGV is the subscript of the last element of the @ARGV array, so the number of arguments on the c...
2013-09-19, 2605👍, 0💬

What's new with the stop(), suspend() and resume() methods in JDK 1.2?
What's new with the stop(), suspend() and resume() methods in JDK 1.2? The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.
2012-06-05, 2604👍, 0💬

Can we use System.arraycopy() method to copy the same array?
Can we use System.arraycopy() method to copy the same array? Yes, you can. The source and destination arrays can be the same if you want to copy a subset of the array to another area within that array.
2012-09-04, 2602👍, 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-07-23, 2601👍, 0💬

Binary value in Switch case
Is it possible to pass a binary value to 'case' of 'switch' statement?The control value which we are using to test is also binary. switch(binary value) { case 0000: System.out.println(" "); break; case 0001: System.out.println(" "); break; }
2014-02-20, 2597👍, 0💬

How to create a thread in a program?
How to create a thread in a program? You have two ways to do so. First, making your class "extends" Thread class. Second, making your class "implements" Runnable interface. Put jobs in a run() method and call start() method to start the thread.
2012-06-11, 2597👍, 0💬

How do you connect to the database from JSP?
How do you connect to the database from JSP? A Connection to a database can be established from a jsp page by writing the code to establish a connection using a jsp scriptlets. Further then you can use the resultset object "res" to read data in the following way.
2013-08-08, 2596👍, 0💬

Can each Java object keep track of all the threads that want to exclusively access to it?
Can each Java object keep track of all the threads that want to exclusively access to it? Yes. Use Thread.currentThread() method to track the accessing thread.
2012-06-13, 2594👍, 0💬

Which TextComponent method is used to set a TextComponent to the read-only state?
Which TextComponent method is used to set a TextComponent to the read-only state? setEditable()
2012-11-28, 2593👍, 0💬

Can a .java file contain more than one java classes?
Can a .java file contain more than one java classes? Yes, a .java file contain more than one java classes, provided at the most one of them is a public class.
2013-06-24, 2590👍, 0💬

When should the method invokeLater()be used?
When should the method invokeLater()be used? This method is used to ensure that Swing components are updated through the event-dispatching thread.
2012-06-29, 2590👍, 0💬

Can an anonymous class be declared as implementing an interface and extending a class?
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.
2012-06-28, 2590👍, 0💬

What do you understand by Synchronization?
What do you understand by Synchronization? Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modif...
2012-05-22, 2588👍, 0💬

Can a lock be acquired on a class?
Can a lock be acquired on a class? Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.
2012-06-05, 2587👍, 0💬

What is the Map interface?
What is the Map interface? The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.
2012-07-20, 2585👍, 0💬

What is design by contract?
What is design by contract? The design by contract specifies the obligations of a method to any other methods that may use its services and also theirs to it. For example, the preconditions specify what the method required to be true when the method is called. Hence making sure that preconditions ar...
2012-08-15, 2582👍, 0💬

How many methods in Object class?
How many methods in Object class? This question is not asked to test your memory. It tests you how well you know Java. Ten in total. clone() equals() & hashcode() getClass() finalize() wait() & notify() toString()
2012-06-29, 2582👍, 0💬

What restrictions are placed on the values of each case of a switch statement?
What restrictions are placed on the values of each case of a switch statement? During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.
2012-12-04, 2580👍, 0💬

How could Java classes direct program messages to the system console, but error messages, say to a file?
How could Java classes direct program messages to the system console, but error messages, say to a file? The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This ho...
2012-05-18, 2578👍, 0💬

A set of tables are maintained in a Dataset as ...
A set of tables are maintained in a Dataset as ... A set of tables are maintained in a Dataset as * TablesCollection object * DataTableCollection object * DataRowsCollection object * TableRowCollection object TablesCollection object
2014-07-11, 2576👍, 0💬

What happens to objects lost in "unreachable" memory..... ?
What happens to objects lost in "unreachable" memory..... ? What happens to objects lost in "unreachable" memory, such as the object returned by Ob-&gt;new() in `{ my $ap; $ap = [ Ob-&gt;new(), \$ap ]; }' ? Their destructors are called when that interpreter thread shuts down. When the interp...
2013-09-20, 2574👍, 0💬

<< < 119 120 121 122 123 124 125 126 127 128 129 > >>   Sort: Date