Tuesday 9 July 2013

1) whether static method can be overloaded or overidden?

no ,static method can't be overloaded or overridden simply because ,inorder to access particular static method .method which belogs to  particular class will be invoked.so in case if method gets overridden in subclass than method define in super class will be hidden.the concept is referred to as method hidding
1) how class can be thread safe?

Thread safety simply means that the fields of an object or class always maintain a valid state, as observed by other objects and classes, even when used concurrently by multiple threads.

2) use of atomic variable?

3)class loader loads the class file from native file system.if class already loaded by class loader than tree structure of class file will be maintained.from where class file of existing loaded class will gets loaded


No comments:

Post a Comment

Spring Boot SSL configuration -Tomcat Server

Hi Friends hope you all are doing well. Today I am going to demonstrate about how to configure SSL in Spring boot web Application. Need o...