418
Subscribers
No data24 hours
-27 days
+1230 days
Posts Archive
What is it called where object has its own lifecycle and child object cannot belong to another parent object ❓
INDMoney Hiring SDE Intern
Batch : 2023/2024/2025
https://docs.google.com/forms/d/e/1FAIpQLSfP6cBiCXLLQ1rOSNePTDTHefMGSc6ijVDWm52MeHdiBbj-kQ/viewform
JDBC Quiz
A good way to debug JDBC-related problems is to enable?
A) JDBC tracing and Exception handling
B) Exception handling
C) JDBC tracing
D) Exception handling
Choose the correct option
JDBC Quiz
Which of the following is advantage of using JDBC connection pool?
A) Using less memory
B) Slow performance
C) Better performance
D) Using more memory
JDBC QUIZ
Which of the following driver converts the JDBC calls into database-specific calls?
A) Native API-partly Java Driver (Type 2)
B) Net Protocol-pure Java Driver (Type 3)
C) Native Protocol-pure Java Driver (Type 4)
D) JDBC-ODBC Bridge Driver (Type 1)
Guess the correct option in the comments!
👨💻 JDBC Quiz
Which of the following is used to limit the number of rows returned ?
A. getMaxrows(int i)
B. getMinRows(int i)
C. setMaxRows(int i)
⬇️ Guess the correct option in the comments!
Q. What are daemon threads in java ❓
In Java, a daemon thread is a thread that runs in the background, performing tasks that are not critical to the program's execution.
Daemon threads are typically used for tasks such as:
==========================
• Garbage collection
• Memory management
• Monitoring system resources
• Providing services to other threads
Characteristics of daemon threads
==========================
🔹 Run in the background Daemon threads run in the background, without blocking the main program's execution.
🔹 Low priority: Daemon threads have a lower priority than normal threads.
🔹 * *Don't prevent JVM termination**: If all non-daemon threads finish execution, the JVM can terminate even if daemon threads are still running.
🔹 Inherit daemon status: Threads created by a daemon thread are also daemon threads.
==========================
To create a daemon thread in Java, you can use the
==========================
**
setDaemon(true)** method on a Thread object before starting it:
Thread thread = new Thread(() -> {
// Perform background task
});
thread.setDaemon(true);
thread.start();
`
**Note that** daemon threnot suitable for tasks tasks** that require precise timing or critical execution, as they may be interrupted or terminated by the JVM at any time.Java Keywords
=========================
Keywords in Java are also known as reserved words. These are thepredefined words therefore they can’t be used as a variable name. If we will use keywords as a variable name, the result will be a compile-time error. The list of all the Java Keywords is given below.
Welcome to DSA & Interview Prep 23-Day Challenge!
Join us for a 23-day journey to boost your coding skills and interview prep!
JOIN
=========👇🏻
https://whatsapp.com/channel/0029VakgEur9Bb61AvkwRs3e
What to Expect
==========================
- Daily 5-10 DSA questions, topic-wise
- Interview questions to help you prepare and succeed
Challenge Rules
==========================
- Solve the daily questions and share your answers in the group
- Stay consistent and track your progress
Topics Covered:
==========================
- Arrays, Strings, Linked Lists, Stacks, Queues, Trees, Graphs, and more!
- System Design, Algorithms, and Data Structures
Let's Grow Together!
Join us now and take the first step towards cracking your dream coding interview!
Share with your friends and fellow coders to join the challenge!
https://whatsapp.com/channel/0029VakgEur9Bb61AvkwRs3e
WhatsApp Group for DSA and Interview Questions 23 days challenge
What is the time complexity for accessing an element in a static array?
