What is the difference between static synchronize() metod
and synchronize() method?
Answer / suresh m
Non static synchronized method enables Object's Object Lock for the given Thread
while static synchronized method enables Class's Class Lock for given Thread
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a ternary operator in java? What is an interface?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Why main() method is public, static and void in java ?
What are variable names?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What best practices should you follow while writing multithreaded code in java?
What is the full meaning of java?
Explain the difference between an Interface and an Abstract class?
What is a parent class in java?
Explain the differences between abstraction and encapsulation?
what is object slice?
Write a program to show whether a graph is a tree or not using adjacency matrix.