- Why Java termed as platform independent language? Or What makes Java platform independent?
- JDK is platform dependent or platform independent?
- Can you write a simple Java program and run it from command line ? Or What does 'public static void main ( String args[ ] ) ' stands for?
- What is PATH and CLASSPATH in Java ?
- What is encapsulation and how does make it Java an object oriented language ?
- What is difference between Interface and Abstract class ?
- Write a simple program to demonstrate where Interface and Abstract class finds it's uses ?
- What is polymorphism in Java ? Can you explain with it's implementation in Java ?
- Write a simple program to take input form user and find number is even or odd ?
- In c++ we have constructor/destructor for creating/destroying objects, how it is handled in Java / Object life cycle in Java?
- Have you used transient and volatile variable in Java? What is difference between them ?
- What is this and super in Java ?
- What do you mean by String is immutable ? or A question referring a String and
- Where do we use == and equals() ? or Why equals() is good to use for Objects comparison ?
- What is wrapper class in Java? Explain with an example.How to we convert an string into integer in Java?
- Have you used Java 5 for loop ? Can you write a sample how do we iterate an array of String Object using it ?
- What is difference between overloading and overriding ? Can you explain with an example?
- What is static keyword /static block in Java?
- What is difference between instance method and class method in Java?
- What do you mean by inner class in Java? What are different kind of inner classes in Java ?
- How many .class file generated, when you create a class inside another class and compile it using javac ?
- What is thread ?Can you explain thread life cycle? Does Java support threading, if yes, then how?
- What are different ways you can create thread in Java? What are pros/cons of one over another ?
- What happens when we call run() method directly instead of calling start() method on a thread ?
- What do you understand from synchronization method or block in Java ?
- What is Inheritance in Java? Explain with an example. Does Java support multiple inheritance ?
- Where do we use "protected" access modifier in Java ?/What are different access modifiers being used in Java ?
- What do you mean by dynamic binding in Java? Explain with an example.
- What is static binding in Java ?/ What is compile time binding ?
- What is basic criteria of distinguishing overloaded methods ?
- What is difference between String and StringBuffer, StringBuilder ?
- What is difference between these two declaration: String st1 = "abc"; String st2 = new String("abc");
- What is "final" keyword in Java? How does it affect variable, method or class behaviour?
- What is difference between IS-A and HAS-A in Java? Explain with an example.
- What is exception handing in Java? Explain with try, catch and finally keyword in java ?
- What is difference between final and finally in Java ?
- What is difference between ClassNotFoundException and NoClassDefFoundError ?
- What data structure have you used for holding Objects in Java ?
- What is difference between ArrayList and LinkedList ?
- Have you used HashMap? Write a sample code to create a hashMap and iteration over it ?
- Which of the two methods plays significant role in HashMap working ? / How equals() ad hashCode() play important role in hashMap working ?
- How do you convert an list into array in Java ?
- What are collections algorithm in java? Give few examples.
- How hashMap is different from hashSet ?/Difference between HashMap and Hashtable ?
- What do you mean by type safety in Java and how does generics helps to achieve it ?
- Annotations in Java ?
- What is difference between throw and throws keyword in Java and where do we use them ?
- Can we have two main methods in Java ? Justify your reasoning.
- What is class Loader in Java ? Can you name some class loader used in Java.
- Difference between comparator and comparable? Explain with example.
- How do you rate your self in Java?
51 frequently asked Java interview questions for freshers (0-2 Years Experience)
Java interview questions are widely spread over internet. Here I have compiled based on my experience with candidates and reading various pages over internet. Please refer for answers: 51 frequently asked Java interview questions and answers for freshers
Location:
Hyderabad, Telangana, India
0 comments:
Post a Comment