This document discusses various Java concepts including objects and classes, methods, constructors, static variables and methods, inheritance, polymorphism, abstraction, interfaces, packages, encapsulation, arrays, exception handling, multithreading, and AWT. Specifically, it covers difference between JDK, JRE and JVM, method overloading vs overriding, inheritance vs abstraction, abstract classes vs interfaces, accessing packages, and loading class files. It also provides examples of interfaces, exception handling, and multithreading in Java.
This document discusses various Java concepts including objects and classes, methods, constructors, static variables and methods, inheritance, polymorphism, abstraction, interfaces, packages, encapsulation, arrays, exception handling, multithreading, and AWT. Specifically, it covers difference between JDK, JRE and JVM, method overloading vs overriding, inheritance vs abstraction, abstract classes vs interfaces, accessing packages, and loading class files. It also provides examples of interfaces, exception handling, and multithreading in Java.
This document discusses various Java concepts including objects and classes, methods, constructors, static variables and methods, inheritance, polymorphism, abstraction, interfaces, packages, encapsulation, arrays, exception handling, multithreading, and AWT. Specifically, it covers difference between JDK, JRE and JVM, method overloading vs overriding, inheritance vs abstraction, abstract classes vs interfaces, accessing packages, and loading class files. It also provides examples of interfaces, exception handling, and multithreading in Java.
3. What is a method in Java? 4. Access Specifier 5. Types of Method 6. Types of constructors a. Default Constructor b. Parameterized Constructor 7. Constructor Overloading 8. Does constructor return any value? 9. Copying the values of one object into another 10. Does constructor perform other tasks instead of the initialization 11. Static variable
12. Program of the counter without static variable
13. Program of the counter with static variable
14. Static method
15. Restrictions for the static method
16. Why is the main method static?
17. Static block
18. Can we execute a program without main method?
19. Inheritance 20. Types of Inheritance 21. Why multiple inheritance is not possible in Java in case of class?
22. Aggregation in Java
23. Different ways to overload the method 24. By changing the no. of arguments 25. By changing the datatype 26. Why method overloading is not possible by changing the return type 27. Can we overload the main method 28. method overloading with Type Promotion 29. Understanding the problem without method overriding 30. Can we override the static method 31. Method overloading vs. method overriding
32. Super Keyword in Java
33. Polymorphism in Java 34. Abstract class in Java 35. Interface 36. Example of Interface 37. Multiple inheritance by Interface 38. Why multiple inheritance is supported in Interface while it is not supported in case of class. 39. Marker Interface 40. Nested Interface
41. Difference between abstract class and interface
42. Java Package 43. Example of package 44. Accessing package a. By import packagename.* b. By import packagename.classname c. By fully qualified name 45. Subpackage 46. Sending class file to another directory 47. -classpath switch 48. 4 ways to load the class file or jar file 49. How to put two public class in a package 50. Static Import 51. Package class
52. Encapsulation in Java
53. Java Arrays 54. Difference between method overloading and method overriding in java 55. Difference between method overloading and method overriding in java 56. Java String Exception Handling
Advantage of Exception Handling
Hierarchy of Exception classes
Types of Exception
Exception Example
57. Scenarios where an exception may occur
58. Multithreading 59. Multitasking 60. Process-based multitasking 61. Thread-based multitasking 62. What is Thread