-
There are 45 members in a group. 9 members have shoes but no hats. 18 members have shoes. How many members are there who have only hats? a)12 b) 19 c) 27 d) 18
d)18.no. of members who have both hats and shoes=18 - 9 = 9no. of members who have hats = 45 - 18 = 27no. of members who have hats only hats = 27 - 9 = 18.
-
-
why servlet is used as controller ?not JSP? i want complete Explation?
In struts servlet control the application and we know that a jsp compiled into a servlet first. The only problem with the servlet is that it needs to write out.println call per HTML line. But as a controller in struts servlets do not force the programmers to write out.println, that is the part of JSP which acts as View.So if the controller would be JSP the translation (JSP compiled to a servlet)step...
-
Find the next number in the series. 1, 0.5, 0.25, 0.125
0.0625Multiply each term by 0.5
-
Find the next number in the series 3, 4, 6, 9, 13,?
Next number will be 18.This is fibonacci series X, X+1, X+2, X+3.....
-
marker interface having no methods right.. then what is the use of marker interface? for what purpose we use marker interface?
One of the "clean" features of the Java programming language is that it mandates a separation between interfaces (pure behavior) and classes (state and behavior). Interfaces are used in Java to specify the behavior of derived classes. Often you will come across interfaces in Java that have no behavior. In other words, they are just empty interface definitions. These are known as marker interfaces....