<< < 129 130 131 132 133 134 135 136 137 138 139 > >>   Sort: Date

What is the difference between Swing and AWT components?
What is the difference between Swing and AWT components? AWT components are heavy-weight, whereas Swing components are lightweight. Heavy weight components depend on the local windowing toolkit. For example, java.awt.Button is a heavy weight component, when it is running on the Java platform for Uni...
2012-08-22, 2408👍, 0💬

How do you create thread in.NET?
How do you create thread in.NET? 1) Import System.Threading 2) Create a new thread using new Thread() and assign the address of the method 3) Use Thread.Start method to start the execution using System; using System.Threading; public class Test { static void Main() { ThreadStart job = new ThreadStar...
2014-11-19, 2407👍, 0💬

What is the default value of an object reference declared as an instance variable?
What is the default value of an object reference declared as an instance variable? Null unless we define it explicitly.
2013-05-15, 2407👍, 0💬

What is the argument type of a program's main() method?
What is the argument type of a program's main() method? A program's main() method takes an argument of the String[] type.
2012-10-24, 2407👍, 0💬

How to check two arrays to see if contents have the same types and contain the same elements?
How to check two arrays to see if contents have the same types and contain the same elements? One of options is to use the equals() method of Arrays class. Arrays.equals(a, b); If the array types are different, a compile-time error will happen.
2012-09-06, 2407👍, 0💬

What are some alternatives to inheritance?
What are some alternatives to inheritance? Delegation is an alternative to inheritance. Delegation means that you include an instance of another class as an instance variable, and forward messages to the instance. It is often safer than inheritance because it forces you to think about each message y...
2013-02-08, 2405👍, 0💬

What method must be implemented by all threads?
What method must be implemented by all threads? All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.
2013-06-17, 2404👍, 0💬

Which method of the Component class is used to set the position and size of a component?
Which method of the Component class is used to set the position and size of a component? setBounds()
2012-09-27, 2404👍, 0💬

What is a native method?
What is a native method? A native method is a method that is implemented in a language other than Java.
2012-10-08, 2403👍, 0💬

Which containers use a FlowLayout as their default layout?
Which containers use a FlowLayout as their default layout? The Panel and Applet classes use the FlowLayout as their default layout.
2012-09-20, 2401👍, 0💬

What is the List interface?
What is the List interface? The List interface provides support for ordered collections of objects.
2013-04-10, 2400👍, 0💬

What is the difference between the prefix and postfix forms of the ++ operator?
What is the difference between the prefix and postfix forms of the ++ operator? The prefix form performs the increment operation and returns the value of the increment operation. The postfix form returns the current value all of the expression and then performs the increment operation on that value.
2013-01-23, 2399👍, 0💬

What is the preferred size of a component?
What is the preferred size of a component? The preferred size of a component is the minimum component size that will allow the component to display normally.
2012-09-19, 2395👍, 0💬

What is the difference between the String and StringBuffer classes?
What is the difference between the String and StringBuffer classes? String objects are constants. StringBuffer objects are not.
2012-11-06, 2392👍, 0💬

What is clipping?
What is clipping? Clipping is the process of confining paint operations to a limited area or shape.
2012-10-08, 2392👍, 0💬

which characters may be used as the second character of an identifier, but not as the first character of an identifier?
which characters may be used as the second character of an identifier, but not as the first character of an identifier? The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.
2012-09-21, 2392👍, 0💬

What is final?
What is final? A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).
2013-05-01, 2391👍, 0💬

What are order of precedence and associativity, and how are they used?
What are order of precedence and associativity, and how are they used? Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left
2012-10-09, 2391👍, 0💬

What is the difference between preemptive scheduling and time slicing?
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...
2012-10-04, 2389👍, 0💬

What does read() return at end of file?
What does read() return at end of file? 0 A defined (but false) 0 value is the proper indication of the end of file for read() and sysread().
2013-09-09, 2388👍, 0💬

What is the difference between a Scrollbar and a ScrollPane?
What is the difference between a Scrollbar and a ScrollPane? A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. A ScrollPane handles its own events and performs its own scrolling.
2013-04-05, 2388👍, 0💬

To what value is a variable of the String type automatically initialized
To what value is a variable of the String type automatically initialized The default value of a String type is null.
2012-10-10, 2388👍, 0💬

What are pass by reference and passby value?
What are pass by reference and passby value? Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.
2013-04-24, 2386👍, 0💬

What is transient variable?
What is transient variable? Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class is retrieved from the ObjectStrea...
2013-03-29, 2385👍, 0💬

<< < 129 130 131 132 133 134 135 136 137 138 139 > >>   Sort: Date