Jump to content

Java/j2Ee Discussions


lolliman

Recommended Posts

[quote name='coca-cola' timestamp='1382080048' post='1304432684']
when a servlet is deployed in a server and multiple machines sends multiple requests then how the servlet handles those requests..............can anyone explain plz........
[/quote]

if I understand you ques clearly ...

oka servlet vundhi and adhi multiple requests ni ela handle chesthundhi ?? right ?

If so, servlet container every servlet ki oka instance create chesthundhi .. and each request ki oka thread create avthadhi .. then servlet service method will handle requests (like threads) ...

Link to comment
Share on other sites

[quote name='tpt2usa123' timestamp='1382187009' post='1304438029']
Can any one please explain about extensible interface
[/quote]

interface extensible enti .. ?

implements - interface
extends - class

Link to comment
Share on other sites

[quote name='dhruva' timestamp='1382194066' post='1304438236']


but akda requirement emi ledhu...they said .. just questions on core java...thats it...so i wanted to brush up my basics and didnt know any other book :( so i opted for complete reference thinking that it will cover evrything...but i understood after the interview ...aa book antha bandaga unna...adhi antha basics ani....i need to prepare so much more than that...
but even now also i dont which book will cover concepts like these..i saw so many good reviews for effective java ...iam thinking start reading that...lets see...Thank you for the suggestion though..
[/quote]

Np .. All the best :)

Link to comment
Share on other sites

[quote name='GaliSrinu' timestamp='1382002442' post='1304427267']
lynda.com lo java training videos ela untayi... ovaraina try chesara... or any other site with good video tutorials suggest cheyyandi... please &.,?
[/quote][url="http://www.javatpoint.com/"]http://www.javatpoint.com/[/url] choodu.u can easily understand . &.,? &.,?

Link to comment
Share on other sites

[quote name='innovative' timestamp='1382231965' post='1304440087']

interface extensible enti .. ?

implements - interface
extends - class
[/quote]

The question is asked like this " what is extensible interface in java"

Link to comment
Share on other sites

[quote name='tpt2usa123' timestamp='1382274045' post='1304441467']

The question is asked like this " what is extensible interface in java"
[/quote]
The interface by default extensible cuz it can't be final

Link to comment
Share on other sites

Can someone explain

List<MyClass> list = new ArrayList<MyClass>();
ArrayList<MyClass> arrayList = new ArrayList<MyClass>();

which one is more efficient?

Link to comment
Share on other sites

[quote name='kiran karthik' timestamp='1382279070' post='1304441574']
Can someone explain

List<MyClass> list = new ArrayList<MyClass>();
ArrayList<MyClass> arrayList = new ArrayList<MyClass>();

which one is more efficient?
[/quote]

[url="http://stackoverflow.com/questions/13709795/what-is-the-difference-between-declaring-listinteger-vs-arraylistinteger?rq=1"]http://stackoverflow...istinteger?rq=1[/url]

More efficient is ArrayList. I would prefer using.

Link to comment
Share on other sites

abbbaaa thammudu .... adi extensible kadhuuuuu .... externalize interface adiiiii.....


assalu adi enti anteee ... it is a kind of serialization ..... mari already serialization undi kadha gidhi endhuku antavu kadhaa ....


serialization sesthy .... JVM aaa object state ni byte gaa write chesthadi ....... geeda problem endhi anteee current object lo unna anni variables , objects , including super classes serialization aithai .... like nuvvu oka car object lo car model , car miles , and licence number serialazation chedam anukunav ..... kani java serialazation process car ki unna engine , tyrs , dikki gitlaa ani serialze chesthadi ..... so adi performance problem .......


ippudu exrernalize interface use chesthy , u can choose what feilds to serialize .... nuvvu 2 methods override cheyali writeExternal and readExternal .... vitini use chesi u can choose which feilds to serialize


[quote name='tpt2usa123' timestamp='1382274045' post='1304441467']

The question is asked like this " what is extensible interface in java"
[/quote]

  • Upvote 1
Link to comment
Share on other sites

below one is better programming model ..... choose always interface based programming ....

[b]List<MyClass> list = new ArrayList<MyClass>(); [/b]


[quote name='kiran karthik' timestamp='1382279070' post='1304441574']
Can someone explain

List<MyClass> list = new ArrayList<MyClass>();
ArrayList<MyClass> arrayList = new ArrayList<MyClass>();

which one is more efficient?
[/quote]

Link to comment
Share on other sites

[quote name='ZOO_LAKA_TAKA' timestamp='1382286000' post='1304441872']
below one is better programming model ..... choose always interface based programming ....

[b]List<MyClass> list = new ArrayList<MyClass>(); [/b]
[/quote]
reason?

Link to comment
Share on other sites

[quote name='kiran karthik' timestamp='1382286414' post='1304441896']
reason?
[/quote]

May be coz we can use all the methods available in the particular Interface List.

Link to comment
Share on other sites

[quote name='ZOO_LAKA_TAKA' timestamp='1382285890' post='1304441865']
abbbaaa thammudu .... adi extensible kadhuuuuu .... externalize interface adiiiii.....


assalu adi enti anteee ... it is a kind of serialization ..... mari already serialization undi kadha gidhi endhuku antavu kadhaa ....


serialization sesthy .... JVM aaa object state ni byte gaa write chesthadi ....... geeda problem endhi anteee current object lo unna anni variables , objects , including super classes serialization aithai .... like nuvvu oka car object lo car model , car miles , and licence number serialazation chedam anukunav ..... kani java serialazation process car ki unna engine , tyrs , dikki gitlaa ani serialze chesthadi ..... so adi performance problem .......


ippudu exrernalize interface use chesthy , u can choose what feilds to serialize .... nuvvu 2 methods override cheyali writeExternal and readExternal .... vitini use chesi u can choose which feilds to serialize
[/quote]

Thanks a lot for the explanation...

Link to comment
Share on other sites

×
×
  • Create New...