Where s2 object is stored in heap or in scp area?

|
patrikalb 2022-09-08 19:27:33
MahiGJA 2022-09-08 19:18:01
springbootmicroservices-77962.jpg
Pls tell me how to fix it!!

https://stackoverflow.com/questions/6021899/eclipse-maven-multiple-annotations-found-at-this-line/18800625#18800625 check this one

Eclipse | Maven : Multiple annotations found at this lineStack Overflow
I’m trying to import a maven project into Eclipse.

I’m using Helios. I’ve downloaded m2eclipse. I’ve imported the project.

But I’am having so much troubles to compile the project.

The full project

MahiGJA 2022-09-08 19:39:45
patrikalb 2022-09-08 19:27:33
springbootmicroservices-77962.jpg
https://stackoverflow.com/questions/6021899/eclipse-maven-multiple-annotations-found-at-this-line/18800625#18800625 check this one

Tq!!
I followed but not working

patrikalb 2022-09-08 19:43:52
MahiGJA 2022-09-08 19:39:45
springbootmicroservices-77962.jpg
Tq!!
I followed but not working

Are you sure that you can provide nested bean tags there? Is that allowed?

adonih1 2022-09-08 19:46:49
I try to confirm a password confirmation at registration using java servlet by making a user to type twice on JSP form. Can anybody help me?
MahiGJA 2022-09-08 19:53:23
patrikalb 2022-09-08 19:43:52
springbootmicroservices-77962.jpg
Are you sure that you can provide nested bean tags there? Is that allowed?

Means!!
Can you elaborate it!!

Aravind901 2022-09-08 20:27:26
String s1=new String (“abc”);
String s2=s1;
Where s2 object is stored in heap or in scp area?
MahiGJA 2022-09-08 20:32:41
MahiGJA 2022-09-08 19:53:23
springbootmicroservices-77962.jpg
Means!!
Can you elaborate it!!

@patrikalb 🤝🤝🤝🤝
Fixing now!!
I have restarted system!!
I followed those steps!!

Vipin mahore 2022-09-08 20:33:01
Hi I am beginner which just started learning JAVA langauge , I need also job as A frisher any one can help me for gatting to job .
I am belongs to civil engineering but I am swich from this ,and Learning java .l have much interested I java learning
Rajat_12345 2022-09-08 20:33:13
Aravind901 2022-09-08 20:27:26
springbootmicroservices-77962.jpg
String s1=new String (“abc”);
String s2=s1;
Where s2 object is stored in heap or in scp area?

Dynamic allocation is related to heap memory allocation

Aravind901 2022-09-08 20:35:35
Rajat_12345 2022-09-08 20:33:13
springbootmicroservices-77962.jpg
Dynamic allocation is related to heap memory allocation

In s1 content is there or
Only object assigned

patrikalb 2022-09-08 20:37:30
MahiGJA 2022-09-08 20:32:41
springbootmicroservices-77962.jpg
@patrikalb 🤝🤝🤝🤝
Fixing now!!
I have restarted system!!
I followed those steps!!

Great!! 👍

A P 2022-09-08 22:33:04
Hello,
I want to learn Java spring boot
thenmozhi37 2022-09-08 23:50:24
any one have idea about migration from java 1.8 to java 17 version along with spring version migration
G P 2022-09-09 02:21:43
Hello,

I have fetch query using named jdbc template. This query is called by multiple apis async fashion because of this result is fetched very late. As we are using azure mysql mangament studio. Will there be any locks ?

Can some one please post any suggestions

codecraft01 2022-09-09 02:59:54
Hello all, to learn things fast, classroom notes are the best, as it teaches the subject to the point. I have some handwritten and printed notes with the below topics. Few notes are free to download. Check out the below link.

https://thinkingbell.myinstamojo.com/shop

1. Free Java Language Handwritten Notes
2. Free JavaScript Printed Notes
3. Free jQuery Printed Notes
4. Free Bootstrap Printed Notes
5. C Language Handwritten Notes
6. C-Sharp Language Handwritten Notes
7. C++ Language Handwritten Notes
8. Hibernate Framework Handwritten Notes
9. HTML, CSS and JavaScript Handwritten Notes
10. Oracle Handwritten Notes
11. PHP, jQuery, MySQL, Joomla, Drupal, JavaScript, Ajax Handwritten Notes
12. Spring Framework Handwritten Notes
13. SQL and PLSQL Handwritten Notes
14. Spring Boot and Microservices Printed Notes
15. Python Language Printed Notes
16. Django Printed Notes
17. Core Java Printed Notes
18. Java 10-14 Features Printed Notes
19. Hibernate Framework Printed Notes
20. Web Services Printed Notes
21. Spring Framework Printed Notes
23. TypeScript Printed Notes

