16,022,368 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by @k5hu (Top 8 by date)
@k5hu
15-Sep-18 3:43am
View
yes. But I couldn't get it because its mentioned asList has a generic of type T( the class of object in the array) but why can't it accept ArrayList object alone ?
@k5hu
30-Aug-18 6:48am
View
That's what it returns null
@k5hu
29-Aug-18 7:17am
View
It should return com.mysql.cj.jdbc.Driver instead it returns null
@k5hu
18-Aug-18 1:48am
View
ouptut:
java.lang.StackOverflowError
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
at oca.GetterSetter.<init>(GetterSetter.java:16)
.
.
.
only line 16 which in here is line 1 is mentioned
but in this :
class Sample {
Sample s = new Sample();//line1
static Sample sa = new Sample();
void check(Sample s) {
System.out.println(this.s == s);
}
}
public class Other
{ Other o=new Other();//line 2
static Other ot=new Other();
public static void main(String[] args) {
new Sample().check(new Sample().s);
}
}
output:
same error in line 2
and in this:
public class Sample {
Sample s = new Sample();//line1
static Sample sa = new Sample();
void check(Sample s) {
System.out.println(this.s == s);
}
public static void main(String[] args) {
new Sample().check(new Sample().s);
}
}
class Other
{ Other o=new Other();//line2
static Other ot=new Other();
}
but here ouput :
same error in line 1
by observing, I found that its happening only with public classes but I can't figure out the exact reason. Could you please help me understand this if possible?
@k5hu
17-Aug-18 14:03pm
View
Sir, but why there is no error in line 3?
@k5hu
2-Aug-18 1:31am
View
No. I am gonna reinstall now. Do you have any idea why its happening so ?
@k5hu
28-Jul-18 14:05pm
View
The radio button once selected gets deselected when moved to the next frame. The above code was meant to work but even though I added 'setSelected(true)' method it didn't work.
@k5hu
20-Jul-18 9:13am
View
Thank you so much :) I was confused with upcasting. Now am clear.
Show More