== Java ==
What
The constant pool contains the constants associated with the class or interface defined by the file.
Constants are stored in the constant pool.
literal strings
final variable values
fully qualified names of classes and interfaces
field names and descriptors
method names and descriptors
Symbolic refer继续阅读 »
前言
前面我们有说过android反编译的工具,如何进行反编译。反编译后可以得到jar或者得到smali文件。Android采用的是java语言进行开发,但是Android系统有自己的虚拟机Dalvik,代码编译最终不是采用的java的class,而是使用的smali。我们反编译得到的代码,jar的话可能很多地方无法正确的解释出来,如果我们反编译的是smali则可以正确的理解程序的意思。因此,我们有必要熟悉smali语法。
类型的表示
java里面包含两种类型,原始类型和引用类型(包括对象),同时映射到smali也是有这两大类型。
more
原始类型
V void (只能用于返回值类型)
Z boolean
B by继续阅读 »
这个问题在NetEase电话面试的时候被问到过,完全蒙了。。。
return 之后程序不是停止了么???
finally不是一定要执行么???
finally里面再return??What is the fuck???
写了如下的程序测试了一下,可以先别看答案,猜猜结果。
public class ReturnTest {
public static void main(String[] args) {
System.out.println("=============test1==================");
System.out.println(test1());
继续阅读 »