1.) Which of the following are legal Java identifiers? a.) 4Bforts b.) B_Fort c.
ID: 3711317 • Letter: 1
Question
1.) Which of the following are legal Java identifiers? a.) 4Bforts b.) B_Fort c.) $.4 d.) B-b34 e.) For Honor 2.) What is the Java convention for capitalizing an identifier if a.) It is a class name b.) It is an object name C.) It is a method name d.) It is a package name e.) It is a constant name 3.) How many objects can be created from a class? Is there a limit? 4.) Can you include comment markers inside another comment? Show one situation where you cannot. 5.) What is the difference between a.java source file and a.class bytecode file?Explanation / Answer
ANs:1
a, b, c are valid identifiers..
Ans:2
Option C is a correct.
It's a method
================================================================
Ans:3
Actually there is no limitation. You can create as many object as you want. Practically, there are some limitations, number of objects that can be created depends on heap size.
================================================================
Ans:4
Yes we can inculde comment markers inside another comment.
Ex:
////hello is also a comment
===============================================================
Ans:5
.java file is created by compiler.
then this .java file converted to .class file
This Java class file contains Java bytecode (highly optimized set of instructions) which is executed by Java Virtual Machine (JVM).
===============================================================
Kindly Check and Verify Thanks...!!!
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.