Click here to Skip to main content
15,888,984 members
Home / Discussions / Java
   

Java

 
GeneralRe: adding multiply and division method Pin
Akash gods28-Feb-15 6:48
professionalAkash gods28-Feb-15 6:48 
GeneralRe: adding multiply and division method Pin
Richard MacCutchan28-Feb-15 6:55
mveRichard MacCutchan28-Feb-15 6:55 
QuestionWhat type of check is made in an ArrayList generic? Pin
Afzaal Ahmad Zeeshan22-Feb-15 7:06
professionalAfzaal Ahmad Zeeshan22-Feb-15 7:06 
AnswerRe: What type of check is made in an ArrayList generic? Pin
Richard MacCutchan22-Feb-15 7:38
mveRichard MacCutchan22-Feb-15 7:38 
GeneralRe: What type of check is made in an ArrayList generic? Pin
Afzaal Ahmad Zeeshan22-Feb-15 8:47
professionalAfzaal Ahmad Zeeshan22-Feb-15 8:47 
AnswerRe: What type of check is made in an ArrayList generic? Pin
jschell23-Feb-15 10:21
jschell23-Feb-15 10:21 
GeneralRe: What type of check is made in an ArrayList generic? Pin
Afzaal Ahmad Zeeshan23-Feb-15 20:26
professionalAfzaal Ahmad Zeeshan23-Feb-15 20:26 
GeneralRe: What type of check is made in an ArrayList generic? Pin
jschell26-Feb-15 9:50
jschell26-Feb-15 9:50 
Afzaal Ahmad Zeeshan wrote:
Why would it throw error for attaching a type to the List?


Not sure what you mean by "throw error" but the compiler validates types for generics and will produce a compiler error when it finds those.

Other than that it is possible to put the wrong type in a list because the compiled version doesn't have a type. An error will occur later because as the compiler produces code it puts in checks which impact what happens when you get something out of the list. And one of those checks will fail. Seeing such a error isn't a good thing since it can be very confusing.
Questionproject Pin
Member 1146518219-Feb-15 10:35
Member 1146518219-Feb-15 10:35 
AnswerRe: project Pin
Richard Andrew x6419-Feb-15 12:25
professionalRichard Andrew x6419-Feb-15 12:25 
AnswerRe: project Pin
Afzaal Ahmad Zeeshan22-Feb-15 6:55
professionalAfzaal Ahmad Zeeshan22-Feb-15 6:55 
Questionwhy calculation(BMI) is not working.... please help me... Pin
Member 1141203417-Feb-15 9:41
Member 1141203417-Feb-15 9:41 
GeneralRe: why calculation(BMI) is not working.... please help me... Pin
harold aptroot17-Feb-15 10:41
harold aptroot17-Feb-15 10:41 
Questionjava Pin
Member 1145378615-Feb-15 5:48
Member 1145378615-Feb-15 5:48 
AnswerRe: java Pin
Richard MacCutchan15-Feb-15 6:11
mveRichard MacCutchan15-Feb-15 6:11 
AnswerRe: java Pin
Richard Andrew x6419-Feb-15 12:26
professionalRichard Andrew x6419-Feb-15 12:26 
Question[SendingMultipartDataPostRequest] Issues with Sending a Post Request with Multi-part form data Pin
B.Sudhir14-Feb-15 12:27
B.Sudhir14-Feb-15 12:27 
Questionwhy java is called as architectural neutral? Pin
Member 1144945112-Feb-15 22:31
Member 1144945112-Feb-15 22:31 
AnswerRe: why java is called as architectural neutral? Pin
Richard MacCutchan12-Feb-15 22:36
mveRichard MacCutchan12-Feb-15 22:36 
Questionjava netbeans Pin
Member 1144139511-Feb-15 3:23
Member 1144139511-Feb-15 3:23 
QuestionRe: java netbeans Pin
Richard MacCutchan11-Feb-15 21:44
mveRichard MacCutchan11-Feb-15 21:44 
AnswerRe: webbase chat program Pin
Member 1144139512-Feb-15 0:54
Member 1144139512-Feb-15 0:54 
GeneralRe: webbase chat program Pin
Richard MacCutchan12-Feb-15 1:02
mveRichard MacCutchan12-Feb-15 1:02 
AnswerRe: java netbeans Pin
Member 1144139513-Feb-15 4:15
Member 1144139513-Feb-15 4:15 
GeneralRe: java netbeans Pin
Richard MacCutchan13-Feb-15 4:55
mveRichard MacCutchan13-Feb-15 4:55 

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.