Multiple choice

The method 'skip ()' in java. io package takes ______ argument(s).

  1. two

  2. one

  3. four

  4. three

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The skip() method in Java's java.io package takes exactly one argument - a long value specifying the number of bytes to skip. This method is used in input/output streams to skip over a specified number of bytes without reading them.