0% found this document useful (0 votes)
16 views2 pages

What is Java

Uploaded by

hari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

What is Java

Uploaded by

hari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What is Java ?

2. What is Platform ?
3. Difference between JDK, JRE and JVM
4. Explain how Java works as platform independent OR Explain WORA architecture
5. Is JRE Platform dependent ?
6. Explain Java compilation process
7. Is JDK platform dependent or independent ?
8. What are the object oriented concepts ?
9. What are the categories of data types ?
10.How many primitive databytes are available ?
11.How many non-primitive datatypes are available ?
12.How to convert primitive to non-primitive data types ?
13.How many types of variables are present ?
14.Difference between local and global variable.
15.Difference between static and non-static variable
16.In a class which is executed first ?
17.Can a program be executed with static block which does not have main() ?
18.What access modifiers are applicable for class ?
19.Why outerclass cannot be protected ?
20.Why static members cannot directly access non-static members.
21.What is the super class of all classes ?
22.Why class name and constructor name should be same?
23.Why constructors can not be inherited ?
24.Can constructors be protected ?
25.What are the different ways to invoke constructor ?
26.Is cyclic recurrsion of constructor possible ?
27.What are OOPS principles ?
28.What is Inheritence ? Explain the types.
29.Given real time example for hierarchial inheritence.
30.Which is the mosy used Object Oriented Principle ?
31.How to avaoid inheritence of a class.
32.Give some real time examples for final class.
33.Explain method overloading with Real Time and Real World examples.
34.Is it possible to achieve overloading in two different classes ?
35.Is it possible to overload static method or abstract method.
36.Is it possible to overload main() ?
37.What is constructor overloading ? Give RealTime example.
38.What is output of System.out.println(null); ?
39.How to avoid inheritence of variables and methods.
40.Is it possible to invoke the main method of other class ?
41.Is multiple inheritence possible in Java?
42.Why multiple inheritence not possible using class ?
43.If you have constructor and instance block in a class which will be executed 1 st when
object is created.
44.Difference between this. and this()
45.Difference between super. and super()
46.What is method overriding ?
47.Difference between constructor and method.
48.Difference between overloading and overriding.
49.What is co-varient return type?
50.What types of methods cannot be overridden ?
51.In case of overriding, is it possible to make single threaded method to multithreaded
method or vice versa.
52.What is static method shadowing ?
53.How to achieve generalization ?
54.Give real-time example for generalization ?
55.What is specialization ?
56.Explain polymorphism with real-time and real-world examples
57.
58.

You might also like