When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
No Answer is Posted For this Question
Be the First to Post Answer
what are the different non-access specifiers in java?
Which is the best way to use for String concatenation in Java?
Can variables be used in java without initialization?
What is final method?
When should a function throw an exception?
0 Answers Thomson Reuters, Virtusa,
Is it safe to install java on my computer?
Is main an identifier?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is java string pool?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What is string builder?