java基础
JSP的9个内置对象是:out、request、response、page、pageContext、session、application、exception、config。要注意对象名的大小写
What results from attempting to compile and run the following code? public class Ternary{ public static void main(String args[]){ int a = 5; System.out.println("Value is - " + ((a < 5) ? 9.9 : 9)); } }
应该输出 Value is -9.0
((a < 5) ? 9.9 : 9) 这里因为前面的 9.9是 double类型的,所以后面的9也会被转换为double类型的进行输出
语句int i=3.2;说法 错误
编译错误,浮点数不能自动转化为整数
相关文档:
1、进程与线程:
《1》什么是进程:是指运行中的应用程序,每一个进程都有自己独立的内存空间,
一个应用程序可以同时启动多个进程,(静态)比如(IE,JVM)
《2》什么是线程:是指进程中的一个执行流程, ......
WindowsMobile系统无法直接管理JAVA插件,需要借助JAVA虚拟机来管理JAVA插件,WM平台常见的JAVA虚拟机有Jbed和Jblend。下面就WM平台管理JAVA插件做简要介绍。
1、Jbed
Esmertec公司的产品,外部命令管理方式为:
安装:\Windows\jbed.exe -DFile.maxStorageSize=64M -ginstall \" ......
最近学习java用到了JList,对于向JList中添加数据,困扰了好久,上网查给的答案都没个合适的,问了老师才弄明白些,总结如下:
1.使用Vector:首先把你的数据项都存放在Vector中,然后调用JList的setListData()方法,将Vector添加到JList中
Vector vt=new Vector();
JList list=new JLis ......
public class TreeNodes{
IList<BranchInfo> branchs = BranchInfoManager.getAllBranchInfos();
foreach(BranchInfo branch in branchs){
TreeNode branchNode = new TreeNodeCreate(branch.BranchName,branch.BranchId.toString(),"","~/Images/menuclose.gif");
  ......
Groovy supports a few neat ways to work with SQL more easily and to make SQL more Groovy. You can perform queries and SQL statements, passing in variables easily with proper handling of statements, connections and exception handling thanks to closures.
import groovy.sql.Sql
def foo = 'cheese ......