My question is that what is ".in" in system.in and i am not understandin the workin of System.in suppose

Scanner obj=new Scanner(System.in);

plz understand me the working of upper line.

in is a public constant in the System class. It refers to an InputStream object that gets the input from the console.

Here's part of the API doc for the System class:

public static final InputStream in

The "standard" input stream. This stream is already open and ready to supply input data. Typically this stream corresponds to keyboard input or another input source specified by the host environment or user.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.