方法定义的完整格式
2016-07-10 10:47
281 查看
访问权限{public|default|protected|private} [final] [static] [synchronized]
返回值类型 方法名称(参数类型 参数名称,...) [throws Exception1, Exception2]{
[return [返回值|返回调用处]]
}
例如:
public final static synchronized String getInfo(String str) throws Exception{
return str;
}
返回值类型 方法名称(参数类型 参数名称,...) [throws Exception1, Exception2]{
[return [返回值|返回调用处]]
}
例如:
public final static synchronized String getInfo(String str) throws Exception{
return str;
}
相关文章推荐
- poj1463(树形DP)
- 关于浏览器和网络的20项须知-HTML、JAVASCRIPT、CSS...
- 高并发性能调试经验分享
- 算法导论 第三部分——基本数据结构——红黑树
- Android之listview万能适配器
- 【MyBatis框架】查询缓存-二级缓存原理
- NYOJ_1022 合纵连横 并查集的删除
- python学习——迭代器
- python文件操作整理汇总
- 数据结构-->二叉树的链式实现 ADT
- svn版本发布
- leetcode之ZigZag Conversion
- DrawingCombiner——CAD图纸批量合并软件
- 【旅游攻略】:帽儿山旅游攻略
- rails学习资源
- 文章标题
- React独立组件间通信联动
- python风格规范
- 【MyBatis框架】查询缓存-一级缓存原理
- ubuntu下安装rubymine成功