System.out.println("somestring"); It will create any object
or not
Answer Posted / prajakta
yes...Here System is a pre-defined class & out is a static
variable of that class.So we use "System.out" i.e
(className.variableName)..which gives you printstream class
object..now that object is used to call non-static method
of printstream class(println)i.e. obj.methodName();
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are static members inherited to sub classes?
What is the best definition for data?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
What is functional interface in java?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
Can a hashset contain duplicates java?
What is the epoch date?
Why doesn't the java library use a randomized version of quicksort?
Similarity and difference between static block and static method ?
What are methods in java?
What advantage do java's layout managers provide over traditional windowing systems?
Implement two stacks using a single array.
Explain the importance of throws keyword in java?
What is the use of default method in interface in java?
What is factor r?