JavaWith.NextlevelCoders
Ir al canal en Telegram
Mostrar más
434
Suscriptores
+124 horas
Sin datos7 días
Sin datos30 días
Archivo de publicaciones
🧑💻 Java Quiz
Lambda expressions in java 8 are based on
A. Functional programming
B. Data programming
C. Procedural programming
⬇️ Guess the correct option in the comments!
Q What do you mean by
@SpringBootApplication annotation ❓
Comment Down and explain ⬇️
👨💻 Java Quiz
Which keyword is used to prevent a class from being inherited in Java?
A. final
B. static
C. private
⬇️ Guess the correct option in the comments!
+3
https://www.instagram.com/p/C9bLKKYBZ_t/?igsh=MWU5d3Q0YTh0Y3Y5ZQ==
Follow On Instagram
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 !
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 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 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 ⬇️
