<< < 123 124 125 126 127 128 129 130 131 132 133 > >>   Sort: Date

Name Container classes
Name Container classes Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane
2013-04-02, 2566👍, 0💬

What is the relationship between clipping and repainting?
What is the relationship between clipping and repainting? When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.
2012-11-30, 2565👍, 0💬

What comes to mind when someone mentions a shallow copy in Java?
What comes to mind when someone mentions a shallow copy in Java? Object cloning.
2013-04-15, 2559👍, 0💬

Is the ternary operator written x : y ? z or x ? y : z ?
Is the ternary operator written x : y ? z or x ? y : z ? It is written x ? y : z.
2012-11-13, 2559👍, 0💬

How is it possible for two String objects with identical values not to be equal under the == operator? How are this() and super(
How is it possible for two String objects with identical values not to be equal under the == operator? How are this() and super() used with constructors? The == operator compares two objects to determine if they are the same objects in memory. It is possible for two String objects to have the same v...
2012-08-01, 2559👍, 0💬

Why Java does not support multiple inheritance ?
Why Java does not support multiple inheritance ? This is a classic question. Yes or No depends on how you look at Java. If you focus on the syntax of "extends" and compare with C++, you may answer 'No' and give explanation to support you. Or you may answer 'Yes'. Recommend you to say 'Yes'. Java DOE...
2012-08-31, 2554👍, 0💬

Is "abc" a primitive value?
Is "abc" a primitive value? The String literal "abc" is not a primitive value. It is a String object.
2012-12-03, 2549👍, 0💬

What is JSP?
What is JSP? Let's consider the answer to that from two different perspectives: that of an HTML designer and that of a Java programmer. If you are an HTML designer, you can look at JSP technology as extending HTML to provide you with the ability to seamlessly embed snippets of Java code within your ...
2013-08-05, 2548👍, 0💬

What value is returned by a lone `return;' statement?
What value is returned by a lone `return;' statement? The undefined value in scalar context, and the empty list value () in list context. This way functions that wish to return failure can just use a simple return without worrying about the context in which they were called.
2013-09-11, 2547👍, 0💬

What restrictions are placed on method overriding?
What restrictions are placed on method overriding? Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method...
2012-07-30, 2546👍, 0💬

Why Java does not support pointers?
Why Java does not support pointers? Because pointers are unsafe. Java uses reference types to hide pointers and programmers feel easier to deal with reference types without pointers. This is why Java and C-sharp shine.
2012-08-22, 2545👍, 0💬

How are the elements of a GridBagLayout organized?
How are the elements of a GridBagLayout organized? The elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy more than one row or column of the grid. In addition, the rows and columns may have different sizes.
2012-07-24, 2543👍, 0💬

What if I write static public void instead of public static void?
What if I write static public void instead of public static void? Program compiles and runs properly.
2013-05-03, 2541👍, 0💬

What is the catch or declare rule for method declarations?
What is the catch or declare rule for method declarations? If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.
2012-10-11, 2541👍, 0💬

What kind of security tools are available in J2SE 5.0?
What kind of security tools are available in J2SE 5.0? There are three tools that can be used to protect application working within the scope of security policies set at remote sites. keytool -- used to manage keystores and certificates. jarsigner -- used to generate and verify JAR signatures. polic...
2012-09-03, 2541👍, 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, 2541👍, 0💬

Why is multiple inheritance not possible in Java?
Why is multiple inheritance not possible in Java? It depends on how you understand "inheritance". Java can only "extends" one super class, but can "implements" many interfaces; that doesn't mean the multiple inheritance is not possible. You may use interfaces to make inheritance work for you. Or you...
2012-08-27, 2539👍, 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, 2539👍, 0💬

What modifiers may be used with an inner class that is a member of an outer class?
What modifiers may be used with an inner class that is a member of an outer class? A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
2012-06-20, 2538👍, 0💬

What is the benefit of subclass?
What is the benefit of subclass? Generally: The sub class inherits all the public methods and the implementation. The sub class inherits all the protected methods and their implementation. The sub class inherits all the default(non-access modifier) methods and their implementation. The sub class als...
2012-08-16, 2536👍, 0💬

What is the difference between the File and RandomAccessFile classes?
What is the difference between the File and RandomAccessFile classes? The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.
2012-08-06, 2536👍, 0💬

How to make an array copy from System?
How to make an array copy from System? There is a method called arraycopy in the System class. You can do it: System.arraycopy(sourceArray, srcOffset, destinationArray, destOffset, numOfElements2Copy); When you use this method, the destinationArray will be filled with the elements of sourceArray at ...
2012-09-04, 2533👍, 0💬

Can a Byte object be cast to a double value?
Can a Byte object be cast to a double value? No, an object cannot be cast to a primitive value.
2012-11-05, 2532👍, 0💬

Is null a keyword?
Is null a keyword? The null value is not a keyword.
2012-09-18, 2532👍, 0💬

<< < 123 124 125 126 127 128 129 130 131 132 133 > >>   Sort: Date