Monday, May 24, 2010

What is the purpose of a java interface?

From the various books and web pages I've read they state that they are a badge that the class can wear to say it can do certain methods. But at university they seem to be putting great emphasis on their functional ability, which confuses me because they are just method declarations with no body.

What is the purpose of a java interface?
Interfaces:-%26gt; These are abstract data types that represent collections. Interfaces allow collections to be manipulated independently of the details of their representation. In object-oriented languages, interfaces generally form a hierarchy.





A collection — sometimes called a container — is simply an object that groups multiple elements into a single unit. Collections are used to store, retrieve, manipulate, and communicate aggregate data.





A collections framework is a unified architecture for representing and manipulating collections.





The Java Collections Framework provides the following benefits:


1. Reduces programming effort


2. Increases program speed and quality


3. Allows interoperability among unrelated APIs


4. Reduces effort to learn and to use new APIs


5. Reduces effort to design new APIs


6. Fosters software reuse





An interface allows somebody to start from scratch to implement your interface or implement your interface in some other code whose original or primary purpose was quite different from your interface. To them, your interface is only incidental, something that have to add on to the their code to be able to use your package.





An interface is a description of a set of methods that conforming implementing classes must have


How can i make a modular program in java?

I still dont know how to make an object oriented program in java. Would anyone please teach me%26gt;??

How can i make a modular program in java?
Keep your methods and classes closed. When you start to see the same code (or similar code with predictable variations) popping up in a couple different places, look for a way to pull that code into its own method or class to promote reuse.
Reply:If you separate each logical element of your problem and implement each as different classes it would be OO, and as there will be separate .class files generated it would be modular and you could reuse those classes on different applications. An example division to classes : customer, order, invoice, product





Loren Soth
Reply:Java by its nature is both modular and object oriented. So if you write your java program in the usual java way, you will get what you want.

brandon flowers

Is it okay to uninstall the Java Environment stuff from Add or Remove Programs?

each file takes up about 100 + MB... is it okay to uninstall, will it affect my web surfing, etc?

Is it okay to uninstall the Java Environment stuff from Add or Remove Programs?
Well, you only need one, so if you have multiple ones, you can uninstall them all but the latest one. Just be sure to leave the most recent one - Java6 update 2. Otherwise, you won't be able to view certain sites correctly. But, you can certainly uninstall all the older versions - you only need one.
Reply:you could but i have found out t hard way it doesn't run properly
Reply:No keep Java on. You need it if you browse the web and run into any java applets
Reply:I think that depends. U may install Java Enviroment 'cauz it's necessary for some softwares like azureus, if that is the condition, u may uninstall that software %26amp; java and find an alternative which can works out without Java. And for the browsers plugins stuff, mozilla firefox and opera has their own plugins for java and should not occupy such space in disk.
Reply:Do not "uninstall" JAVA. You computer needs it to run properly when its on the internet.





Most all web pages require some form of JAVA to display properly.
Reply:Yes you could uninstall it from Add or Remove Programs... But, if you do this many features on many sites will be disabled. You may see text instead of where a picture should be on some sites. Especially game sites, game sites would give you a big problem if your not running java.








Edit: If i were you i would uninstall all of your java features then go on java.com or something like that site not sure if that one is correct and download the latest version of java.
Reply:It could affect it. It depends on the sites you visit (and what non-web related software you use that depends on Java)


Where can I find free java programs for the Motorola v360i?

I have the cable connector. Is upload complicated?

Where can I find free java programs for the Motorola v360i?
no, you just put the file on your phone and run it. no installation needed. look for JAR files. usually its easier to google the files you are looking for, like "currency converter JAR" on google or something. but www.mobile9.com has alot of free stuff too.


Is anyone there who has experience in java language programming?

Can someone suggest me software in order to edit and compile java file and where I can download it? It is very useful to me. Except : EditPlus, Ultraedit, otsEditor, notepad, textpad, and i dont want to choose compile using jdk

Is anyone there who has experience in java language programming?
I used to use Jcreator quite a bit and BlueJ sometimes when I programmed in java.
Reply:BlueJ is a simple editor for Java. It's prefered by a lot of beginners.





Netbeans is the "official" editor for the Java language and you can download it along with the Java SDK. This editor is more powerful, but some people find it more complicated than BlueJ.





Eclipse is basicly an alternative to Netbeans. Alot of people prefer this to Netbeans.





(BTW.. For anything, but Netbeans, you need to download and install the JDK separately.)





I would recommend downloading all 3 and trying them for yourself. It shouldn't take long for you to determine which is the right one for you.
Reply:Eclipse or Netbeans would be fine places to start.


Skip things like BlueJ -- you'll just end up learning that program and nothing about Java.





Personally, I strongly recommend a command prompt and notepad and calling "javac" and "java" directly with an SDK install. This will make you actually _learn_ Java and what's going on. If you take the easy way out early on, you're going to short yourself on some fundamentals. There are plenty of tutorials on Sun's pages to get you started this way.
Reply:Eclipse is the best tool to use. It is free and open-source.
Reply:JBuilder...
Reply:u need the program dat kit thingy


What is an "IRC client" and how is it different from using java script?

I recently got into chatting and one of the how to do's for the chat room talked about IRC client and it appears that you have more capabilites if you use this forum. Is that true, and if so, what is better about it?

What is an "IRC client" and how is it different from using java script?
An IRC client is nothing but a program used to connect to an irc (it means internet relay chat) network. you have more functionability using a client. You also can log onto irc anonymously that java script will not allow you to do. Mirc is probably the most popular irc client and can be downloaded at mirc.com
Reply:A IRC client is a program that lets you into IRC chat rooms. The best is MIRC www.mirc.com It has LOTS more features than just a JAVA client! Check it out!

video cards

How do I install a Java Game on my Sony Ericsson S700?

I downloaded both the Jad and Jar files in the "other" folder on my mobile phone, but there is no install option, please help.

How do I install a Java Game on my Sony Ericsson S700?
Here's a guide on installing java games on Sony Ericsson phones-


http://www.esato.com/board/viewtopic.php...





Hope that helps