Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Plz tell me how to do programmes in java and explain everything(when to use float and int,etc.?
Give an example of a programme also.
3 Answers
- 1 decade agoFavorite Answer
For a tutorial check out Sun's own tutorial here:
http://java.sun.com/docs/books/tutorial/
Float, int, etc are data types and you should use them depending on the type of data you want to store. Ex. If you had a variable to store someones age, you could just use an int data type. If you needed a variable to store the area of a circle, you would use a float or double to get the decimal precision.
- GailLv 45 years ago
Both technology are great. I guess you should try both, see which one best suits you then pick it up. .NET is all around good framework, you can either do application (i meant reasonably fast application) or Enterprise application. Whereas the real technology Java can be used in the Industry is J2EE, Java is worst in Desktop Application because of its performance. Hope the open-sourcing of the JVM will help its performance. I knew that a big organization still sometimes use Java for desktop application but you need third party libraries and all stuff. Anyway both are great fun. And dont think .NET is just drag and drop, with Java you can do the same thing with some additional plugins for Eclipse or NetBeans. After using Visual Studio.NET, i found that some tasks you can do with drag and drop but you will get more controls if you use hand coding. Drag and drop is for lazy people, if you are keen to learn, you always can hand code everything