The t-test happens to be a statistical hypothesis test whereby a student's t-distribution is followed by the test statistics if it supports the null hypothesis. You apply this test when there is a normal distribution of the test statistics, and you know the scaling term value in the test statistics. This t-test statistics was introduced by William Sealy Gosset, a chemist for the Guinness brewery in Ireland, in the year 1908.
Generally, t-test statistics follow the form T=Z/s, where, s, and Z are the data functions. On the other hand, ANOVA (the variance analysis) is a collection of statistical models. ANOVA has actually been in use by statisticians and researchers for quite a time but was proposed to be formalized in an article written by Sir Ronald Fisher in the year 1918.
Unlike the t-test that is used in comparing two means, ANOVA is generally employed in determining the relationship between three or more means. The t-test might tend to commit error when being engaged in larger means, reason why ANOVA is employed in more means.