| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,419
Thanks: 0 Thanked 18 Times in 13 Posts Thanks: 0
Thanked 18 Times in 13 Posts
Rep Power: 19
|
Answer the following
1. What is serializable Interface ? 2. What is the difference between CGI and Servlet ? 3. What is the use of Interface ? 4. Why Java is not fully objective oriented ? 5. Why does not support multiple Inheritance ?
__________________
\"Winners don\'t do different things.They do things Differently\" |
|
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Mar 2006
Posts: 609
Thanks: 0 Thanked 26 Times in 9 Posts Thanks: 0
Thanked 26 Times in 9 Posts
Rep Power: 10
|
HI,
1.It helps to assign the serializable data to the tagged classes. 2.Java servelets runs inside the web server. IN CGI,the process is external to the web server
__________________
\"A GREAT PLEASURE IN LIFE IS DOING WHAT PEOPLE SAY YOU CANNOT DO\". |
|
|
|
|
|
#3 (permalink) |
|
Moderator
Join Date: Jun 2006
Location: India
Posts: 960
Thanks: 0 Thanked 21 Times in 20 Posts Thanks: 0
Thanked 21 Times in 20 Posts
Rep Power: 14
|
Hi i think 2)CGI, which was a process based, that is for every request made by client,even for the duplicate request an extra process is created. Servlet Technology is very much efficient, Servlets provide a component-based, platform-independent method for building Web-based applications, without the performance limitations of CGI programs. regards wizkid
__________________
\"WHEN GOING GETS TOUGH, ONLY THE TOUGH GETS GOING\" |
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: Mar 2006
Location:
Posts: 14
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
|
1. What is serializable Interface ?
serializable interface is used to automatically write to a stream. to save the properties in case of java beans 2. What is the difference between CGI and Servlet ? CGI is used to provide graphical interface.servlets run on the backside of CGI 3. What is the use of Interface ? to provide multiple inheritance
__________________
THANX AND REGARDS |
|
|
|
|
|
#5 (permalink) |
|
Senior Member
Join Date: Jun 2006
Location: India
Posts: 139
Thanks: 0 Thanked 3 Times in 3 Posts Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 4
|
hi,
3) java is not 100% an OOP Language because it doest not support multiple Inheritance which is a property of OOP but we can get the facility of multiple inheritance my extending a class and implementing few interfaces... |
|
|
|
|
|
#6 (permalink) |
|
Junior Member
Join Date: Jul 2006
Location: India
Posts: 2
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
|
1.Serializable:
Thewriting the object in to streams of byte.This is can be used in RMI(Remote Method Innvocation). It is an marker interface where this can be used in transferring one object to other over the network. |
|
|
|
|
|
#7 (permalink) |
|
Junior Member
Join Date: Aug 2006
Age: 25
Posts: 3
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
|
Re: Java Contest-33
Hi freinds
java doesnt support multiple inheritance because i like to say a small example Think tat there is an interface A with a method "sample()" and there are two subclasses B,C implementing that interface and providing different implementations for tat "sample()" in there own classes and suppose let us assume for a while tat if java supports multiple inheritance ,nou the picture comes into reality assume there is a class D which extends both B & C nou if we want to inherit the "Sample()" we cannot decide that which class's sample() will execute so to avoid this messy javasoft deleted the concept of multiple inheritance .i think im clear if there are any more doubts pls mailme to mrgharikrishna@gmail.com |
|
|
|
|
|
#8 (permalink) |
|
Super Moderator
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117 Thanked 241 Times in 198 Posts Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51
|
Re: Java Contest-33
Similar post...
Is Java an 100% OOP language??
__________________
Give 1 cup rice to a hungry Indian just by a mouse click. No money, no form filling, no hassle... Click here for the donation. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|