why static class in java or what is use of static class in java

Answer Posted / chantiraji

we are using with out creating object for static class because, JVM allocate the consistent memory for static class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an anonymous class in java?

800


What is meant by structural programming?

809


What is linkedlist in java?

749


Give a brief description of java socket programming?

762


Is main a keyword in java?

756


What is the length of a string?

760


What is the main purpose of serialization in java?

798


What is java oops?

787


Explain the use of shift operator in java. Can you give some examples?

744


What is meant by singleton class?

813


What is JVM and is it platform independent?

787


What are variable names?

735


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2464


What is the difference between abstraction and encapsulation?

801


Can a class have multiple superclasses?

801