问答题1请写出一下缩写的意义知道几个写几个JSSE HTTP HTTPS SSL LDAP RMI PKI PMI RSA MD5 CA RA SOAP ACML XACML JAAS2你知道多少个java的设计模式请写出出一个单例模式的程序。并用UML类图表示出这个类为单例的类。3接口是否可继承接口?抽象类是否可实现implements接口?抽象类是否可继承实体类c
-
JSSE - Java Secure Socket Extension HTTP - HyperText Transfer Protocol HTTPS - HyperText Transfer Protocol Secure SSL - Secure Sockets Layer LDAP - Lightweight Directory Access Protocol RMI - Remote Method Invocation PKI - Public Key Infrastructure PMI - Project Management Institute RSA - Rivest, Shamir, Adleman (encryption algorithm) MD5 - Message Digest Algorithm 5 CA - Certificate Authority RA - Registration Authority SOAP - Simple Object Access Protocol ACML - Access Control Markup Language XACML - eXtensible Access Control Markup Language JAAS - Java Authentication and Authorization Service
-
单例模式的程序示例:
public class Singleton {
private static Singleton instance;
private Singleton() {
// 私有构造函数
}
public static Singleton getInstance() {
if (instance == null) {
instance = new Singleton();
}
return instance;
}
}
UML类图表示单例模式的类:
--------------------------
| Singleton |
--------------------------
| + getInstance(): Singleton |
--------------------------
-
接口可以继承接口,使用关键字extends。 抽象类可以实现(implements)接口,使用关键字implements。 抽象类可以继承实体类(concrete class),使用关键字extends。
-
默认端口: HTTP - 80 HTTPS - 443 FTP - 21 Telnet - 23
-
常用的Linux命令及功能:
- ls: 列出文件和目录
- cd: 切换目录
- mkdir: 创建目录
- rm: 删除文件或目录
- cp: 复制文件或目录
-
更新学号为s1的记录为90分的SQL语句:
UPDATE student SET score = 90 WHERE student_id = 's1';
``
原文地址: https://www.cveoy.top/t/topic/hVOh 著作权归作者所有。请勿转载和采集!