JavaPins - Stories tagged with Faq's

Difference between Comparator and Comparable in Java ~ Java Stuff

published 785 days, 1 hour, 23 minutes ago posted by javastuffjavastuff 787 days, 17 hours, 3 minutes ago
Tuesday, February 21, 2012 2:51:01 AM GMT Saturday, February 18, 2012 11:10:51 AM GMT
1) Comparator in Java is defined in java.util package while Comparable interface in Java is defined in java.lang package. 2) Comparator interface in Java has method public int compare (Object o1, Object o2) which returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. While Comparable interface has method public int compareTo(Object o) which returns a negative integer, zero, or a positive integer as this object is less than... (more)
category: JAVA | clicked: 9 | comment | | source:
tags: comparable, Comparator, core java, Faq's

Struts Interview Questions with Answers ~ Java Stuff

published 793 days, 40 minutes ago posted by javastuffjavastuff 796 days, 9 hours, 47 minutes ago
Monday, February 13, 2012 3:33:26 AM GMT Thursday, February 09, 2012 6:27:00 PM GMT
Q:   What is Struts?A:   The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages applicationarchitectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm. Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts... (more)
category: Struts | clicked: 13 | comment | | source:
tags: Faq's, Struts Interview Questions