BlackBerry手機上面開發Java程式,如果才能讓代碼運行效率高,佔用系統資源少?

來源:互聯網
上載者:User

BlackBerry手機上的Java虛擬機器的實現 和標準J2SE虛擬機器不同,或者說針對BlackBerry手機的硬體其實現有其特點,在為BlackBerry開發Java程式的時候,就有必要去瞭解一下BB JVM的特點,瞭解如何為它開發efficent,省memory的代碼。

 

題外話:其實標準J2SE的虛擬機器也有各自特點,比如Sun的JDK,Sun在不同作業系統上面的JDK,IBM JDK, BEA JDK的實現都是不同的,作業系統不同,硬體CPU不同,那麼同樣的Java,在這些Java虛擬機器上啟動並執行效率也會有不同。就有人將程式針對不同的JVM進行最佳化,或偷懶一點使用不同JVM專用的javac編譯器進行編譯最佳化。

 

參考:

BlackBerry Documentation  >  Documentation for Developers  >  Development Guides
http://docs.blackberry.com/en/developers/subcategories/?userType=21&category=Development+Guides

選擇5.0,選擇English
Fundamentals Guide - BlackBerry Java Applications

section:
BlackBerry Java Application
-->BlackBerry Java Application design
-->Best practices for writing an efficient BlackBerry Java Application Best practice: Writing efficient code Best practice: Using objects judiciously Best practice: Reducing the size of compiled code

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.