can we create object for static class in java

Answer Posted / sriragv

There is no need to instantiate the object to make a copy
of the class in your system because already there is a copy
of the class will be available in the JVM we can directly
access them by 'class.member'

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this mean java?

561


Explain listiterator and methods in listiterator?

549


What is the difference between delete and delete[]

586


Can we sort arraylist in java?

565


What does main method?

566






Which are different kinds of source code?

662


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1585


What is method overriding in java ?

664


What is the difference between compare and compareto in java?

491


How many types of voids are there?

539


Is java a virus?

536


what are abstract functions?

561


Why to use nested classes in java?

591


What is use of functional interface in java 8? Explain

567


What are streams in java 8?

550