Programming NotesMyinstamojo
Programming Handwritten Notes
Debiprasad Dash 2022-09-09 04:35:52
A P 2022-09-08 22:33:04
springbootmicroservices-77962.jpg
Hello,
I want to learn Java spring boot

Learn it who stops you

ay00777 2022-09-09 04:44:44
Anyone knows best approach to get image from user/profile picture. I have a spring boot api which takes username, mobile and few other details to create profile…. I have to take image as well.. Please guide how to take image and where to save and how to display it then in Angular form
Krishna G 2022-09-09 05:32:17
A P 2022-09-08 22:33:04
springbootmicroservices-77962.jpg
Hello,
I want to learn Java spring boot

are you looking for resources

Mohammed 2022-09-09 07:44:41
ay00777 2022-09-09 04:44:44
springbootmicroservices-77962.jpg
Anyone knows best approach to get image from user/profile picture. I have a spring boot api which takes username, mobile and few other details to create profile…. I have to take image as well.. Please guide how to take image and where to save and how to display it then in Angular form

You can store it as a multipart value or you can convert it into base64

Aravind901 2022-09-09 08:11:50
class HelloWorld {
public static void main(String[] args) {
StringBuffer sb1=new StringBuffer(“abc”);
StringBuffer sb2=new StringBuffer(“xyz”);
StringBuffer sb3=new StringBuffer(“abc”);
sb1=sb2;
sb2=sb3;
sb3=sb1;
System.out.println(sb1==sb2);
System.out.println(sb3==sb1);
System.out.println(sb2==sb3);

System.out.println(sb1);
System.out.println(sb2);
System.out.println(sb3);
}
}

why

false
true
false

But not

true
true
true

Aravind901 2022-09-09 08:15:53
Aravind901 2022-09-09 08:11:50
springbootmicroservices-77962.jpg
class HelloWorld {
public static void main(String[] args) {
StringBuffer sb1=new StringBuffer(“abc”);
StringBuffer sb2=new StringBuffer(“xyz”);
StringBuffer sb3=new StringBuffer(“abc”);
sb1=sb2;
sb2=sb3;
sb3=sb1;
System.out.println(sb1==sb2);
System.out.println(sb3==sb1);
System.out.println(sb2==sb3);

System.out.println(sb1);
System.out.println(sb2);
System.out.println(sb3);
}
}

why

false
true
false

But not

true
true
true

How answer is false true false
== operator is content comparison or reference
Comparison
In stringbuffer .equals method is not overridden then object class .equals() method will be called.
It is reference comparison

YagodinArtem 2022-09-09 08:26:09
Aravind901 2022-09-09 08:15:53
springbootmicroservices-77962.jpg
How answer is false true false
== operator is content comparison or reference
Comparison
In stringbuffer .equals method is not overridden then object class .equals() method will be called.
It is reference comparison

Read about string pool

Aravind901 2022-09-09 08:29:55
Stringbuffer objects are also Store in scp?
YagodinArtem 2022-09-09 09:05:17
Aravind901 2022-09-09 08:29:55
springbootmicroservices-77962.jpg
Stringbuffer objects are also Store in scp?

No, but s buffer and so on s builder is an abstraction over string

Aravind901 2022-09-09 09:12:32
Ok
YagodinArtem 2022-09-09 10:03:07
Aravind901 2022-09-09 09:12:32
springbootmicroservices-77962.jpg
Ok

i think id lied to you, its not about strings, it`s abount pointers only

YagodinArtem 2022-09-09 10:03:50
Aravind901 2022-09-09 09:12:32
springbootmicroservices-77962.jpg
Ok

you can replace string buffers with just new Object, and have same result

P S 2022-09-09 12:23:09
I think you can change the identifer. It will solve..
Raj 2022-09-09 12:33:38
springbootmicroservices-78042.jpg

Raj 2022-09-09 12:34:30
I have joined user and message class
And I want to saveMessage according to user by their ids
|