Q)Why are we using java?
A) The java using Code purpose because c/c++ using more coding.Example we have
one Application development we writting thounds of lines after the codes are error
which line is an error.so doesn't found the error.We find out the error long time.
we taken so java using,The java program we write...
Thursday, 9 January 2014
Thursday, 2 January 2014
java interview questions & ans
Q)What is System.out.println()?
A)System is a class
out is an object
println() is a method
Q) Why are using String args[] in main() method?
A)The main method is String args[] because the JVM to allot the String by default.
Q)What happens if String args[] is not written in main() method?
A)When main() method is written without Strig args[]:
...
Subscribe to:
Posts (Atom)