434
订阅者
-124 小时
-27 天
-130 天
帖子存档
Q. What is transient variable ❓
A transient variable is a variable that may not be serialized.
Q. What is memory leak❓
A memory leak occurs when an object is no longer referenced or needed, but still remains in memory and is not garbage collected. This can happen due to various reasons such as:
🟢 Unclosed connections or streams
🟢 Circular references
🟢 Global variables holding references to objects
🟢 Incorrect use of caching mechanisms
Q. What is Native Method ❓
A native method is a method that is implemented in a language other than Java, typically in C or C++, and is used to access platform-specific functionality.
Native methods are declared with the
native keyword and are loaded dynamically at runtime from a separate library.What can be said about the memory allocation for str and st?
Will str.hashCode() and st.hashCode() return same value ❓
What can be said about the memory allocation for str and st ❓
Java for Everything:
Java + Spring = Enterprise Applications
Java + Hibernate = Object-Relational Mapping
Java + Android = Mobile App Development
Java + Swing = Desktop GUI Applications
Java + JavaFX = Modern GUI Applications
Java + JUnit = Unit Testing
Java + Maven = Project Management
Java + Jenkins = Continuous Integration
Java + Apache Kafka = Stream Processing
Java + Apache Hadoop = Big Data Processing
Java + Microservices = Scalable Services
👨💻 SQL Quiz
Which function is used to get the numbers of rows in a table ❓
A. COUNT()
B. SUM()
C. AVG()
⬇️ Guess the correct option in the comments!
👨💻 SQL Quiz
Which keyword is used to sort rows in descending order ❓
A. ASC
B. DESC
C. ORDER
⬇️ Guess the correct option in the comments!
What's the role of the Object class in Java, and how is it related to inheritance❓
Comment Down Answer ⬇️⬇️
Read 2 Min Only
Most asked Interview Question
==============================
JDK Vs JRE Vs JVM
==============================
JDK (Java Development Kit): A platform that provides tools for developing, testing, and running Java programs.
JRE (Java Runtime Environment): A collection of libraries and software that allows Java programs to run. It's like a engine that powers the Java code. JRE is a part of JDK.
JVM (Java Virtual Machine): A software that runs Java bytecode and manages memory. It's like a virtual engine that executes the Java code. JVM is a part of JRE.
Think of it like a car:
- JDK is the entire car (platform)
- JRE is the engine (libraries and software)
- JVM is the engine's cylinder (executes bytecode and manages memory)
So, JDK > JRE > JVM
