Core Java Interview questions


Total available count: 646
Subject - Java Technologies
Subsubject - Core Java

What is local variables in java?

When a variable is declared inside a Method it is known as Method Local Variable.The scope of local variables is only inside the Method, which means local variables cannot be accessed outside that Method.There are some restrictions on access modifier that can  be applied on local variables.




Next 5 interview question(s)

1

What is class variable(static variable) in java?

2

In how many ways we can access static fields(variables or methods) in java?

3

What is instance variable in java?

4

How many type of variables available in java,mention them?

5

What is the difference between protected and default(no specifier) access modifier?