HSHarshit Singhinjava-harshitsingh.hashnode.dev·Jul 1, 2025 · 2 min readDiamond problem in multiple inheritanceJava is object oriented programming language.Java support various type of inheritance such as:- Single inheritance - Multilevel inheritance - Hierarchical inheritance - Hybrid inheritance (via interface) However it does not support multiple inheritan...00
HSHarshit Singhinjava-harshitsingh.hashnode.dev·Jun 26, 2025 · 1 min readHeap and Stack Memory in JavaHeap and stack memory are both used during program execution, each serving a distinct purpose. Stack- Stack memory is used for method execution. Every time a method is called stack memory is used- It stores local variable, method call and reference v...00
HSHarshit Singhinjava-harshitsingh.hashnode.dev·Jun 26, 2025 · 1 min readJIT compiler Vs JAVA compilerJava Compiler Java compiler ( javac ) converts java program ( .java ) into bytecode. This bytecode platform-independent and is stored in a .class or .jar file.Java compiler run by programmer during development or at compile time.In simple words, the ...00
HSHarshit Singhinjava-harshitsingh.hashnode.dev·Jun 26, 2025 · 1 min readWhy Java is platform independent?What is platform independent?High-level programming languages ( like C, C++) program, when get compiled, it gets converted into Machine Code, this Machine code is dependent upon the system(as well as OS) that programmer is using. Example-C++ program ...00