I never play the same way JJ and QQ.
QQ is a premium hand (for me) and I play it aggressively from every position. On the other side, JJ is a hand that I am willing to FOLD very easily. Of course everything depends on the opponent and the proper reading of the situation.
When you have that hand UTG then you should obviously raise, but it's tough when you're being raised. It really depends on who is playing, how many, their chips stack vs yours, your position in a tournament, the blinds etc etc. If you're short stacked later on in the tournament, that's a primo hand UTG because the blinds are going to kill you, you'll most likely get called by a bigger stack (if you're on ACR, you'll probably be called by something like 92s and they'll miraculously flop or turn a flush) and chances are you'll be ahead most of the time. Sometimes you'll get a lot of preflop callers to your bet, watch for over cards because they're likely. If someone shoves, especially a larger stack, chances are they also have a monster. Keep in mind your chip stack and who is betting into you. Do they need chips? Are they limping with connectors? Do they have overcards? How often are they in pots etc. Just play accordingly based on the information you have available.
Of course it depends on the opponent, but why make 4bet? The only reason for this action is to prevent multibank. Or the desire to increase it, but in this example it is not the best move, in any case, if we are talking about a stack of 100bb. If you know that you have heads up, you can play this hand otherwise. In order to answer this question, need more information.
For me they are not similar: I prefer Q-Q before J-J 80% of the time. Since approximately that is the difference of force that exists between both hands, in the preflop instance.
In front of a 3bet and having one of these hands, my decision depends on the type of game the villain has, the size of my stack, my position on the table, the number of active players in the hand and the image that has the table about me as a player.