Checkout for Promo Codes

Question: What is transient variable?

Transient variables cannot be serialized. During serialization process,
transient variable states will not be serialized. State of the value will
be always defaulted after deserialization.
<< Previous Question | Next Question >>

List Of Java Interview Questions:

  2. Can Java thread object invoke start method twice?
  3. Give the list of Java Object class methods.
  5. Can we override static method?
  6. Can you list serialization methods?
  8. How to prevent a method from being overridden?
  9. Can we create abstract classes without any abstract methods?
  10. How to destroy the session in servlets?
  11. Can we have static methods in interface?
  12. What is transient variable?
  14. What is abstract class or abstract method?
  15. What is default value of a boolean?
  16. When to use LinkedList or ArrayList?
  17. What is daemon thread?
  18. Does each thread in java uses seperate stack?
  19. What is the difference between Enumeration and Iterator?
  20. Find out switch statement output.
  22. What is fail-fast in java?
  23. What is final, finally and finalize?
  24. In java, are true and false keywords?
  25. What are the different session tracking methods?
  26. What is the purpose of garbage collection?
  27. What are the types of ResultSet?
  29. What is servlet context?
  31. What is race condition?
  32. How to get current time in milli seconds?
  33. How can you convert Map to List?
  34. What is strictfp keyword?
  35. What is System.out in Java?
  36. What is difference between ServletOuptputStream and PrintWriter?
  37. What is java static import?
  38. When to use String and StringBuffer?
  39. What is difference between StringBuffer and StringBuilder?
  40. What is wrapper class in java?
  41. Is Iterator a Class?
  42. What is java classpath?
  43. Can a class in java be private?
  44. Is null a keyword in java?
  46. What is the super class for Exception and Error?
  47. What is Class.forName()?
  48. Can interface be final?
  49. What is the difference between exception and error?
  50. What is default value of a local variables?
  51. What is local class in java?
  52. Can we initialise uninitialized final variable?
  53. Can we declare abstract method as final?
  54. Can we have finally block without catch block?
  55. What is pass by value and pass by reference?
  56. Can we declare main method as private?
  60. Can you serialize static fields of a class?
  62. Where can we use serialization?
  63. What modifiers are allowed for methods in an Interface?
  64. What is the purpose of Runtime and System class?
  69. What is hashCode?
  70. What is the difference between Hashtable and HashMap?
  71. What are the restrictions when overriding a method?
  72. What is the use of assert keyword?
  73. What is adapter class?
  76. When does the compiler provides the default constructor?
  77. Difference between C++ and Java.
  78. Usages of java packages.
  79. What is dynamic class loading?
  80. What happens if you do not provide a constructor?
  81. Difference between shallow cloning and deep cloning of objects?
  84. How can you create an immutable class in java?
  85. What are access modifiers?
  86. Can we have private constructor in java?
  87. Why do we need generics in java?
  91. Next set of java interview questions
Knowledge Centre
Exception Vs Error
An error is an irrecoverable condition occurring at runtime like out of memory error. These kind of jvm errors cannot be handled at runtime. Exceptions are because of condition failures, which can be handled easily at runtime.
Famous Quotations
You can never get enough of what you don’t really need.
-- Eric Hoffer

About Author



Most Visited Pages

Other Interesting Sites

Privacy Policy | Copyright © 2020 by Nataraja Gootooru. All Rights Reserved.