Hi, I have the following Java code,
public class A{ private String B="test_string"; private int AA; public int C; private int method1() { int a; a=0; return a; } private int method1(int c, String d) { int a; a=c; return a; } }
but when I used the javap -c command to get the equivalent byte code, I get
Compiled from "A.java" public class A extends java.lang.Object{ public int C; public A(); Code: 0: aload_0 1: invokespecial #1;
I don't know about byte code here, because where are the declarations of the private variable and method?
Can someone explain this to me?
source share