TechFundu

  • Increase font size
  • Default font size
  • Decrease font size
Welcome Guest,  Login | Join Now
Home Read Articles Java Technologies


SCJP Exam Prepration Questions - Part 2

(1 vote, average 5.00 out of 5)
Question 51
Click the Exhibit button.
11. public class Bootchy {
12. int bootch;
13. String snootch;
14.
15. public Bootchy() {
16. this(”snootchy”);
17. System.out.print(”first “);
18. }
19.
20. public Bootchy(String snootch) {
21. this(420, “snootchy”);
22. System.out.print(”second “);
23. }
24.
25. public Bootchy(int bootch, String snootch) {
26. this.bootch = bootch;
27. this.snootch = snootch;
28. System.out.print(”third “);
29. }
30.
31. public static void...

Last Updated on Tuesday, 19 January 2010 09:57
 

SCJP Exam Prepration Questions - Part 1

(3 votes, average 3.33 out of 5)
Question 1
Given:
11. public interface Status {
12. /* insert code here */ int MY_VALUE = 10;
13. }

Which three are valid on line 12? (Choose three.)
A. final
B. static
C. native
D. public
E. private
F. abstract
G. protected

Answer: ABD

Question 2
Given:
10. public class Bar {
11.static void foo(int...x) {
12. // insert code here
13. }
14. }

Which two code fragments, inserted independently at line 12, will allow the class to compile? (Choose two.)
A. foreach(x) System.out.println(z);
B...

Last Updated on Tuesday, 19 January 2010 09:55
 

FTP Client Implementation in Java

(12 votes, average 4.08 out of 5)
I recently worked on a project where I had to implement a FTP client program in Java. Project requirement was to download a text file from a FTP Server, after that transform that file into an another format that again was a text file and then upload this new transformed text file to another FTP Server. This was the first time that I was working on FTP file download/upload operation in a java program. First task for me was to find a stable Java API for FTP operation and I came across apache...

Last Updated on Thursday, 31 December 2009 10:31
 

JSP Interview Questions

(5 votes, average 3.60 out of 5)
 

What is the difference between JSP and Servlets ?

JSP is used mainly for presentation only. A JSP can only be HttpServlet that means the only supported protocol in JSP is HTTP. But a servlet can support any protocol like HTTP, FTP, SMTP etc.

What is the difference between custom JSP tags and beans?

Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries that can be used in any...

Last Updated on Thursday, 13 August 2009 06:40
 


Page 2 of 5

Follow us on Twitter