1There are many questions that can be made to test your java knowledge,
2like the ones below:
3
4Explain JDK, JRE and JVM?
5Explain public static void main(String args[]) in Java
6Why Java is platform independent?
7Why Java is not 100% Object-oriented?
8What are wrapper classes in Java?
9What are constructors in Java?
10What is singleton class in Java and how can we make a class singleton?
11What is the difference between Array list and vector in Java?
12What is the difference between equals() and == in Java?
13What are the differences between Heap and Stack Memory in Java?
14
15You can find more questions in the link below :)
16https://www.edureka.co/blog/interview-questions/java-interview-questions/
1class Car {
2void run(){
3System.out.println(“car is running”);
4}
5Class Audi extends Car{
6void run()
7{
8System.out.prinltn("Audi is running safely with 100km");
9}
10public static void main( String args[])
11{
12Car b=new Audi();
13b.run();
14}
15}
16