Answer Posted / deepak divvela
1.transient variables can not be serialized.
2.volatile variables may change with the affect of other one
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Can a static class have a constructor?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is the difference between abstraction and encapsulation?
Can we override the private methods?
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?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
Can we call a non-static method from inside a static method?
Which class is the superclass for all the classes?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Explain about sets?
How do you convert an int to a double in java?
Explain notify() method of object class ?
What does g mean in regex?
What is blank final variable?
What is a line break example?