Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 24-04-06, 01:01 PM   #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 keerthi has disabled reputation

Answer the following



1)Can you have virtual functions in Java?



2)What is more advisable to create a thread, by implementing a Runnable interface
or by extending Thread class?





3)what is a platform?



4)What is JVM?


Edited by: keerthi
__________________
\"Winners don\'t do different things.They do things Differently\"
keerthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24-04-06, 11:57 PM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
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 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute


3)what is a platform?

It is an environment in which we can execute our programs.


4)What is JVM?

It is an interpretor which converts java byte code into executable format so that the program can be executed in the given platform or environment.

Edited by: sk_kireeti
__________________
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.
sk_kireeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25-04-06, 01:03 AM   #3 (permalink)
Junior Member
 
Join Date: Apr 2006
Location: India
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 nishant_jaina has disabled reputation
hi
1) in java functions are automatically virtual, i mean the method of that class will be called who's object is made.


2) It totaly depends upon the need of the code that what u


3) & 4) I am satisfied with the Kireeti's answer..
nishant_jaina is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25-04-06, 02:43 AM   #4 (permalink)
Junior Member
 
Join Date: Feb 2006
Location: India
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 pgnvssskumar has disabled reputation


2)What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?

Runnable interface is more flexible to create a thread.


implementing the Runnable interface only requires an implementation for the run() method. Since Runnable is an interface, you can still extend from another class.


In thread class, a single inheritance facility provided in java.


If you extended from one thread, you cannot extended from another thread. Where, Runnable interface can be exteneded from any other class.




3)what is a platform?

A group of computer programs that help to manage the computer’s resources. It acts as an interface between the computer and its application programs.
__________________
Be dare in all your ways.
pgnvssskumar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25-04-06, 03:01 AM   #5 (permalink)
Junior Member
 
Join Date: Apr 2006
Location:
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 maheshkp has disabled reputation
hi guys
i want to know what is a ?
1. testing tools
2. advantages
3. how to learn


__________________
mahesh
maheshkp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25-04-06, 03:09 AM   #6 (permalink)
Junior Member
 
Join Date: Feb 2006
Location: India
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 pgnvssskumar has disabled reputation
1) If we use any class,can create objects only. There isno modication on objects,if we implements an interface then we have own implementation?


My openion is that , in java ifwe developimplementation objects are more flexible? Is there any facility in java?


__________________
Be dare in all your ways.
pgnvssskumar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25-04-06, 06:04 AM   #7 (permalink)
Junior Member
 
Join Date: Feb 2006
Location:
Posts: 16
Thanks: 0
Thanked 1 Times in 1 Posts
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 3 sriya has disabled reputation
hi guys

can v have global variables in java?


pls do answer this ques?
__________________
sriya
sriya is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26-04-06, 11:22 AM   #8 (permalink)
Junior Member
 
Join Date: Apr 2006
Location: India
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 savita_solankar has disabled reputation
ya the instance var r global only.
savita_solankar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-01-07, 12:13 PM   #9 (permalink)
Member
 
Join Date: Jan 2007
Posts: 32
Thanks: 3
Thanked 3 Times in 3 Posts
Thanks: 3
Thanked 3 Times in 3 Posts
Rep Power: 2 Laxminarayanak will become famous soon enough
Re: java contest-35

Q:- Can you have virtual functions in Java?
Reply :
Virtual in c++ mean that it will give the latest implementation of the method
in java mehtods are by default virtual.
Ex:
Class A{
public String firstTestMethod(String k,String n){
return "";
}
}
Class B Extends A{
public String firstTestMethod(String k,String n){
return "FromCLassB "+k+" "+n;
}
}


Class C{
public static void main(String args[]){
B b=new B();
System.out.println(b.("Hello From","Main"));
}
}

Out put is
:FromCLassB Hello From Main
__________________
Cheers,
Laxmi
Laxminarayanak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Laxminarayanak For This Useful Post:
Shiva Shankar (23-01-07)
Old 01-06-07, 11:48 AM   #10 (permalink)
Member
 
deepesh's Avatar
 
Join Date: May 2007
Location: Bangalore
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 2 deepesh is on a distinguished road
Re: java contest-35

no, we can't have global variables in java...
JVM has three things;
1. Class loader
2. class verifier
3. interpreter.....
__________________
Thanks & Regards,

Deepesh
The Language of Friendship is not Words but Meanings....
deepesh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-06-07, 02:31 PM   #11 (permalink)
TAM
Senior Member
 
TAM's Avatar
 
Join Date: Oct 2006
Location: Mayiladurai (TN)
Posts: 233
Thanks: 8
Thanked 7 Times in 5 Posts
Thanks: 8
Thanked 7 Times in 5 Posts
Rep Power: 5 TAM is on a distinguished road
Re: java contest-35

global variables breaks encapsulation hence java didn't support global variabels
TAM is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +6.5. The time now is 03:18 AM.





Search Engine Optimization by vBSEO 3.1.0