• Post Reply Bookmark Topic Watch Topic
  • New Topic

Datagrams v/s Stream

 
Pankaj Shet
Ranch Hand
Posts: 306
Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends,
can i get all the possible diffrences between Datagrams and streams in a tabular format??
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If by streams you mean the family of Java classes, then that would be like comparing apples with oranges. Datagrams are a way to get data from one machine to another via the UDP protocol (part of the TCP/IP suite), while streams are a way to make bytes (from various sources) available to a Java programs (or allow a Java program to write bytes someplace).
 
Pankaj Shet
Ranch Hand
Posts: 306
Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you sir, i got the answer...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!