KEMBAR78
DAY1 Notes | PDF | Java (Programming Language) | Java Virtual Machine
0% found this document useful (0 votes)
15 views1 page

DAY1 Notes

The document provides an introduction to Java and its principles of Object-Oriented Programming (OOP), highlighting key concepts such as abstraction, encapsulation, inheritance, and polymorphism. It includes a series of questions and answers related to Java's platform independence, open-source nature, and differences between JDK, JRE, and JVM, as well as coding standards. Additionally, it discusses Java's versatility and the process that enables its 'write once, run anywhere' capability.

Uploaded by

tikitakam40
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)
15 views1 page

DAY1 Notes

The document provides an introduction to Java and its principles of Object-Oriented Programming (OOP), highlighting key concepts such as abstraction, encapsulation, inheritance, and polymorphism. It includes a series of questions and answers related to Java's platform independence, open-source nature, and differences between JDK, JRE, and JVM, as well as coding standards. Additionally, it discusses Java's versatility and the process that enables its 'write once, run anywhere' capability.

Uploaded by

tikitakam40
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/ 1

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?

You might also like