Share
VIDEOS 1 TO 50
Difference between java and android
Difference between java and android
Published: 2016/05/03
Channel: Makwana Ranjit
Should an Android dev learn anything other than Java?
Should an Android dev learn anything other than Java?
Published: 2013/09/27
Channel: Ask A Dev
Java Vs Kotlin - Which Is Better ?
Java Vs Kotlin - Which Is Better ?
Published: 2017/05/20
Channel: Play4Tech
kotlin vs Java   clearing your doubts
kotlin vs Java clearing your doubts
Published: 2017/05/20
Channel: Hitesh Choudhary
Java 8 Stream and RxJava comparison: patterns and performances by José Paumard
Java 8 Stream and RxJava comparison: patterns and performances by José Paumard
Published: 2015/11/11
Channel: Devoxx
Java vs C# in 2017
Java vs C# in 2017
Published: 2017/03/29
Channel: Dot Net
Performance Comparison; Java, Python and Go on App Engine
Performance Comparison; Java, Python and Go on App Engine
Published: 2013/06/01
Channel: Google Developers
Adv Java || Differences between Http Methods  GET  and POST Part -1
Adv Java || Differences between Http Methods GET and POST Part -1
Published: 2016/08/22
Channel: Durga Software Solutions
How to compare two dates by using compareto() method in java
How to compare two dates by using compareto() method in java
Published: 2016/03/29
Channel: competitiveexamsmaterial
#1.3 Understand the Differences between JVM vs JRE vs JDK in java in one video
#1.3 Understand the Differences between JVM vs JRE vs JDK in java in one video
Published: 2017/06/16
Channel: Smartherd
Understand the Difference Between SOAP and REST APIs
Understand the Difference Between SOAP and REST APIs
Published: 2016/08/05
Channel: SmartBear
REST API concepts and examples
REST API concepts and examples
Published: 2014/07/14
Channel: WebConcepts
Android Kotlin VS Java - RecyclerView
Android Kotlin VS Java - RecyclerView
Published: 2017/05/30
Channel: Dev Landing
Difference between "== operator" and "equals() method"  in java?
Difference between "== operator" and "equals() method" in java?
Published: 2014/04/30
Channel: DURGA EDUCATION
Java vs C++
Java vs C++
Published: 2014/04/28
Channel: LearnToProgram: Become a Web or Mobile Developer
Kotlin and Java differences
Kotlin and Java differences
Published: 2017/05/25
Channel: Maitreyi App
Comparing Strings in Java, == and .equals();
Comparing Strings in Java, == and .equals();
Published: 2012/05/10
Channel: NetbeansTutorials
What Programming Language Should I Learn?
What Programming Language Should I Learn?
Published: 2014/06/25
Channel: Koder Boat
SOAP vs RESTFul
SOAP vs RESTFul
Published: 2014/01/19
Channel: Bharath Thippireddy dot com
Should I Learn Java or Python?
Should I Learn Java or Python?
Published: 2013/09/29
Channel: Question Everything
14.5 LinkedList vs ArrayList in Java
14.5 LinkedList vs ArrayList in Java
Published: 2016/04/04
Channel: Telusko Learnings
Android vs. iOS - Differences That Matter
Android vs. iOS - Differences That Matter
Published: 2016/04/14
Channel: Android Authority
Kotlin is here for Android.  Is Java dead Now ?
Kotlin is here for Android. Is Java dead Now ?
Published: 2017/05/18
Channel: Hitesh Choudhary
What is an API?
What is an API?
Published: 2015/06/19
Channel: MuleSoft Videos
java vs kotlin comparison | kotlin and java in Android Development Hindi/Urdu
java vs kotlin comparison | kotlin and java in Android Development Hindi/Urdu
Published: 2017/07/13
Channel: Daniyal Ak
Corejava-Basics-Difference b/w C, Cpp and Java
Corejava-Basics-Difference b/w C, Cpp and Java
Published: 2015/11/19
Channel: Durga Software Solutions
Difference between Java vs Javaw vs Javaws
Difference between Java vs Javaw vs Javaws
Published: 2014/08/23
Channel: Durga Software Solutions
C  Vs Java  - Difference Between C And Java
C Vs Java - Difference Between C And Java
Published: 2017/01/16
Channel: MAD differences
Web Development Vs. Software Development: How To Choose?
Web Development Vs. Software Development: How To Choose?
Published: 2017/01/20
Channel: Simple Programmer
What is REST API?
What is REST API?
Published: 2017/06/14
Channel: Telusko Learnings
C# and Java Comparison
C# and Java Comparison
Published: 2017/01/29
Channel: Ahmed Ali
REST API & RESTful Web Services Explained
REST API & RESTful Web Services Explained
Published: 2017/02/14
Channel: Clever Techie
How to compare two Strings in java?
How to compare two Strings in java?
Published: 2016/03/09
Channel: competitiveexamsmaterial
compareTo() Method in java/android with example- [Compare two Strings]
compareTo() Method in java/android with example- [Compare two Strings]
Published: 2017/10/12
Channel: Knowledge to Share
Core Java Training | Difference b/w Java & others [C & C++]  by Nagoor Babu
Core Java Training | Difference b/w Java & others [C & C++] by Nagoor Babu
Published: 2016/08/31
Channel: Durga Software Solutions
Difference between Python and Java - Python VS  Java
Difference between Python and Java - Python VS Java
Published: 2016/10/26
Channel: Difference Between
Should I Learn Java or JavaScript?
Should I Learn Java or JavaScript?
Published: 2014/03/11
Channel: Techy Help
14.11 HashMap and HashTable in Java
14.11 HashMap and HashTable in Java
Published: 2016/04/18
Channel: Telusko Learnings
Java v/s C++ (In Hindi) - A Bold War Between Languages
Java v/s C++ (In Hindi) - A Bold War Between Languages
Published: 2016/12/07
Channel: 3BrosTech
Comparison of  the three Cursors of Java (Collection Framework)
Comparison of the three Cursors of Java (Collection Framework)
Published: 2014/03/08
Channel: Durga Software Solutions
Difference Between Process and Thread - Georgia Tech - Advanced Operating Systems
Difference Between Process and Thread - Georgia Tech - Advanced Operating Systems
Published: 2015/02/23
Channel: Udacity
Adv Java || Differences between Http Methods  GET  and POST Part -2
Adv Java || Differences between Http Methods GET and POST Part -2
Published: 2016/08/22
Channel: Durga Software Solutions
difference between kotlin vs java primitive data types in Hindi
difference between kotlin vs java primitive data types in Hindi
Published: 2017/06/29
Channel: A.K Apps
What Is API Package In Java?
What Is API Package In Java?
Published: 2017/08/15
Channel: sandy sandy
Weird number - C++ vs Java programing performance comparison with same algorithm
Weird number - C++ vs Java programing performance comparison with same algorithm
Published: 2017/08/26
Channel: CP Fuliver
Java Tutorial for Beginners - 17 - Access modifiers (Public, Protected, Private, Default)
Java Tutorial for Beginners - 17 - Access modifiers (Public, Protected, Private, Default)
Published: 2014/01/03
Channel: EJ Media
Abstract Classes vs Interfaces (Java)
Abstract Classes vs Interfaces (Java)
Published: 2016/12/21
Channel: The Code Hard Truth
Learn JAVA | Difference Between Print & Println
Learn JAVA | Difference Between Print & Println
Published: 2015/07/30
Channel: LAST MINUTE REVISION
Kotlin Vs Java : Why develop Android Application using Kotlin ? [Android Studio Tutorials]
Kotlin Vs Java : Why develop Android Application using Kotlin ? [Android Studio Tutorials]
Published: 2017/06/09
Channel: Napichiro Gaming
Scala Versus Java
Scala Versus Java
Published: 2012/02/23
Channel: InfoQ
NEXT
GO TO RESULTS [51 .. 100]

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
Jump to: navigation, search

