Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Java Complied File

View previous topic View next topic Go down

GMT + 3 Hours Java Complied File

Post by Diya Sun May 29, 2011 4:26 pm

sir
can we use our java complied file(.class) in a computer where java is not installed if yes then please guide me?
2nd:
what is toString() function, and why we use () when create an instance of class like Movie m=new Movie();
Thanks
Regards

diya [You must be registered and logged in to see this image.]

Diya
Diya
Monstars
Monstars

Taurus Goat
Posts : 364
Join date : 2011-02-08
Age : 33
Notworthy

Character sheet
Experience:
Java Complied File Left_bar_bleue10/500Java Complied File Empty_bar_bleue  (10/500)

Back to top Go down

GMT + 3 Hours Re: Java Complied File

Post by Vuhelper Sun May 29, 2011 4:27 pm

1) A JVM must be installed on the host machine to run the class file.

2) “toString()” is used to display state of an object in string format, it is often used when we want to see the current values/state of data members of object

3) Movie m=new Movie(); it is so that we are calling the constructor of Movie class. When ever a new object is to be created constructor of the class is called.
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum