| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Hi Friends, I am beginner in java. what i know about
synchonized keyword is,If more that one 1 thread tries to
access a particular resource we can lock the method using
synchronized keyword. Then after that how the lock is
released and how next thread access that.Please explain with
example. | | 1 |
| In which JDK version event-delegation model is introduced? | | 1 |
| without using arthematic operation ,how can you write the
logic for adding/substraction/multiplication? | Wipro | 4 |
| what is meant by UP& DOWN casting in java? | | 4 |
| How can a class be accessed, If no access modifiers are
declared? | | 2 |
| Why would you desing a J2EE application so user data is
entered by way of a JSP page and managed by an underlying
Java Beans class? | Adobe | 3 |
| when a servlet sends request for first time it uses the
follwing methods
a)init
b)doget()
c)dopost()
d)service | Accenture | 2 |
| What is the difference between error and exception and
explain in simple words not whatever is given in the book. | | 6 |
| class A{
m2(){
}
}
class B extends A{
m2(){
}
}
class c extends B{
m2(){
}
}
class my_class extends c{
m2(){
}
pulic static void main(){
...My_class a = new my_class();
super.super.super.m2(); is this is leagal
if not find what is the legal procedure in order to call A's
version of m2();
}
| Logica-CMG | 8 |
| Why cant we define System.out.println() inside a class
directly? | | 4 |
| why Runnable interface is preferable than extending the
Thread class? | Wipro | 5 |
| Difference between Superclass and Subclass? | | 2 |
| Difference between a Scrollbar and a ScrollPane? | | 1 |
| hi to all. well can you please tell me that why String class
is immutable?
Thanks in advance. | Huawei | 3 |
| static inner classes means..? | | 1 |
| By what default value is an object reference declared as an
instance variable? | Wipro | 1 |
| What is object | | 6 |
| what is difference between excute query ()and execute update
()? | Symphony | 5 |
| What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available? | | 4 |
| "we cannot create an object of interface but we can create
a variable of it".diacuss the statement with the help of
an example. | | 2 |
| |
| For more Core Java Interview Questions Click Here |