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

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.
2012-07-09, 2335👍, 0💬

What is the purpose of the finally clause of a try-catch-finally statement?
What is the purpose of the finally clause of a try-catch-finally statement? The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.
2012-07-09, 2253👍, 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-07-07, 2289👍, 0💬

What is the purpose of the Runtime class?
What is the purpose of the Runtime class? The purpose of the Runtime class is to provide access to the Java runtime system.
2012-07-07, 2317👍, 0💬

What is the Properties class?
What is the Properties class? The properties class is a subclass of Hashtable that can be read from or written to a stream. It also provides the capability to specify a set of default values to be used.
2012-07-05, 2346👍, 0💬

How can a subclass call a method or a constructor defined in a superclass?
How can a subclass call a method or a constructor defined in a superclass? Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass's constructor.
2012-07-05, 2272👍, 0💬

What is the SimpleTimeZone class?
What is the SimpleTimeZone class? The SimpleTimeZone class provides support for a Gregorian calendar.
2012-07-04, 2228👍, 0💬

When is the ArithmeticException throwQuestion: What is the GregorianCalendar class?
When is the ArithmeticException throwQuestion: What is the GregorianCalendar class? The GregorianCalendar provides support for traditional Western calendars.
2012-07-04, 2311👍, 0💬

What is the difference between the Boolean & operator and the && operator?
What is the difference between the Boolean & operator and the && operator? If an expression involving the Boolean & operator is evaluated, both operands are evaluated. Then the & operator is applied to the operand. When an expression involving the && operator is evaluated...
2012-07-03, 2277👍, 0💬

Is the numeric promotion available in other plantform?
Is the numeric promotion available in other plantform? Yes. Because Java is implemented using a platform-independent virtual machine, bitwise operations always yield the same result, even when run on machines that use radically different CPUs.
2012-07-03, 2281👍, 0💬

What is the numeric promotion?
What is the numeric promotion? Numeric promotion is used with both unary and binary bitwise operators. This means that byte, char, and short values are converted to int values before a bitwise operator is applied. If a binary bitwise operator has one long operand, the other operand is converted to a...
2012-07-02, 2557👍, 0💬

How does Java handle integer overflows and underflows?
How does Java handle integer overflows and underflows? It uses low order bytes of the result that can fit into the size of the type allowed by the operation.
2012-07-02, 3269👍, 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, 2370👍, 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, 2391👍, 0💬

What is the purpose of 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.
2012-06-28, 2417👍, 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, 2377👍, 0💬

How can you write a loop indefinitely?
How can you write a loop indefinitely? for(;;)--for loop; while(true)--always true, etc.
2012-06-27, 2232👍, 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-06-27, 2293👍, 0💬

Name Component subclasses that support painting?
Name Component subclasses that support painting? The Canvas, Frame, Panel, and Applet classes support painting.
2012-06-26, 2346👍, 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-06-26, 2359👍, 0💬

Does garbage collection guarantee that a program will not run out of memory?
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.
2012-06-25, 2315👍, 0💬

What are wrapped classes?
What are wrapped classes? Wrapped classes are classes that allow primitive types to be accessed as objects.
2012-06-25, 2555👍, 0💬

What's the main difference between a Vector and an ArrayList?
What's the main difference between a Vector and an ArrayList? Java Vector class is internally synchronized and ArrayList is not.
2012-06-22, 2328👍, 0💬

How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?
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...
2012-06-22, 2442👍, 0💬

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