What is the difference between an inner class and a sub-class?
No Answer is Posted For this Question
Be the First to Post Answer
How do you read a char in java?
What is a ternary operator in java?
How to avoid the runtime exception ?
Can a class be declared as static?
Can a serialized object be transferred via network?
Define inheritance?
5 What is Java exception handling?
as we know a static method could access static data and static method only. then how could main method call the object of aclass which is not static and other non static data
we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }
Explain the scope of a variable.
In Java, what are public static void main string args?
What are E and PI?