We can declare instance as well as local variable as final....
But where final variable store in memory???
Type: Posts; User: Arnab Kundu
We can declare instance as well as local variable as final....
But where final variable store in memory???
Ok..thanks dear...
Since dear....
My problem'sanswer is known to me...
But explanation is not clear..
Bcz every time a static field will execute immediately after the static block..here not happen...it was my...
Java does not support explicit pointer..
But it supports implicit pointer...
Reference variable is actually a pointer bcz it holds address of object...
class A{
static final int a=10;
static{
System.out.println("56");
}
}
class B{
public static void main(String []args)
{
System.out.println(A.a);
Console cc=System.console();
char []str=cc.readPassword();
The question is as follows:
class A{
final static int a=10;
final static void call()
{
System.out.println("two");
}
static{