how do i build an oscillator circuit of frequency 40 Mhz?
Easiest way is to buy a canned 40MHz crystal oscillator:
Is that what you want, or are you meaning to design one with discretes? If you want to design one, what textbooks and other resources do you have available that talk about how to design and build one?
Separate names with a comma.