how good of a java developer are you?
DESCRIPTION
How good is your J2EE Skills?! Answer and win your seat at Writing Secure J2EE Code at AppSec USA - October 23-26th, 2012.TRANSCRIPT
![Page 1: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/1.jpg)
Writing Secure J2EE Code
AppSec USA - 23-26 October, 2012
![Page 2: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/2.jpg)
Get a Big Scoop of Java Security
![Page 3: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/3.jpg)
2 Days of Hands-on J2EE Security Code Training.
How Data Breaches Happen And How to Prevent Them.
J2EE Security Architecture Best Practices.
Introduction to Secure Code Review for J2EE Applications.
![Page 4: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/4.jpg)
RESERVE YOUR SEAT NOW
Reserve Your Seat and Register at:http://www.appsecusa.org/schedule/trainings/writing-secure-j2ee-code/
![Page 5: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/5.jpg)
YOU CAN EVEN WIN YOUR SEAT
• No Budget?
• No Problem...
![Page 6: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/6.jpg)
Here Are The RulesWIN a Free Seat at Writing Secure J2EE Code Class
IF
You could answer the 3 questions in the following 3 slides
AND
You Could Help Us Spread the Word About this Awesome Event!
![Page 7: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/7.jpg)
THE JAVA CHALLENGE!
![Page 8: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/8.jpg)
Question 1:
What will happen when you attempt to compile and run the following code?
public class MyClass{ static { int one = 5; } static int one,two; public static void main(String args[]) { one--; operate(); System.out.println(one + two + ++one); } public static void operate() { two = one++ + ++one; }} A. Compile-time errorB. Run-time errorC. prints : 2D. prints : 3E. prints : 5F. prints : 7
![Page 9: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/9.jpg)
Question 2:
What is the result when you compile and run the following code?
public class MyClass { static void operate() { System.out.println("Inside operate()."); throw new IllegalAccessException("BAD!"); } public static void main(String args[]) { try { operate(); } catch (IllegalAccessException e) { System.out.println("Caught " + e); } } }A. Compilation errorB. Runtime errorC. Compile successfully, nothing is printed.D. Inside operate(). followed by caught: java.lang.IllegalAccessExcption: BAD!
![Page 10: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/10.jpg)
Question 3:What will happen when you attempt to compile and run the following code (there are two correct answers)?
public class MyClass extends Thread{ String myVar; MyThread(String name) { myVar = name; } public void run() { for(int i=0; i<50;i++) { System.out.println(myVar); } } public static void main(String args[]) { try { MyThread t1 = new MyThread("t1"); MyThread t2 = new MyThread("t2"); t1.start(); // Position1 t2.start(); } catch(InterruptedException ex) { } }}A. The above code in its current condition will not compile. B. In order to make the MyThread class prints "t1" (50 times) followed by "t2" (50 times), t1.join(); can be placed at //Position1 position.C. In order to make the MyThread class prints "t1" (50 times) followed by "t2" (50 times), t1.sleep(50); can be placed at //Position1 position.D. In order to make the MyThread class prints "t1" (50 times) followed by "t2" (50 times), t1.run(); can be placed at //Position1 position.E. In order to make the MyThread class prints "t1" (50 times) followed by "t2" (50 times), there is no need to write any code.
![Page 11: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/11.jpg)
THE “OTHER CHALLENGE”
![Page 12: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/12.jpg)
SPREAD THE WORD• Tweet the following:
“How Good of a Java Developer are You? http://www.slideshare.net/skoussa/how-good-of-a-java-developer-are-you
”
• Facebook and LinkedIn counts
• You win if you could get the most number of Retweets, Facebook likes, LinkedIn Likes
![Page 13: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/13.jpg)
TO WIN
![Page 14: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/14.jpg)
Send the answers plus your Twitter handle (Facebook or LinkedIn if you used them) to:
by
October 2nd.
![Page 15: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/15.jpg)
Helpful Tips!• START EARLY!
• Remember it does not matter how big is your network, as much as how early you start.
• Send as many updates on Twitter, Facebook and LinkedIN as possible. Everything counts!
• Be innovative with your updates!
• Good Luck :)
![Page 16: How Good of a Java Developer are You?](https://reader033.vdocuments.mx/reader033/viewer/2022061115/545beb72af7959cd098b4590/html5/thumbnails/16.jpg)
• Follow @skoussa and\or @appsecusa and the winner will be announced on
October 5th, 2012
Good Luck