What is the difference between Set and List?
What is the fundamental difference between the Set<E> and List<E> interfaces? ...
What is the fundamental difference between the Set<E> and List<E> interfaces? ...
If you had an array of Strings, what is the quickest way to sort this array in ascending order ? ...
In theory, is it easier to remove elements from an ArrayList or a LinkedList ? ...
The Queue data structure is said to follow the FIFO strategy. What does this mean ? ...
Can you give an example where the Queue data structure can be specially helpful ...
What are some of the different ways a developer can create his own List objects? ...
When you create a collection object (List, Set, etc), usually they take a parameter known as "initialCapacity". What does this parameter mean and how is it used ? ...
If I run my JBoss application from the Windows command prompt I can get the list of printers (including networked printers just fine). If I run my JBoss application as a Windows service, I only get the list of printers that are directly connected to the machine. The networked printers don't show up. Here is the Java code I use to get...
Suppose the following object structure: class Super {} class SubA extends Super {} class SubB extends Super {} I want to be able to have a variable that will hold the class object for either of my subclasses. I feel like this should do it: Class<Super> classObj; Then, I want to be able to something like this: classObj = SubA.cla...
Naive question about Java syntax. What does <T> T accept(ObjectVisitorEx<T> visitor); mean? What would be the C# equivalent? ...
I'm having an issue using the Cookie class of the Servlet API 2.5 on Tomcat . I pull out the list of cookies from the HttpServletRequest object and iterate over them like so: Cookie[] cookies = request.getCookies(); for(Cookie cookie : cookies) { System.out.println("Name=" + cookie.getName() + " Domain=" + cookie.getDomain()); } Ho...
I'm creating a view in eclipse to display stack traces, and I want to have the view accessible from a button in the header. So I'm creating an extension using the plugin.xml framework, like this basically: <extension point="org.eclipse.ui.commands"> <command categoryId="com.commands.category" id="commands.tracing" ...
I have a good understanding of object oriented programming but it's been a while since I programmed. I want to learn it again. What are the most important aspects of Java programming that are important to learn so I can identify myself as a programmer. I had trouble learning Swing before and I gave up but I want to try it again to learn ...
HI I recently deployed a war file. I get the following error. IF anyone can help it be great. [http-8080-Processor24] ERROR Exception sending context initialized event o listener instance of class app.util.ApplicationEventsListener [at org.apache. atalina.core.StandardContext.listenerStart(StandardContext.java:3768)] ava.lang.NoCl...
When I change the "overflow" style on document.body from "hidden" to "auto", it forces a reload of a Java applet that is on the page. I have set overflow to hidden because most of the time I don't want scrollbars to be visible on the page, but I'd like to enable them without losing state in my applet. Is this possible, or is there ano...
The JEE specification states that an EJB injection like this: @EJB MyInterface myBean; will create en entry in the Enterprise Naming Context, viz. java:comp/env/.MyInterface/myBean. It is up to the deployer to bind this context entry to a real value and to inject this value in the myBean field. Now I have the feeling I am missing som...
i have written an application, but for some reason it keeps peaking at 100%. I ran a profile r on a few of the classes and a report show that isReset() and isRunning() seems to be called alot of times. Do you see anything wrong please inform me. thanks Class 1 is the only class that uses the isReset() code so i hope this helps u guys in...
I get this error Jun 23, 2009 4:49:10 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 5265 ms 0 [http-8080-Processor25] ERROR Could not load security-xss-regex.txt file. [at app.sparx.navigate.AppNavigationControllerServlet.init(AppNavigationControllerServlet.java:45)] Unable to register any web resourc...
I was just reading abit about JMS and Apache ActiveMQ. And was wondering what real world use have people here used JMS or similar message queue technologies for ? ...
Possible Duplicate: How do I start optimising my Java code? - CPU is at 100% I have a method isReset() that's executing like crazy i defined it as public boolean isReset() { return reset; } in another class. the class below is the only class that uses this code. import java.awt.BorderLayout; import java.awt.Dimension...