<< < 2 3 4 5 6 7 8 9 10 11 12 > >>   Sort: Date

Is delete a keyword in Java?
Is delete a keyword in Java? No, delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.
2013-06-26, 2446👍, 0💬

Name two subclasses of the TextComponent class.
Name two subclasses of the TextComponent class. TextField and TextArea
2012-10-29, 2446👍, 0💬

Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?
Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile? Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can not resolv...
2013-05-13, 2441👍, 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, 2440👍, 0💬

Is Iterator a Class or Interface? What is its use?
Is Iterator a Class or Interface? What is its use? Iterator is an interface which is used to step through the elements of a Collection.
2012-05-23, 2434👍, 0💬

How are the elements of a BorderLayout organized?
How are the elements of a BorderLayout organized? The elements of a BorderLayout are organized at the borders (North, South, East, and West) and the center of a container.
2012-11-08, 2433👍, 0💬

How do you know if an explicit object casting is needed?
How do you know if an explicit object casting is needed? If you assign a superclass object to a variable of a subclass's data type, you need to do explicit casting. For example: Object a; Customer b; b = (Customer) a; When you assign a subclass to a variable having a supeclass type, the casting is p...
2012-08-07, 2433👍, 0💬

What is casting?
What is casting? There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to ...
2012-07-30, 2432👍, 0💬

Why do we need to use getSystemResource() and getSystemResources() method to load resources?
Why do we need to use getSystemResource() and getSystemResources() method to load resources? Because we want to look for resources strictly from the system classpath, These methods use the system ClassLoader to locate resources, which gives you stricter control of the resources used by the applicati...
2012-09-12, 2428👍, 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, 2421👍, 0💬

What is Serialization and deserialization?
What is Serialization and deserialization? Serialization is the process of writing the state of an object to a byte stream. Deserialization is the process of restoring these objects.
2012-08-09, 2420👍, 0💬

What is the Set interface?
What is the Set interface? The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.
2012-08-02, 2420👍, 0💬

Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written?
Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written? Yes, it does. The FileNoFoundException is inherited from the IOException. Exception's subclasses have to be caught first.
2012-06-13, 2419👍, 0💬

When a thread blocks on I/O, what state does it enter?
When a thread blocks on I/O, what state does it enter? A thread enters the waiting state when it blocks on I/O.
2012-10-10, 2417👍, 0💬

Can you declare a class as private?
Can you declare a class as private? Yes, we can declare a private class as an inner class. For example, class MyPrivate { private static class MyKey { String key = "12345"; } public static void main(String[] args) { System.out.println(new MyKey().key);//prints 12345 } }
2012-08-23, 2416👍, 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, 2415👍, 0💬

What are synchronized methods and synchronized statements?
What are synchronized methods and synchronized statements? Synchronized methods are methods that are used to control access to a method or an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to s...
2012-06-04, 2415👍, 0💬

What is the default value of the local variables?
What is the default value of the local variables? The local variables are not initialized to any default value, neither primitives nor object references. If you try to use these variables without initializing them explicitly, the java compiler will not compile the code. It will complain abt the loca...
2013-07-01, 2413👍, 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, 2402👍, 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, 2401👍, 0💬

What is multi-threading?
What is multi-threading? Multi-threading means various threads that run in a system.
2012-06-08, 2401👍, 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-06-06, 2401👍, 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, 2398👍, 0💬

What is the difference between the Font and FontMetrics classes?
What is the difference between the Font and FontMetrics classes? The FontMetrics class is used to define implementation-specific properties, such as ascent and descent, of a Font object
2012-07-17, 2398👍, 0💬

<< < 2 3 4 5 6 7 8 9 10 11 12 > >>   Sort: Date