DAY1: Java follows the principles of Object-Oriented
Programming, organizing programs into objects
1. Java Introduction 2. Class, Method,
and classes. The four main concepts of OOP
Object
— abstraction, encapsulation, inheritance, and
3. Same package and Different package polymorphism
QUESTIONS(Theory): 9. What type of tool you are using in your
project to execute java?
1. What is platform independent? 10. Difference between class , method,
Java is platform-independent because it is object?
compiled to a bytecode that can be run on any a class serves as a template for creating objects
device that has a Java Virtual Machine (JVM) with shared attributes and behaviours.
2. What is open source? a method is an action which an object is able to
The term open source refers to any program perform.
whose source code is made available for use or objects are tangible instances that adhere to the
modification open collaboration and made freely structure and behaviour defined by the class
available to the public.
11. Where object stores?
3. Difference between JDK, JRE, and JVM?
object is created, it's always stored in the Heap
JDK: Java Development Kit is a software space
development environment used for developing
Java applications and applets. 12. How to access one class method in to
another package in different package?
JRE: Stands for Java Runtime Environment and it
provides an environment to run only the Java By importing the class having the method in the
program onto the system. invoking class of a different package. If the method
is static, access the method using ClassName,
JVM: Stands for Java Virtual Machine and is methodName. If the method is an instance
responsible for executing the Java program. method, then access the method by creating an
4. why we go for java? object of the class in which the method resides
Java is simple, robust, and platform-independent, 13. Coding standard to create
you can use this programming language to create project,class,method,package and
many different development projects. object ?
5. What is the latest version of JDK and Classes begin with a capital letter.
which version you are using in your Packages are all lower case.
project?
6. What is the latest version of eclispe and Methods begin with a lower case letter.
which version you are using in your
14. What gives Java it's "write once and run
project?
anywhere" nature?
7. Difference between c++ and java?
The process of converting source code to
C++ is designed to Java can support bytecodes to run in a JVM is what gives Java its
work with compiler both compiler and WORA capability
only interpreter
Platform
Platform dependent
independent
8. Features of java?