Tech Interview Questions
171 subscribers
18 photos
1 file
67 links
Download Telegram
๐Ÿ”ก What are Embedded Servers in Spring Boot?

Answer:
Spring Boot includes
embedded servers like Tomcat, Jetty, and Undertow, eliminating the need for external deployment.
โ€ข By default, Spring Boot uses
Tomcat (spring-boot-starter-web).
โ€ข You can switch to
Jetty:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
<scope>provided</scope>
</dependency>


โ€ข Server configuration can be customized in application.properties:

server.port=8081
server.tomcat.threads.max=200
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ”ก How do you customize logging in Spring Boot?

Answer:
Spring Boot uses
Logback by default but supports SLF4J, Log4j2, and Java Util Logging.

Customize Logging in application.properties:

logging.level.org.springframework=DEBUG
logging.level.com.myapp=INFO
logging.file.name=app.log
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} - %msg%n
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘2
If youโ€™re enjoying these types of questions, please give a thumbs-up (๐Ÿ‘)!
๐Ÿ‘7๐Ÿ‘2๐Ÿ”ฅ1
Forwarded from Java Express Official
Hi Everyone,

๐Ÿ”ก๐Ÿ”ก๐Ÿ”ก๐Ÿ”ก๐Ÿ”ก๐Ÿ”ก๐Ÿ”ก๐Ÿ”ก
Exciting news! Our JavaExpress Android app is now officially available. Install it on your phone and watch videos anytime. Click the link below to download it from the Play Store!

โ˜„๏ธโ˜„๏ธโ˜„๏ธ
Link : https://play.google.com/store/apps/details?id=com.javaexpress
Please open Telegram to view this post
VIEW IN TELEGRAM
Tricky Core Java Interview Questions โ€“ Must-Know for Java Developers!
Facebook Page Link
https://www.facebook.com/share/p/1HqPBjM43d/
Forwarded from Java Express Official
ECommerce Microservices Architecture Course.pdf
1.9 MB
๐Ÿš€ Master Real-Time E-Commerce Development with Java & Spring Boot! ๐Ÿ›’โšก

๐Ÿ“ข New Batch Starting on March 5th @ 9 PM IST!

๐Ÿ”ฅ Want to build a real-time E-Commerce project using Java, Spring Boot & Microservices? This is your chance to learn & implement end-to-end development with industry best practices!

๐Ÿ“– What you'll learn?
โœ… Real-time project architecture with Microservices
โœ… Spring Boot implementation step-by-step
โœ… Database design & API structure
โœ… Best practices for scalability & security
โœ… Docker & Kubernetes Deployment

๐Ÿ’ก Perfect for Freshers & Experienced Developers looking to upskill and crack job interviews!

๐Ÿ“ฉ Download FREE Project PDF & Join the Training!

๐Ÿ“ฒ Reach out on WhatsApp: +91 7801007910
Subscribe our channel : https://www.youtube.com/c/javaexpress
Forwarded from Java Express Official
๐Ÿš€ Tricky Core Java Interview Questions โ€“ Must-Know for Java Developers!

๐Ÿ’ก Are you preparing for Java interviews? Hereโ€™s a list of tricky Core Java questions that often confuse even experienced developers! ๐ŸŽฏ
๐Ÿ”ฅ Strings & Memory
๐Ÿ”น Why is String immutable in Java?
๐Ÿ”น Difference between StringBuffer and StringBuilder?
๐Ÿ”น What happens when you modify a string stored in the String Pool?

๐Ÿ— Object & Classes
๐Ÿ”น Can we override static methods? Why?
๐Ÿ”น What happens if a constructor is private?
๐Ÿ”น Can we make a class immutable? How?

โš  Exception Handling
๐Ÿ”น What happens if an exception is thrown in a finally block?
๐Ÿ”น Can we have try without catch?
๐Ÿ”น Checked vs. Unchecked exceptions?

๐Ÿšฆ Multi-threading
๐Ÿ”น Difference between wait(), sleep(), and yield()?
๐Ÿ”น Can synchronized methods run in parallel?
๐Ÿ”น What happens if we call run() instead of start() in a thread?

๐Ÿ“š Collection Framework
๐Ÿ”น Difference between HashMap and ConcurrentHashMap?
๐Ÿ”น Can we store null keys in HashMap and Hashtable?
๐Ÿ”น Why is ArrayList faster than LinkedList for searching?

๐Ÿ”„ JVM & Memory Management
๐Ÿ”น How does the Garbage Collector work in Java?
๐Ÿ”น What is PermGen vs. Metaspace?
๐Ÿ”น What happens if an object has only finalize() and no references?

๐Ÿคฏ Miscellaneous
๐Ÿ”น What happens if we modify a HashMap while iterating?
๐Ÿ”น Can we have multiple public classes in a Java file?
๐Ÿ”น Why does Java not support multiple inheritance?

๐Ÿ”ฅ Watch More Java Interview Questions:
๐Ÿ”น Top Java 8 Coding Problems: https://bit.ly/java8coding
๐Ÿ”น Top Java Interview Programs : https://bit.ly/3QGJFAf
๐Ÿ”น Java Full Stack Course: https://bit.ly/412pFNc
๐Ÿ”น Real Time Java videos : https://bit.ly/3Dn3h9l

๐Ÿ”ด Join Interview Group
๐Ÿ“Œ๐“๐ž๐ฅ๐ž๐ ๐ซ๐š๐ฆ: https://t.me/javaexpressit

๐Ÿ”ด Follow me on social media:
๐Ÿ“Œ๐“๐ž๐ฅ๐ž๐ ๐ซ๐š๐ฆ: https://t.me/javaexpressofficial
๐Ÿ‘1