loadYOURSELF

loadYOURSELF

Browsing Posts in Java

In conjunction with their annual Google I/O event, Google has announced the next release of the Android 2.2 platform. This latest release includes a large number of significant enhancements that further exploit the underlying ARM® architecture to improve performance and functionality. The latest release includes Google’s new Dalvik Just-In-Time (JIT) compiler that generates native Thumb®-2 code. The new ARM targeted JIT technology coupled with the code density advantages of the Thumb-2 instruction set provides a significant performance boost to the Dalvik Java application framework, resulting in improved application performance of up to two to five times and therefore even greater battery life.

Default class access may trigger some error which the compiler complain about the source.

  • package 1

  • package car;
    class BMW { }

  • package 2

  • package utils;

    class Tool extends BMW {}

    second package creates a new class which extends the “BMW” class. But the first class definition has no any access specifier so the access permissions are set to default. Default access is the package level access which the second package must be in the same package with “car” or you can define “BMW” class with public.