java

Interview Questions and Answers

Java

Question:
What is a JVM?
Answer:

JVM is Java Virtual Machine which is a run time environment for the compiled java class files.

--- >>>

Java - Questions
1. What are order of precedence and associativity, and how are they used?
Answer
2. What does it mean that a method or field is "static"?
Answer
3. Can an abstract class be final?
Answer
4. What is numeric promotion?
Answer
5. What is the difference between a public and a non-public class?
Answer
6. What restrictions are placed on method overriding?
Answer
7. What is a Java package and how is it used?
Answer
8. What modifiers may be used with a top-level class?
Answer
9. 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)?
Answer
10. How many static initializers can you have ?
Answer
11. What is constructor chaining and how is it achieved in Java ?
Answer
12. Can a double value be cast to a byte?
Answer
13. What is the difference between a break statement and a continue statement?
Answer
14. What is the difference between a field variable and a local variable?
Answer
15. What does it mean that a class or member is final?
Answer
16. What does it mean that a method or class is abstract?
Answer
17. What is a transient variable?
Answer
18. How does Java handle integer overflows and underflows?
Answer
19. What is the difference between private, protected, and public?
Answer
20. What are the advantages of Java layout managers?
Answer
21. Explain the Struts1/Struts2/MVC application architecture?
Answer
22. What is the difference between forward and sendredirect?
Answer
23. Explain the user defined Exceptions?
Answer
24. What is the most important feature of Java?
Answer
25. Are JVM's platform independent?
Answer
26. What is the difference between a JDK and a JVM?
Answer
27. What is the base class of all classes?
Answer
28. Is Java a pure object oriented language?
Answer
29. Are arrays primitive data types?
Answer
30. Should a main() method be compulsorily declared in all java classes?
Answer
31. Why is the main() method declared static?
Answer
32. Can a main() method be overloaded?
Answer
33. Can a main() method be declared final?
Answer
34. Can a source file contain more than one class declaration?
Answer
35. Can a class declared as private be accessed outside it's package?
Answer
36. Can a class be declared as protected?
Answer
37. What is the purpose of declaring a variable as final?
Answer
38. I don't want my class to be inherited by any other class. What should i do?
Answer
39. How is final different from finally and finalize()?
Answer
40. When will you define a method as static?
Answer
41. I want to print "Hello" even before main() is executed. How will you acheive that?
Answer
42. What is an Abstract Class and what is it's purpose?
Answer
43. Can a abstract class be declared final?
Answer
44. Can a abstract class be defined without any abstract methods?
Answer
45. Can an Interface implement another Interface?
Answer
46. Can an Interface extend another Interface?
Answer
47. What is a Marker Interface?
Answer
48. What is a local, member and a class variable?
Answer
49. What value does read() return when it has reached the end of a file?
Answer
50. Can a Byte object be cast to a double value?
Answer
General Knowledge Quiz
3001 Bizarre Facts
Dictionary
Elementary English Grammar Test
Standard English Grammar Test
Advanced English Grammar Test
Daily English Quiz
English Test
Grammar Examination
ESL / EFL Test
Grammar Test
Antonyms
Synonyms
Homonyms
Vocabulary Examination
Word Analogy
Vocabulary Flashcards
Idioms
Idioms Quiz
Quantitative Aptitude Test
iQ Quiz Game
Verbal Reasoning Quiz - Mind Game
English Question Answer
Vocabulary Game 1
Vocabulary Game 2
Scramble Word Game
Common Mistakes
Confusing Words
Basic English Usage
English Grammar
Prepositions
English Phrases
Learn English
Word Game
Interview Questions and Answers
Educational Quiz Games