Hello Naranaya,
Welcome to Javaranch! First of all, you will need to check out the Javaranch policies regarding names.
You're missing a close parenthesis. Here's your correct code:
You need to name your source code Test2.java because your Test2 class is coderanch. Now, I compiled it and it returned:
cannot find symbol
symbol: constructor Sup()
location: class Sup
It's because in your Sup class, you declared a constructor with argument, so effectively,
Java will no longer insert a default constructor (a constructor without argument) in your Sup class. Now, when you're compiling Test2.java, there is an implicit call to super under your Test2 Constructor:
And this is looking for a constructor under Sup with no arguments in it, which you don't have.
Here's the correction: