Home
Java Basics
Questions and Answers
Page 1    >  >     Page 2    >  >     Page 3    >  >     Page 4    >  >     Page 5
What is the difference between an Interface and an Abstract class?
How can we take decision about when we have to use Interface and when Abstract Class?
Describe synchronization in respect to multithreading.
Explain different way of using thread?
What are pass by reference and passby value?
What is HashMap and Map?
Difference between HashMap and HashTable?
What is the purpose of garbage collection in Java, and when is it used?
Difference between Vector and ArrayList?
Difference between Swing and Awt?
What is the difference between a constructor and a method?
What is an Iterators?
State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.
What is an abstract class?
What is static in java?
What is final?
What if the main method is declared as private?
What if the static modifier is removed from the signature of the main method?
What if I write static public void instead of public static void?
What if I do not provide the String array as the argument to the method?
What is the first argument of the String array in main method?
If I do not provide any arguments on the command line, then the String array of Main method will be empty of null?
How can one prove that the array is not null but empty?
What environment variables do I need to set on my machine in order to be able to run Java programs?
Can an application have multiple classes having main method?
Can I have multiple main methods in the same class?
Do I need to import java.lang package any time? Why ?
Can I import same package/class twice? Will the JVM load the package twice at runtime?
What are Checked and UnChecked Exception?
What is Overriding?
What are different types of inner classes?
Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?
What is the difference between declaring a variable and defining a variable?
What is the default value of an object reference declared as an instance variable?
Can a top level class be private or protected?
What type of parameter passing does Java support?
Primitive data types are passed by reference or pass by value?
Objects are passed by value or by reference?
What is serialization?
How do I serialize an object to a file?
Which methods of Serializable interface should I implement?
How can I customize the seralization process? i.e. how can one have a control over the serialization process?
What is the common usage of serialization?
What is Externalizable interface?
What happens to the object references included in the object?
What one should take care of while serializing the object?
What happens to the static fields of a class during serialization?
Does Java provide any construct to find out the size of an object?
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?
OneInfoPlace server is currently busy. Please try later. Sorry for the inconvenience
Comments/Feedback: Please login to participate