This article compares the application programming interfaces (APIs) and virtual machines (VMs) of the programming language Java and operating system Android.

While most Android applications are written in Java-like language, there are some differences between the Java API and the Android API, and Android does not run Java bytecode by a traditional Java virtual machine (JVM), but instead by a Dalvik virtual machine in older versions of Android, and an Android Runtime (ART) in newer versions, that compile the same code that Dalvik runs to Executable and Linkable Format (ELF) executables containing machine code.

Java bytecode in Java Archive (JAR) files is not executed by Android devices. Instead, Java classes are compiled into a proprietary bytecode format and run on Dalvik (or compiled version thereof with newer ART), a specialized virtual machine (VM) designed for Android. Unlike Java VMs, which are stack machines (stack-based architecture), the Dalvik VM is a register machine (register-based architecture).

Dalvik has some traits that differentiate it from other standard VMs:[1]

  • The VM was designed to use less space.
  • The constant pool has been modified to use only 32-bit indexes to simplify the interpreter.
  • Standard Java bytecode executes 8-bit stack instructions. Local variables must be copied to or from the operand stack by separate instructions. Dalviik instead uses its own 16-bit instruction set that works directly on local variables. The local variable is commonly picked by a 4-bit virtual register field.

Because the bytecode loaded by the Dalvik virtual machine is not Java bytecode and due to the way Dalvik loads classes, it is impossible to load library packages as JJAR files. A different procedure must be used to load Android libraries, in which the content of the underlying dex file must be copied in the application private internal storage area before it is loaded.[2]

