Some notes in Stanford CS106A(3)

wleaves 2019-03-10 原文

Some notes in Stanford CS106A(3)

1.If ( str1==str2 ) 

means if str1 and str2 are refers to the same OBJECT.

But when compare string , they are not the same actual object.

So we usually use “str1.equals(str2)” to compare the value of the two strings.

2.encryption  Caesar Cipher

3.RAM—-random access memory * everything have an adress 

1 ) Static variables/Const  ( in a special location ) –in the memories to visit at the beginning of program

2 ) Dynamic variables ( use “new” on ) — the memory that comes for a dynamic called the HEAP.  HEAP goes from the top and goes down.

Garbage collection : It’s memory from the heap just gets reclaimed when it’s no longer being used. But Ala you’re using it , this memory still set aside for you.

3 ) Local variables ( Stack ) — method or parameters ( that got copied of the values which means it has to live sw in memory ) . Stack from the deep and goes up.

When those variables go out of scope , like the method actually end, or get some closing curly brace, the Stack will AUTO get the memories:

—-when variables is no longer use , it will popped off from the stack — remove from the top. ( automaticlly get de-allocated by the machine. )

4 ) Stack piont to a location in heap.

4. Exception (略)

 

发表于 2019-03-10 18:11 苏悠莫 阅读() 评论() 编辑 收藏

 

版权声明:本文为wleaves原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/wleaves/p/10506245.html

Some notes in Stanford CS106A(3)的更多相关文章

  1. (Stanford CS224d) Deep Learning and NLP课程笔记(一):Deep NLP – 公子天

    (Stanford CS224d) Deep Learning and NLP课程笔记(一):Deep NLP […]...

  2. Some notes in Stanford CS106A

    Some notes in Stanford CS106A Karel world 1.During make […]...

  3. django.db.models.fields.related_descriptors.RelatedObjectDoesNotExist: Course has no coursedetail.

    错误描述:   一对一反向查询失败!   前提:   Course和CourseDetail    OneTo […]...

  4. Some notes in Stanford CS106A(2)

    Some notes in Stanford CS106A(2) 1.Local variable(local […]...

  5. Stanford coursera Andrew Ng 机器学习课程编程作业(Exercise 1)

    Exercise 1:Linear Regression—实现一个线性回归 在本次练习中,需要实现 […]...

  6. Stanford NLP学习笔记:7. 情感分析(Sentiment)

    1. 什么是情感分析(别名:观点提取,主题分析,情感挖掘。。。) 应用: 1)正面VS负面的影评(影片分类问题 […]...

  7. AWS CSAA — 01 Introduction To The Course

    1. 为什么要学习AWS认证? 2. AWS认证的考试是如何组织的? 3. 你需要做些什么? 4. 关于CSA […]...

  8. stanford Protege 4.3 ERROR: Bundle org.protege.common 解决方法 – Wonder奇迹奇迹

    stanford Protege 4.3 ERROR: Bundle org.protege.common 解 […]...

随机推荐

  1. MSF初体验

    最近做某安全竞赛平台的比赛,真正开始接触Metasploit这一渗透神器,同时也是装逼神器(2333….),下 […]...

  2. ASP.NET Core教程【三】实体字段属性、链接标签、并发数据异常、文件上传及读取

    前文索引:ASP.NET Core教程【二】从保存数据看Razor Page的特有属性与服务端验证ASP.NE […]...

  3. 生产者消费者模型在项目中的实际应用

    前言   不知道大家有没有遇到过这种情况,某个接口的响应时间会随着请求量的变大而越来越慢,明明CPU已经马力全 […]...

  4. 报表如何集成 echarts 官网示例图 – IBelieve002

    报表如何集成 echarts 官网示例图 Echarts,江湖人称一个纯 Javascript 的图表库,图形 […]...

  5. 高数上第一章知识点总结 – Tracy-mac

    高数上第一章知识点总结 第一章 函数与极限 1.1 函数及其性质 1.1.1 集合 集合:具有某种特定性质事物 […]...

  6. Hive(4)-Hive的数据类型

    Hive(4)-Hive的数据类型 一. 基本数据类型 Hive数据类型 Java数据类型 长度 例子 TIN […]...

  7. Python开发面试集锦

    我正在编写一套python面试开发集锦,可以帮忙star一下,谢谢!    地址:GitHub专栏...

  8. Linux Cron 定时任务

    作者:丁仪 来源:https://chengxuzhixin.com/blog/post/LinuxCron- […]...

展开目录

目录导航