The paper for a bank's IT post turns a page and, without any warning, the language changes. Everything so far was C. Now you see a class called Test with one field, a main with a strange String args[], and the question: "What is the output of this Java program?" You look for printf and there isn't one. You look for int main and it isn't there either. Then you spot the real catch: a variable t that was declared but never given an object. The honest answer, in three different papers, was not a number at all. The program does not even compile.
You have just finished C++, so none of this should frighten you. Classes, constructors, inheritance, virtual functions, abstract classes and static members are all ideas you already hold. Java keeps those ideas and changes the rules around them: abstract is a real keyword, every method is virtual unless you forbid it, there are no pointers to juggle, and the program does not run on the machine directly. It runs on a machine in between, the Java Virtual Machine. Many of the OOP and output questions in bank and BCS papers are written in Java, and the written papers keep asking the same few things: what are JDK, JRE and JVM, what is a static method, what does this do, what happens when you compare two Strings.