老师绝对路径和相对路径是啥意思
老师背景颜色没有变色怎么回事呀,文件都引入了其他都没问题两个浏览器也试过了,方法啥的都有用就是不变色
老师,为什么在主线程休眠判断线程是否存活是false,而在子线程休眠判断是true?
这里public static MyInteger valueOf()和public static void valueOf()有啥区别啊
老师这两个dept是同一个吗。第二个应该是变量,拿来存放值的吧。
老师,这个网址我在其他浏览器打不开,请问是为什么呢
在首页提交后报错误500是哪里出了问题呢?
老师,主线程与A线程联合后,那B线程是怎么运行的
老师,sleep()和yeid()哪个比较常用?
老师,是不是可以出个直播,讲一下提交作业的格式和提供的哪些办公软件的使用方法,自己摸索也能摸索出来,但是有些软件感觉使用的不规范。
上课讲的左移位和右移位是运算效率最高的方式,这个结论要怎们通过代码证明一下比别的运算符效率高呢?
/** * 放馒头 */ public synchronized void push(ManTou manTou){ while(this.index == this.mt.length){ try{ this.wait(); }catch (InterruptedException e){ e.printStackTrace(); } } this.notify(); this.mt[this.index] = manTou; this.index++; } /** * 取馒头 */ public synchronized ManTou pop(){ while(this.index == 0){ try { this.wait(); } catch (InterruptedException e) { e.printStackTrace(); } } this.notify(); this.index--; return this.mt[this.index]; }
老师,我想问下执行完notify之后,是把当前线程的对象锁移交给在就绪状态使用相同对象锁的另一个线程吗?那么当前线程中的有关对象里的属性还能继续使用么,比如push方法在执行notify()后,SyncStack类的对象ss中的mt数组和index变量还有值么?唤醒之后push方法后面的代码还继续执行吗?还是直接到pop()中执行?为什么?
为什么我使用SELECT @@transaction_isolation;会查询不出来,显示> 1193 - Unknown error 1193,上网搜的是SELECT @@tx_isolation;就可以,但是我下载的是章节里面的版本为什么用不了视频里一样的命令
老师,我输入创建项目命令是这样的,按完回车直接是这样的
老师输入完命令下面有好多选项
老师帮我解答一下我那里出问题了
请问老师 这是什么情况 应该如何解决啊
package com.wxc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class Test01Jdbc { //向Departments表中添加一条数据 public void insertDepartments(String department_id,int location_id){ Connection conn=null; Statement state=null; try { //驱动注册 实例化数据库驱动对象 Class.forName("com.mysql.jdbc.Driver"); //创建连接 conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/bjsxt?useUnicode=true&characterEncoding=utf-8&useSSL=false","root","Bugaosun1"); //创建执行SQL的语句statement String sql="insert into departments values(default,'"+department_id+"','"+location_id+"')"; state=conn.createStatement(); int flag=state.executeUpdate(sql); System.out.println(flag); } catch (Exception e) { e.printStackTrace(); }finally { if (state!=null){ try { state.close(); } catch (SQLException e) { e.printStackTrace(); } } if (conn!=null){ try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } public static void main(String[] args){ Test01Jdbc test=new Test01Jdbc(); test.insertDepartments("研发部",8); } }
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637