hi all,
there r couple of of questions.
Question 1)
here is one interview question.
Can u override variables?
pl explain
Question 2)can anybody explain me how a servlet containerhandles multiple request from diff clients
when
case a)there is only one instance in pool and there r 1000 requests
sub case1: if servlet method is synchronised.(SingleThreadModel interface)
sub case2: non synchronised service
case b)there r 100 instance of servlet in pool and 1000 requests
and non synchronised service
as wrox book says
it can adopt 2 methods.
1)instance pooling
2)request serialization
bot for syn service method
is this right?
Question 3)
here is some code which tests the private access specifiers
class inner_one's constructor is private and one of its method is private
it is still accessible by inner_two
how?
is private access specifier does't apply to inner classes?
public class private_test{
public class inner_one{
private inner_one(){
}
private void inner_amethod(){
}
}
public class inner_two{
inner_two(){
inner_one in1 = new inner_one();
in1.inner_amethod();
}
}
}