What is Transient and volatile

Answer Posted / lakshmidontukurthy

Trying to put a non-serializable variable in a
seriealisible class,we can use transient modifier ,so that
the jvm skips the transient variable ,and make that class
as serializable class

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multithreading in java?

555


How many characters is 16 bytes?

545


What is a method in java?

562


What is abstract class? Explain

599


What is the advantage of functional interface in java 8?

527






Explain the inheritance?

577


Difference between final and effectively final ? Why is effectively final even required ?

563


how to write a program for sending mails between client and server

1557


Can we create our own wrapper class in java?

550


What is the significance of listiterator?

571


What are anonymous inner classes?

567


What is array initialization in java?

497


What are the important features of Java 8 release?

582


What is a get method?

539


Can list be null in java?

581