0% found this document useful (0 votes)
6 views4 pages

Java Viva Questions

The document discusses frequently asked interview questions about the Java programming language. It begins by defining Java as an object-oriented language developed by Sun Microsystems in 1995 that can run on multiple platforms. It then lists and describes 30 common Java concepts and terms that are often covered in Java interviews, including classes, objects, inheritance, exceptions, threads, layout managers, Swing components, and streams.

Uploaded by

Barathkumar K
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)
6 views4 pages

Java Viva Questions

The document discusses frequently asked interview questions about the Java programming language. It begins by defining Java as an object-oriented language developed by Sun Microsystems in 1995 that can run on multiple platforms. It then lists and describes 30 common Java concepts and terms that are often covered in Java interviews, including classes, objects, inheritance, exceptions, threads, layout managers, Swing components, and streams.

Uploaded by

Barathkumar K
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/ 4

JAVA VIVA QUESTIONS

What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
What is Java?
Java is a high-level programming language originally developed by Sun Microsystems and
released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
1. What is Java?

Java is an object oriented programming language

2. Is Java invented for Internet?

No, it was developed for programming

3. What is byte code?

It is machine understandable code and targeted for JVM (Java Virtual Machine).

4. What is JVM?

Java Virtual Machine which accepts java byte code and produces result

5. What is the Java Features ?


A1-1.Compiled and Interpreted 2.Platform-Independent and Portable 3. Object – Oriented

6. What is the Java Development kit (JDK)

1.appletviewer(for viewing Java applets) 2.javac(Java compiler) 3.java(Java interpreter)

7. What is the Variables ?

A variable is an identifier that denotes a storage location used to store a data value.

8. What is class?

Class is blue print for objects; Class is collection of objects; Class gives the general structure for objects.

9. What is an object?
Object is an instance of class ,real world entity

10. What is encapsulation?

Encapsulation is packing of data with their methods

11. What is abstraction?

Abstraction is the process of identification of essential features of objects

12. What is data hiding?

Implementation details of methods are hidden from the user

13. What is inheritance?

Extending an existing class is called inheritance.

14. What is overloading?

Same method name can be used with different type and number of arguments (in same class)

15. What is overriding?

Same method name, similar arguments and same number of arguments can bedefined in super class and
sub class.

16. What are inner class?

classes defined in other classes

17. What is the Operators ?


Operators are used in programs to manipulate data and variables.

18. What is the Constructor ?

Constructor is a special member function of class call automatically when object is created.

19. What is casting?


Casting is used to convert the value of one type to another.

20. What is the Package?


Package is the collection of class stored in a java
21. What is the exception ?
An exception is a condition that is caused by a run-time error in the program.
22. What is Garbage Collection
When an object is no longer referred
23. What is the multithreaded?
A multithreaded program contains two or more parts that can run concurrently .
24. Define thread
Each part of such a program is called a thread , and each thread define a separate path of execution.
25. What is the difference between process and thread?
Process is a program in execution whereas thread is a separate path of execution in a program.

26. Layout:

In Java, Layout Managers is used for arranging the components in order.

27.Border Layout

BorderLayout is used, when we want to arrange the components in five regions. The five regions can be
north, south, east, west and the centre.

28. Grid Layout

Grid Layout is used, when we want to arrange the components in a rectangular grid.

There are 3 types of constructor in Grid Layout. They are as following:

1. GridLayout()

2. GridLayout(int rows, int columns)

29.SWING:

that is used to create window-based applications. provides classes for java swing API such as JButton,
JTextField, JTextArea, JRadioButton, JCheckbox, JMenu,

30 stream:

A stream is a sequence of data

An input stream is used to read data from the source. And, an output stream is used to write data to the
destination.

You might also like