Java is an object-oriented programming language. The Java Virtual Machine (JVM) runs Java programs and interprets Java bytecodes. The JDK, JRE, and JVM work together, where the JDK contains tools for developing, the JRE runs Java programs, and the JVM executes Java bytecodes. Java uses a Just-in-Time compiler for performance. It allows software to run on any platform with a JVM. Classes use constructors to initialize objects. Constructors cannot return values and may call other constructors using 'this'. The 'this' keyword also refers to the current object instance.
Java is an object-oriented programming language. The Java Virtual Machine (JVM) runs Java programs and interprets Java bytecodes. The JDK, JRE, and JVM work together, where the JDK contains tools for developing, the JRE runs Java programs, and the JVM executes Java bytecodes. Java uses a Just-in-Time compiler for performance. It allows software to run on any platform with a JVM. Classes use constructors to initialize objects. Constructors cannot return values and may call other constructors using 'this'. The 'this' keyword also refers to the current object instance.
2. What are the features of Java Programming language?
3. What do you understand by Java virtual machine? Explain 4. Make out the difference between JDK, JRE, and JVM? 5. How many types of memory areas are allocated by JVM? 6. What do you know about Just in Time compiler? 7. What do you understand by platform? 8. What is 'write once and run anywhere' feature? 9. What do know about class loader? 10. If I don't provide any arguments on the command line, then what will the value stored in the String array passed into the main( ) method, empty or NULL? 11. If I write static public void instead of public static void? Any issues you want to discuss? 12. What is the Default value of the local variables? 13. What are the various access specifiers you know in Java? 14. When we need static methods and variables in Java? 15. What is an object and Class? 16. What is the default value of instance variable? 17. What do understand by constructor? 18. Explain types of constructors used in Java? 19. What is the purpose of a default constructor? 20. Does constructor return any value? If so, what is it? 21. What is final Keyword in Java? 22. Can you make a constructor final? If not why? 23. Can we overload the constructors? Did you ever try using it? 24. What is data binding? 25. What do you understand by copy constructor concept in Java? 26. What are the differences between the constructors and methods? 27. What is the static variable? Is static variable a class member. 28. What is the static method? How is it different from normal one? 29. What are the restrictions that are applied to the Java static methods? 30. Why is the main method public and static? 31. Can we override the static methods? 32. What is the static block? 33. Can we execute a program without main( ) method? 34. What if the static modifier is removed from the signature of the main method? 35. What is the difference between static (class) method and instance method? 36. Can we make constructors static? 37. Can we make the abstract methods static in Java? 38. Can we declare the static variables and methods in an abstract class? 39. What is this keyword in java? And what are its uses? 40. Can we assign the reference to ‘this’ variable? 41. Can ‘this’ keyword be used to refer static members? 42. Is constructor chaining be done using this keyword?