显示下一条  |  关闭

Shape the world

 
 
 
 
 
 

Java中抽象类和接口的区别(图)

2011-8-18 16:39:39 阅读44 评论0 182011/08 Aug18

1.  方法的比较

抽象类中可以有实现的方法,没有实现的方法需要声明abstract:

接口中不可以有实现的方法:

2.成员变量的比较

抽象类中的成员变量初始化或者不初始化均可:

接口中成员变量必须初始化:

3.继承和实现方式:

一个类只可以继承一个抽象类,但是可以实现多个接口:

作者  | 2011-8-18 16:39:39 | 阅读(44) |评论(0) | 阅读全文>>

说说大型高并发高负载网站的系统架构[转载]

2011-7-18 16:32:07 阅读54 评论0 182011/07 July18

Trackback Url : http://www.toplee.com/blog/wp-trackback.php?p=71

  鄙人先后在CERNET做过拨号接入,在Yahoo&3721搞过搜索前端,在猫扑处理过mop.com的架构升级,在6.cn视频网站从事开发工作,还在多年的工作中接触和开发过不少大中型网站的模块,因此在大型网站应对高负载和并发的解决方案上有一些积累和经验,希望和大家一起探讨。

  一个小型的网站,比如个人网站,可以使用最简单的html静态页面就实现了,配合一些图片达到美化效果,所有的页面均存放在一个目录下,这样的网站对系统架构、性能的要求都很简单,随着互联网业务的不断丰富,网站相关的技术经过这些年的发展,已经细分到很细的方方面面,尤其对于大型网站来说,所采用的技术更是涉及面非常广,从硬件到软件、编程语言、数据库、WebServer、防火墙等各个领域都有了很高的要求,已经不是原来简单的html静态网站所能比拟的。

  大型网站,比如门户网站。在面对大量用户访问、高并发请求方面,基本的解决方案集中在这样几个环节:使用高性能的服务器、高性能的数据库、高效率的编程语言、还有高性能的Web容器。但是除了这几个方面,还没法根本解决大型网站面临的高负载和高并发问题。

  上面提供的几个解决思路在一定程度上也意味着更大的投入,并且这样的解决思路具备瓶颈,没有很好的扩展性,下面我从低成本、高性能和高扩张性的角度来说说我的一些经验。

作者  | 2011-7-18 16:32:07 | 阅读(54) |评论(0) | 阅读全文>>

A first course in Database systems

2011-6-10 16:49:20 阅读49 评论0 102011/06 June10

Part III: semistructured Data Modeling and Programming

The pervasiveness of the Web has put a premium on the management of hierarchically structured data, because the standards for the Web are based on nested, tagged elements (semistructured data). We introduce XML and its schema-defining notations: Document Type Definitions(DTD) and XML Schema. We also examine three query languages for XML: XPATH, XQuery, and Extensible Stylesheet Language Transform(XSLT).

作者  | 2011-6-10 16:49:20 | 阅读(49) |评论(0) | 阅读全文>>

XSL/XSLT

2011-5-23 12:51:24 阅读51 评论0 232011/05 May23

Most us heard of XSL/XSLT, so what’s these really about, what can we use it?  I want to share a simple demo which comes from “JavaScript: The Definitive Guide, 5th Edition”.

XSLT stands for XSL Transformations, and XSL stands for Extensible Stylesheet Language. XSL stylesheets are XML documents and can be loaded and parsed in the same way that any XML document can. Many modern browsers can style XML using either CSS or XSL stylesheets. If you specify a stylesheet in an xml-stylesheet processing instruction, you can load an XML document directly into the browser, and the browser styles and displays it. The requisite processing instruction might look like this:

<?xml-stylesheet

作者  | 2011-5-23 12:51:24 | 阅读(51) |评论(0) | 阅读全文>>

Elder generation

2011-5-4 13:42:00 阅读63 评论0 42011/05 May4

# Name Description 1 Peter Norvig Director of Research at Google and author of the standard text on AI. 2 Alan Kay Inventor of Smalltalk. Coined the term "object-oriented programming". 3 Guy Steele Co-inventor of Scheme and part of the Common Lisp Gang of Five. Currently working on Fortress. 4 Donald Knuth Author of The Art of Computer Programming and TeX 5

作者  | 2011-5-4 13:42:00 | 阅读(63) |评论(0) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 

自定义模块

 
 
模块内容加载中...
 
 
 
 
 

自定义模块

 
 
模块内容加载中...
 
 
 
 
 

自定义模块

 
 
模块内容加载中...
 
 
 
 
 
 
 

上海市 浦东新区

 发消息  写留言

 
博客等级加载中...
今日访问加载中...
总访问量加载中...
最后登录加载中...
 
 
 
 
 
 
 
心情随笔列表加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

   
创建博客 登录  
 关注