Examine the following code. There is a static inner class (ProductDetail) inside the outer class (Product). What is the correct way to create an instance of the ProductDetail class?

a) ProductDetail pd = new ProductDetail();
b) Product.ProductDetail pd = new Product().new ProductDetail();
c) Product.ProductDetail pd = new Product.ProductDetail();
d) Product.ProductDetail pd = new Product().ProductDetail();

Q&A Platform for Education
Platform Explore for Education