GSSP-JaVa 試験問題を無料オンラインアクセス
試験コード: | GSSP-JaVa |
試験名称: | GIAC Secure Software Programmer - Java |
認定資格: | GIAC |
無料問題数: | 275 |
更新日: | 2025-09-05 |
You work as a Programmer for InfoTech Inc and develop the following two
<security-constraint>
declarations.
<security-constraint>
<web-resource-collection>
<web-resource-name>Manager</web-resource-name>
<url-pattern>/acme/Manager/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Manager</web-resource-name>
<url-pattern>/acme/Manager/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>Manager</role-name>
</auth-constraint>
</security-constraint>
Which of the following statements is true about the <auth-constraint> in the code given above?
Martin works as a Programmer in Data Net Inc. He writes the following code.
1.class Ques0191{
2.public static void main(String[] argv){
3.byte a = 1;
4.switch(a+1){
5.case 1.
6.System.out.println("One");
7.case 2.
8.System.out.println("2");
9.case 2.
10.
System.out.println("Two"); break;
11.
}
12.
}
13.
}
What will happen when Martin attempts to compile and execute the code?
Given below are top-level class declarations. Which of these class declarations would not produce a compile-time error?
abstract class P {} //1
private class Q {} //2
static class R {} //3
transient class S {} //4