| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is Assertion? | Wipro | 2 |
| Is it compulsory to have atleast one abstract method in
abstract class?
| | 7 |
| What is thread? | BMC | 5 |
| i need example for java abstraction. where we use
abstraction and why we need abstraction. | Oracle | 1 |
| Why do inner class cannot have static declaration except
static nested class? | Wipro | 1 |
| Name the method that is used to set a TextComponent to the
read-only state? | | 1 |
| Without creating a new object, How you can retrieve a
String or other object? | | 1 |
| What is dynamic binding? | | 2 |
| Given:
1. package test;
2.
3. class Target {
4. public String name = “hello”;
5. }
What can directly access and change the value of the
variable name?
1 any class
2 only the Target class
3 any class in the test package
4 any class that extends Target
| | 3 |
| Difference between Interface & Abstract class? | | 3 |
| In Serialization, whether you will use Static variables? | HCL | 2 |
| I have an HashMap object, which has with key and value pair.
It has 10 keys and values in that object. Now the question
is I want insert new key and value in middle or any where in
that list but not at the end or at the top. Is it possible
or not. If yes how can we achieve this one? | Huawei | 1 |
| can u handle an error if u write Thowable in the catch
class lise
try
{
some errorneous code
}catch(Throwable e){ ...} | | 4 |
| What is the difference between throw and throws? | | 5 |
| What are integer overflows and underflows and how to handle
them? | Wipro | 2 |
| Write a program to create a binary Tree ? | | 1 |
| What is the purpose of having the concept of overloading? | Ness-Technologies | 5 |
| what is an anonymous class? | TCS | 5 |
| What is JIT ? | Satyam | 4 |
| What is the purpose of the File class? | | 2 |
| |
| For more Core Java Interview Questions Click Here |