[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Interview Questions and Answers :: Cisco

2. What is static and volatile variable, and its use.

Answer:

The Java volatile keyword guarantees visibility of changes to variables across threads.
The java static keyword, If we declare any variable or method as a static then there is no need to create object of it. It is directly accessible from class reference.

Post Your Answer Here:      Public      Private

Rate This: +1 -0
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here