OCAJP – Static Keyword in Java
This post is about the OCAJP exam objective “Apply the static keyword to methods and fields.“You will be tested in the exam about difference between static variables and instance variables. If two objects are trying to modify the static and instance variables , What will be the output ?. Here we would explain about static variables, static methods and difference between static variables, instance variables. 25 Free Mock Exam Questions We can apply static keyword to variables , methods , blocks,classes, interfaces. Applying static keyword to classes, interfaces is out of scope for OCAJP. It is in OCPJP. Static blocks […]
OCAJP – Static Keyword in Java Read More »