Click here to Skip to main content
15,438,095 members
Home / Discussions / Java
   

Java

 
GeneralDynamic Polymorphism Pin
Sudhanshu_India24-Feb-22 2:38
MemberSudhanshu_India24-Feb-22 2:38 
QuestionRe: Dynamic Polymorphism Pin
Richard MacCutchan24-Feb-22 3:27
mveRichard MacCutchan24-Feb-22 3:27 
AnswerRe: Dynamic Polymorphism Pin
Sudhanshu_India24-Feb-22 4:26
MemberSudhanshu_India24-Feb-22 4:26 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan24-Feb-22 4:56
mveRichard MacCutchan24-Feb-22 4:56 
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 0:42
MemberSudhanshu_India25-Feb-22 0:42 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan25-Feb-22 0:51
mveRichard MacCutchan25-Feb-22 0:51 
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 1:09
MemberSudhanshu_India25-Feb-22 1:09 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan25-Feb-22 1:17
mveRichard MacCutchan25-Feb-22 1:17 
You should always add a toString method to your classes. All classes are ultimately based on the Object class, which has a very simple toString method (as you have seen). So unless you provide a custom version that is what you will get for your own classes. Remember, the Java system cannot guess what properties, or in what format, you want your classes to be printed.
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 1:20
MemberSudhanshu_India25-Feb-22 1:20 
GeneralRe: Dynamic Polymorphism Pin
englebart11-Mar-22 11:56
professionalenglebart11-Mar-22 11:56 
QuestionJava programming Pin
Member 1554066219-Feb-22 0:02
MemberMember 1554066219-Feb-22 0:02 
AnswerRe: Java programming Pin
OriginalGriff19-Feb-22 0:03
mveOriginalGriff19-Feb-22 0:03 
GeneralRe: Java programming Pin
MarkTJohnson22-Feb-22 7:23
professionalMarkTJohnson22-Feb-22 7:23 
GeneralRe: Java programming Pin
ramisthand764-Mar-22 23:26
Memberramisthand764-Mar-22 23:26 
GeneralRe: Java programming Pin
OriginalGriff5-Mar-22 0:24
mveOriginalGriff5-Mar-22 0:24 
QuestionJSP -> JavaBean Connectivity Issue Pin
Josh Hebert6-Feb-22 12:40
MemberJosh Hebert6-Feb-22 12:40 
AnswerRe: JSP -> JavaBean Connectivity Issue Pin
Josh Hebert6-Feb-22 12:42
MemberJosh Hebert6-Feb-22 12:42 
QuestionRe: JSP -> JavaBean Connectivity Issue Pin
Richard MacCutchan7-Feb-22 0:44
mveRichard MacCutchan7-Feb-22 0:44 
AnswerRe: JSP -> JavaBean Connectivity Issue Pin
englebart12-Feb-22 14:29
professionalenglebart12-Feb-22 14:29 
AnswerRe: JSP -> JavaBean Connectivity Issue Pin
jschell17-Feb-22 11:26
Memberjschell17-Feb-22 11:26 
QuestionSwitch from VB.Net to Java Pin
Kanel Roath4-Feb-22 4:16
MemberKanel Roath4-Feb-22 4:16 
AnswerRe: Switch from VB.Net to Java Pin
Richard MacCutchan4-Feb-22 5:00
mveRichard MacCutchan4-Feb-22 5:00 
GeneralRe: Switch from VB.Net to Java Pin
Kanel Roath5-Feb-22 2:44
MemberKanel Roath5-Feb-22 2:44 
GeneralRe: Switch from VB.Net to Java Pin
Richard MacCutchan5-Feb-22 2:59
mveRichard MacCutchan5-Feb-22 2:59 
AnswerRe: Switch from VB.Net to Java Pin
Dave Kreskowiak4-Feb-22 6:13
mveDave Kreskowiak4-Feb-22 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.