This week's book giveaway is in the Agile/Processes forum.
We're giving away four copies of Building Green Software: A Sustainable Approach to Software Development and Operations and have Anne Currie, Sarah Hsu , Sara Bergman on-line!
See this thread for details.

Supriya Nimakuri

Ranch Hand
+ Follow
since May 23, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Supriya Nimakuri

How can we design an application by developing Form Beans and Action Classes to write the routing logic and calling different services...

Regards..

Supriya
18 years ago
how can we use Struts frmaework for designing of an application flow...

Regards..
18 years ago
whats the differnce between


request.getSession(true);
request.getSession(false);

Also, In what situations they are used.

Regards..
what is the relation between GenericSerlet and HttpServlet.

Is GenricServlet the super class for HttpServlet..

Question 2:

What is the role of initialization in Servlet life cycle. what actually it initializes.

Regards..
Hey Swapnil..

Congrats!!! Have fun

Supriya
18 years ago
I am done with SCJP 1.4, where i am heading for SCWCD now.What are the best books to prepare for that. Is the pattern same as scjp 1.4 and what are drag and drop questions.
URL for individual topic .


http://www.danchisholm.net/july21/topic/index.html

Good luck..
Sorry Barry....I dont trouble you again...I will compile first ..if i dont get I will post the question.

Thnx for the suggestion..
I am sorry ...i didnt check the syntax
2. import java.io.IOException;
3. public class ExceptionTest(
4. public static void main (String[]args)
5. try (
6. methodA();
7. ) catch (IOException e) (
8. system.out.printIn(�Caught IOException�);
9. ) catch (Exception e) (
10. system.out.printIn(�Caught Exception�);
11. )
12. )
13. public void methodA () {
14. throw new IOException ();
15. )
11. try {
12. if ((new Object))(.equals((new Object()))) {
13. System.out.println(�equal�);
14. )else{
15. System.out.println(�not equal�);
16. }
17. }catch (Exception e) {
18. System.out.println(�exception�);
19. }
What is the result?

A. equal
B. not equal
C. exception
D. Compilation fails.
We can say that two methods can be overloaded if thier argument lists are different.

My Question is...

public int (int a , int b, float c){}

Are these below methods are overloaded.. when comparre with above one..

public int (int b , int a, float c){} //order changes


public int (int xyz , int abc, float c){}// change in variable names.
1. public class Test{
2. public static void main( String[] argv ){
3. // insert statement here
4. }
5. }
Which statement, inserted at line 3, produces the following output?

Exception in thread �main� java.lang.AssertionError: true
at Test.main(Test.java:3)
//
Can you explain the reason...

A. assert true;
B. assert false;
C. assert false : true;
D. assert false == true;
E. assert false: false;
Why is Line 20 gives an error and why not 18.???

11. public class Test {
12. public void foo() {
13. assert false;
14. assert false;
15. }
16. public void bar(){
17. while(true){
18. assert false;
19. }
20. assert false;
21. }
22. }
What causes compilation to fail?

A. Line 13
B. Line 14
C. Line 18
D. Line 20
which of the foloowing can be placed at /* Point X */ to comile without eoorrs

1. public class Exception Test {
2. class TestException extends Exception {}

3. public void runTest() throws TestException {}
4. public void test() /* Point X */ {
5. runTest();
6. }
7. }

I guess it should be B or C...

A. No code is necessary.
B. throws Exception
C. catch ( Exception e )
D. throws RuntimeException
E. catch ( TestException e)


Regards..