uk
Feedback
JavaWith.NextlevelCoders

JavaWith.NextlevelCoders

Відкрити в Telegram
418
Підписники
Немає даних24 години
-27 днів
+1230 днів
Архів дописів
How many ways to create a Thread in Java ? #javaprogramming #coding #interview #coderlife #mnc #microsoft #google #codingjourney https://www.instagram.com/p/C9bLKKYBZ_t/?igsh=MWU5d3Q0YTh0Y3Y5ZQ==

============================== Java Interview Questions ============================== Q. How many ways to create a thread in Java ? ANS ---------------- There are two ways to create a thread in Java: 1. Extending the Thread class: - Create a subclass of Thread - Override the run() method - Create an instance of the subclass and start the thread 2. Implementing the Runnable interface: - Create a class that implements Runnable - Implement the run() method - Create a Thread object and pass the Runnable object to it - Start the thread short example of both ways: ============================== Extending Thread: ============================== public class MyThread extends Thread { public void run() { System.out.println("Hello from thread!"); } } MyThread thread = new MyThread(); thread.start(); Implementing Runnable: ============================== public class MyRunnable implements Runnable { public void run() { System.out.println("Hello from thread!"); } } Runnable runnable = new MyRunnable(); Thread thread = new Thread(runnable); thread.start(); React 🔥 if this resource is helpful!

Spring Boot Question 🍃 Which annotation is used to inject externalised properties? a)@RequestParam b)@Value c)@Autowired d)@Configuration ⬇️ Guess the correct option in the comments !

Spring Boot Question 🍃 What is default logging framework used by Spring boot ❓ a) Log4j b) Java util logging (JLU) c) Logback d) Apache commons Logging ⬇️ Guess the correct option in the comments !

Spring Boot Question 🍃 What is default database used by spring boot application ❓ a) MySql b) PostgreSQL c) H2 d) Oracle ⬇️ Guess the correct option in the comments !

Spring Boot Question 🍃 What is the default port number used by spring boot embedded Tomcat Server❓ a) 8080 b) 3306 c) 8081 d) 3000 ⬇️ Guess the correct option in the comments !

Spring Boot Question 🍃 The property marked with ____ annotation will not be persisted❓ a) @Data b) @Volatile c) @Transient d) None of the above ⬇️ Guess the correct option in the comments !

Refered by JavaWith.NextLevelCoders

Dear Students, 🏵 Congratulations 🏵 🛣 Anudip foundation is offering Training and Placement program for BCA, B.tech and MCA Final semester students. *🔍 Advance Java Programming:* This is a 100 hrs training program in online mode which includes- * Java * DBMS * JPA-Hibernate * Spring Boot * Project *🔍 Data Analytics*: This is a 180 hrs training program in online mode which includes- * Excel * Power BI * Python * SQL * Project _*🔖 Limited Seats__* Attempt the first step for pre screening Now 🔗https://forms.gle/oTTzwTYiJMMQKqgR8 Registration Fees: Rs. 1000 Only (After passing the pre screening) For Limited period no Registration fees Batch Start Date 🗓 12 July 2024 Any queries contact me- Ankit 6293324943

============================== Who wants to alpha 5.0 course comment down 👇 (Java with DSA ) Apna college ==============================

Innovate & boost your career! *Google is inviting you* for Hack4Change: a 24-hour hackathon by Google & The Nudge, powered by
Innovate & boost your career! *Google is inviting you* for Hack4Change: a 24-hour hackathon by Google & The Nudge, powered by Hack2skill. Work on exciting open innovation themes & transform industries! ➡️ Register now: 🔗 https://bit.ly/Hack4Change24 Benefits & perks: 🚀 *Cash prizes* worth INR 5 Lakhs 🚀 Apply for *Google Programs* (Startup Accelerators, GDE, Women Techmakers) 🚀 Access Google for Startups *Cloud Program* 🚀 *Join Developer Communities* for networking & collaboration 🚀 Earn a industry certified *certificate* for your idea 🚀 Hands-on training from the Google team Limited seats left to claim above prizes, participate now!

Click on above link and scroll down check details/eligibility who is participating in this contest Create a team of 3 members
Click on above link and scroll down check details/eligibility who is participating in this contest Create a team of 3 members who will discuss and collaborate with each other as if they don't have a team, and they can form their team by talking in the comment box ⬇️

Here are some common errors that can occur in a web application. ============================== 1. 404 Not Found: The requested resource (page, image, etc.) cannot be found on the server. 2. 500 Internal Server Error: A generic error indicating that the server encountered an unexpected condition that prevented it from fulfilling the request. 3. 403 Forbidden: The server is refusing access to the requested resource, often due to permission or authentication issues. 4. 401 Unauthorized: The client lacks valid authentication credentials to access the requested resource. 5. 408 Request Timeout: The server took too long to respond, and the client timed out. 6. 422 Unprocessable Entity: The request was well-formed, but the server couldn't process it due to semantic errors. 7. 413 Payload Too Large: The request payload exceeds the server's limits. 8. 429 Too Many Requests: The client sent too many requests in a short period, and the server is rate-limiting. 9. 503 Service Unavailable: The server is currently unable to handle requests due to maintenance or overload. 10. SQL Exception: Errors related to database queries, such as syntax errors or connection issues. 11. NullPointerException: A programming error where a null value is encountered where an object is expected. 12. ClassCastException: A programming error where an object is cast to the wrong type. 13. IllegalArgumentException: A programming error where an illegal or invalid argument is passed to a method. 14. IOException: Errors related to input/output operations, such as file not found or network connection issues. 15. TimeoutException: A programming error where a operation takes longer than expected and times out. Note: This is not an exhaustive list, but it covers some common errors that can occur in web applications.

What is the full form of REST in web services?
Anonymous voting

SQL Quiz Which of the following options is correctly formatted to ensure a database is created if it does not already exist? A. createDatabaseIfNotExist= true B. CreateDatabaseifnotexist = true C. createdatabaseifnotExist = true ⬇️ Guess the correct option in the comments!

👨‍💻 SQL Quiz Which SQL keyword is used to retrieve data from database ? A. GET B. SELECT C. FETCH D. SEARCH ⬇️ Guess the correct option in the comments!

Okay .....

Java Interview Questions Set-4
Java Interview Questions Set-4