Monday, 23 June 2014

CoreJava Interview questions

CORE JAVA
How many ways to create an object in java?
Explain JVM architecture?
What is polymorphism?
Difference bw abstract class and interface?
What is anonymous inner class?
Can we define abstract and static for single method?
What is singleton class and singleton variable? How to create?
What is reflection?
Write code for how to provide input from keyboard?
How will you handle exceptions in java?
Types of exceptions?
Can we define exception for method in interface?
Frequently faced exceptions in daily activities?
What is checked and unchecked exceptions?
Super class for all exception classes?
What is diff bw classnotfound exception and classdefinitionnotfound exception?
Difference bw final, finally, finalize?can we call finalize method?
What is garbage collector?
Can we extend String class? Why?
Difference bw string buffer and string builder?
What is thread? Explain thread communication? Ways to create a thread?
How many ways to create thread?
Thread synchronization?
How to compare two objects in java?
What is dead lock?
Thread life cycle?
What is thread safe?
Why we are not calling run method directly in thread?
What is thread priority range and how to set , what is highest and lowest priority?
How to create dynamic thread in java?
Diff bw suspend and sleep?
What is provide a case waiting to die?
What is synchronized block or method?
What is generics?
Diff bw equal and ==?
Can we place main method inside a main method?
What is static? And what is the use of it? Rules for static?
What is serialization? How to do?
Diff bw comparator and comparable?
What is marker interface?
Explain collection framework?
Write code for hashmap?
Difference bw arraylist and vector?
Difference bw arraylist and linkedlist?
What is set? How to retrieve set values?
How to get index of vector?
Difference bw list and linkedlist?
Difference bw collection and collecitons?
Diff we array and vector?
Difference bw iterator and listiterator?
What is map? How to retrieve map values?
Difference bw HashMap and HashTable?
What is clone? How to do?
What are all the object methods in java?
What is the wait and sleep diff?
What is singleton variable?
Diff be string buffer and string builder?

No comments:

Post a Comment