System properties[edit]

As is the case for the Java SE class System, the Android System class allows retrieving system properties. However, some mandatory properties defined with the Java virtual machine have no meaning or a different meaning on Android. For example:

  • java.version property returns 0 because it is not used on Android.
  • java.specification.version invariably returns 0.9 independently of the version of Android used.
  • java.class.version invariably returns 50 independently of the version of Android used.
  • user.dir has a different meaning on Android.
  • user.home and user.name properties do not exist on Android.

Class library[edit]

Current versions of Android use the latest Java language and its libraries (but not full graphical user interface (GUI) frameworks), not the Apache Harmony Java implementation, that older versions used. Java 8 source code that works in latest version of Android, can be made to work in older versions of Android.

java.lang package[edit]

By default, the default output stream System.out and System.err do not output anything,[3] and developers are encouraged to use the Log class, which logs Strings on the LogCat tool.[4] This has changed at least from HoneyComb, and they now output to the log console also.

Graphics and widget library[edit]

Android does not use the Abstract Window Toolkit nor the Swing library. User interfaces are built using View objects. Android uses a framework similar to Swing, based on Views rather than JComponents. However, Android widgets are not JavaBeans: the Android application Context must be provided to the widget at creation.

Look and feel[edit]

Android widget library does not support a pluggable look and feel architecture. The look and feel of Android widgets must be embedded in the widgets. However, a limited ability exists to set styles and themes for an application.[5]

Layout manager[edit]

Contrary to Swing where layout managers can be applied to any container widget, Android layout behavior is encoded in the containers.[6]

java.beans package[edit]

Android includes only a small subset of the java.beans package (PropertyChangeEvent and related classes).

See also[edit]

References[edit]

  1. ^ Rose, John (2008-05-31). "with Android and Dalvik at Google I/O". Retrieved 2008-06-08. 
  2. ^ Fred Chung (2011-07-28). "Custom Class Loading in Dalvik". Google. Retrieved 2011-11-27. 
  3. ^ "Android Debug Bridge". Google. Retrieved 2009-05-31. By default, the Android system sends stdout and stderr (System.out and System.err) output to /dev/null. 
  4. ^ "Reading and Writing Logs". Google. Retrieved 2011-11-27. 
  5. ^ "Applying Styles and Themes". Google. Retrieved 2011-09-03. 
  6. ^ "Common Layout Objects". Google. Retrieved 2011-09-03. 

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license