<< < 19 20 21 22 23 24 25 26 27 > >>   Sort: Date

What state is a thread in when it is executing?
What state is a thread in when it is executing? An executing thread is in the running state.
2012-12-31, 2216👍, 0💬

Can try statements be nested?
Can try statements be nested? Try statements may be tested.
2013-01-23, 2214👍, 0💬

What are the Object and Class classes used for?
What are the Object and Class classes used for? The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.
2013-01-25, 2212👍, 0💬

Primitive data types are passed by reference or pass by value?
Primitive data types are passed by reference or pass by value? Primitive data types are passed by value.
2013-05-16, 2211👍, 0💬

What are runtime exceptions?
What are runtime exceptions? Runtime exceptions are those exceptions that are thrown at runtime because of either wrong input data or because of wrong business logic etc. These are not checked by the compiler at compile time.
2013-05-28, 2210👍, 0💬

What is HashMap and Map?
What is HashMap and Map? Map is Interface and Hashmap is class that implements that.
2013-04-25, 2210👍, 0💬

Why are the methods of the Math class static?
Why are the methods of the Math class static? So they can be invoked as if they are a mathematical code library.
2012-12-28, 2210👍, 0💬

How is it possible for two String objects with identical values not to be equal under the == operator?
How is it possible for two String objects with identical values not to be equal under the == operator? The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.
2012-12-28, 2210👍, 0💬

What is an Iterator interface?
What is an Iterator interface? The Iterator interface is used to step through the elements of a Collection.
2012-09-26, 2210👍, 0💬

What is synchronization and why is it important?
What is synchronization and why is it important? With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of...
2013-02-12, 2209👍, 0💬

If a method is declared as protected, where may the method be accessed?
If a method is declared as protected, where may the method be accessed? A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.
2012-12-18, 2209👍, 0💬

What is JVM?
What is JVM? JVM stands for Java Virtual Machine. It is the run time for java programs. All are java programs are running inside this JVM only. It converts java byte code to OS specific commands. In addition to governing the execution of an application's byte codes, the virtual machine handles relat...
2013-03-13, 2207👍, 0💬

What are the problems faced by Java programmers who don't use layout managers?
What are the problems faced by Java programmers who don't use layout managers? Without layout managers, Java programmers are faced with determining how their GUI will be displayed across multiple windowing systems and finding a common sizing and positioning that will work within the constraints impo...
2013-01-31, 2207👍, 0💬

Can an abstract class be final?
Can an abstract class be final? An abstract class may not be declared as final.
2013-01-17, 2207👍, 0💬

What happens to the static fields of a class during serialization?
What happens to the static fields of a class during serialization? There are three exceptions in which serialization doesnot necessarily read and write to the stream. These are 1. Serialization ignores static fields, because they are not part of ay particular state state. 2. Base class fields are on...
2013-05-23, 2206👍, 0💬

Can we define private and protected modifiers for variables in interfaces?
Can we define private and protected modifiers for variables in interfaces? Yes.
2013-02-05, 2206👍, 0💬

Which Math method is used to calculate the absolute value of a number?
Which Math method is used to calculate the absolute value of a number? The abs() method is used to calculate absolute values.
2012-12-13, 2206👍, 0💬

How does an exception permeate through the code?
How does an exception permeate through the code? An unhandled exception moves up the method stack in search of a matching When an exception is thrown from a code which is wrapped in a try block followed by one or more catch blocks, a search is made for matching catch block. If a matching type is fou...
2013-05-31, 2205👍, 0💬

What is Externalizable interface?
What is Externalizable interface? Externalizable is an interface which contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism. Thus if your class implements this interface, you can customize the serialization process by implementing the...
2013-05-22, 2205👍, 0💬

Is null a keyword?
Is null a keyword? The null value is not a keyword.
2013-02-14, 2203👍, 0💬

You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declar
You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces? Sometimes. But your class may be a descendent of another class and in this case the interface is...
2013-04-14, 2202👍, 0💬

I made my class Cloneable but I still get 'Can't access protected method clone. Why?
I made my class Cloneable but I still get 'Can't access protected method clone. Why? Yeah, some of the Java books, in particular "The Java Programming Language", imply that all you have to do in order to have your class support clone() is implement the Cloneable interface. Not so. Perhaps that was t...
2013-02-07, 2202👍, 0💬

How do you enable the concurrent garbage collector on Sun's JVM?
How do you enable the concurrent garbage collector on Sun's JVM? -Xconcgc options allows us to use concurrent garbage collector (1.2.2_07+)we can also use -XX:+UseConcMarkSweepGC which is available beginning with J2SE 1.4.1.
2013-03-28, 2201👍, 0💬

What modifiers can be used with a local inner class?
What modifiers can be used with a local inner class? A local inner class may be final or abstract.
2012-12-11, 2200👍, 0💬

<< < 19 20 21 22 23 24 25 26 27 > >>   Sort: Date