What will be the output of the following
Java Program ?
Answer :
- option 4 is correct because System.out.print(); requires argument to pass.
- print and println methods are defined in PrintStream Class.
More Question here : OCJP
About akash jain
Akash is a software developer with keen interest in software automation and dev-ops. When not coding, he is either busy browsing articles or reading anything or everything under this planet.
No comments:
Post a Comment