3. "The book was written in the same year in which The Adventures of Huckleberry Finn was published."
4. "Hey, you know that book The Adventures of Huckleberry Finn? Well, this book was written in same year that that one was published!"
There's no difference in meaning - just syntax, emphasis, register, formality, etc.
There are hundreds of ways of saying that. My preference would be 3.
Student or Learner