NEED JAVA HELP PLEASE ! Objectives: Review for the final exam Task : Q&A and all
ID: 3712358 • Letter: N
Question
NEED JAVA HELP PLEASE !
Objectives:
Review for the final exam
Task: Q&A and all about application programming
You're officially a Java app developer - nice job!
To help you prep for the final, create a series of questions and answers about the topics you've learned this semester.
Before you start having flashbacks of flash-cards, take a look at the requirements..
Getting Started
To begin this lab, create a spreadsheet named abc123-lab11. You will submit abc123-lab11.csv by exporting this spreadsheet as a csv file (a comma delimited file). For this reason, you can use MS Excel, Numbers, Google Sheets, or any spreadsheet application which generates .csv files.
The Details
Your job, should you choose to accept it, is to write 50 sets of unique questions and corresponding answers on the topics covered in this course. These could range from fundamental Java questions, to SOLID design principles, to any advanced topic we cover in lecture.
The format of the file must be as follows, where each question is preceeded by "Q" and each answer preceeded by "A", and each has its own line.
Q,What is Java?
A,Java is an object oriented programming language which is concurrent, class-based, and platform independent.
Guidelines & Help
Imagine you're in a chatroom with some Java experts. You've already said hello (no need for any chatter), now you need to ask clear questions. You're hoping for clear, well-phrased responses.
The questions will be short-answer questions (i.e. not multiple choice, true/false, or fill-in-the-blank). As in the example above, the answer should restate the purpose of the question within it (i.e "What is Java?" should be answered as "Java is...").
Ready to think about the content of your questions/answers?
An easy place to start would be definitions of any terms we used this semester, including keywords in Java.
Another idea is to answer questions about troubleshooting Java/Eclipse installation (i.e.: "How do I refresh my project in Eclipse?") Too easy? Try questions with code snippets (1 line of code maximum). Having a little code would help to ask questions about why something doesn't compile, or what is the result of a given expression.
Rules & Regulations
For credit, submissions must not be:
incomplete - any submission fewer than 50 question/answer sets
incorrect - all questions must be answered correctly
opinion questions - stick to facts! (Example: "What is the best programming language" is not valid)
profane or satirical
repetitive - Example: asking the same question multiple ways.
related to the setup of the course (Examples: instructor, TA, grading, classroom, etc.)
The rules of academic integrity apply to this lab as with any other. Do not attempt to submit any work which is not your own.
Note that it would be OK to use the definitions found in your textbook or online to answer questions - even verbatim! However, it would be unacceptable to share your questions/answers with anyone, or use a listing found on the Internet.
Explanation / Answer
Q1. What do you mean by Platform independence of java?
A1 You can write and compile program in one Operating system and run in other operating system.
For example: You can compile program in Windows and can run it in Unix.
Q2. What is difference between JVM, JRE and JDK ?
A2 JVM : JVM stands for Java Virtual Machine. It is virtual machine which actually runs the byte code.
JRE : JRE stands for Java Runtime Environment. It provides runtime environment for java code. It has JVM , libraries such as rt.jar and other files.
JDK : JDK stands for Java development kit. It is superset of JRE, it has JRE + compilation and debugging tools(javac and java).
Q3. What are memory areas allocated in JVM?
A3. Memory areas allocated in JVM are:
Q4. What are some core concepts of OOPS in Java ?
A4. Core concepts of OOPs are :
Q5. What is Abstraction?
A5. Abstraction is a concept of exposing only essential details and hiding implementation details.
You can achieve abstraction using two ways in java.
Q6. What is inheritance in java?
A6. Inheritance allows to inherit properties and methods of parent class, so you can reuse all methods and properties.
Q7. What is constructor in java?
A7. Constructor can be considered a special code which is used to initiaze objects.
It has two main points
Q8. Can we declare constructor as final?
A8. No, Constructor can not be declared as final. If you do so, you will get compile time error
Q9. What is immutable object in java?
A9. Immutable object is object whose state can not be changed once created. You can take String object as example for immutable object.
Q10. What are access modifier available in java?
A10. It Specifies accessibility of variables, methods , constructor of class.
There are four access modifier in java
Private : Accessible only to the class.
Default : Accessible in the package.
Protected : Accessible in the packages and its subclasses.
Public : Accessible everywhere
Please refer to this website and you can complete the list of remaining questions for your assignment:-
https://java2blog.com/core-java-interview-questions-and-answers/
Please let me know in case of any clarifications required. Thanks!
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.