tcpdump [ -adeflnNOpqRStuvxX ] [ -c count ]
[ -C file_size ] [ -F file ]
[ -i interface ] [ -m module ] [ -r file ]
[ -s snaplen ] [ -T type ] [ -U user ] [ -w file ]
[ -E algo:secret ] [ expression ]
Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression. It can also be run with the -w flag, which causes it to save the packet data to a file for later analysis, and/or with the -r flag, which causes it to read from a saved packet file rather than to read packets from a network interface. In all cases, only packets that match expression will be processed by tcpdump.
More here on official website : http://www.tcpdump.org/
tcpdump -w – -p -n -s 0 udp > /tmp/capture-packets.txt
-w ( Output file )
-p Dont start promiscous mode
-n – no name resolution
-s 0 (Full frame, not only first bytes)
udp ( only udp packets)
Nice Video : http://www.youtube.com/watch?v=OFpQLyQxt84
Similar tools wireshark.
Operators in Java
1) What are operators and what are the various types of operators available in Java?
Ans: Operators are special symbols used in expressions.
The following are the types of operators:
Increment & Decrement operators,
Comparison/Relational operators and
2) The ++ operator is used for incrementing and the — operator is used for
3) Comparison/Logical operators are used for testing and magnitude.
4) Character literals are stored as Unicode characters.
5) What are the Logical operators?
Ans: OR(|), AND(&), XOR(^) AND NOT(~).
6) What is the % operator?
Ans : % operator is the modulo operator or reminder operator. It returns the reminder of dividing the first operand by second operand.
7) What is the value of 111 % 13?
Ref Link contributor : http://www.hudihudi.com/placement/java/java11.htm
Permanent link to Java Tutorials / Java Interview Questions: http://www.freshersinterviewquestions.com/java-tutorials-operators