Java Programming OOPs
Questions 51 to 60
Re-implementing an inherited method in a sub class to
perform a different task from the parent class is called
(a) Binding (b) Transferring (c) Hiding (d) Coupling (e) extending.
|
|
In a class definition, the special method provided to be
called to create an instance of that class is known as a/an
(a) Interpreter (b) Destructor (c) Constructor (d) Object (e) Compiler.
|
|
Consider the following statements about Java packages:
I. Packages don’t provide a mechanism to
partition all class names into more manageable chunks.
II. Packages provide a visibility control
mechanism.
III. One of the important properties of a
package is that all classes defined inside a package is accessible by code
outside that package.
IV. The .class files for classes declared to be
part of a package can be stored in multiple directories.
Which of
them is correct?
(a) Only (I) above (b) Only (II) above
(c) Only (III) above (d) Only (IV) above
(e) All (I), (II), (III) and (IV) above are
wrong.
|
|
Consider the following statements:
I. A class can be declared as both abstract
and final.
II. A class declared as final can be extended
by defining a sub-class.
III. Resolving calls to methods dynamically at
run-time is called late binding.
IV. The class Object defined by Java
need not be a super class of all other classes.
Identify the correct
statement from the following:
(a) Both (I) and (II) above (b) Both (III) and (IV) above
(c) Both (I) and (III) above (d) Both (II) and (IV) above
(e) Only (III) above.
|
|
Identify, from among the following, the incorrect
descriptions related to Java :
(a) Java Virtual Machine translates byte code
into its own system’s machine language and runs the resulting machine code
(b)
The arithmetic operations *, /, %, +
and – have the same level of precedence
(c) Comments do not cause any action to be
performed during the program execution
(d) All variables must be given a type when
they are declared
(e) Java variable names are case-sensitive.
|
|
Consider the following statement(s) about Java:
I. All white-space characters (blanks) are
ignored by the compiler.
II. Java keywords can be used as variable
names.
III. An identifier does not begin with a digit
and does not contain any spaces.
IV. The execution of Java applications begins
at method main.
Which of
them is correct?
(a) Both (I) and (III) above (b) Both (II) and (IV) above
(c) Both (I) and (II) above (d) (III) and (IV) above
(e) All
(I), (II), (III) and (IV) above.
|
|
Consider the following data types in Java :
I. Int II. Boolean III. Double IV. String V. Array.
Which of
them are simple data types?
(a) Both (I) and (II) above (b) (I), (II),
(III) and (IV) above
(c) (I), (II) and (III) above (d) (II) and (III) above
(e) All
(I), (II), (III), (IV) and (V) above.
|
|
For what values respectively of the variables gender
and age would the Java expression gender == 1 && age >= 65
become true?
(a) gender = 1, age = 60 (b) gender = 1, age
= 50
(c) gender = 1, age = 65 (d) gender = 0, age
= 70
(e) gender
= 0, age = 55.
|
|
Consider the following Java program :
public class
Compute {
public
static void main (string args [ ])
{
int
result, x ;
x
= 1 ;
result
= 0;
while
(x < = 10) {
if
(x%2 = = 0) result + = x ;
+
+ x ;
}
System.out.println(result)
;
}
}
Which of
the following will be the output of the above program?
(a) 55 (b) 30 (c) 25 (d) 35 (e) 45.
|
|
Which of the following statements about Java Threads is correct?
(a) Java threads
don’t allow parts of a program to be executed in parallel
(b) Java is a
single-threaded language
(c) Java’s garbage
collector runs as a high priority thread
(d) Ready, running
and sleeping are three states that a thread can be in during its life cycle
(e) Every java
application is not multithreaded.
|
Answers
Answer : (e)
Reason : Extending is
the mechanism in which reimplementing an inherited method in a sub class to
perform a different task from the parent class.
|
|
Answer : (c)
Reason : According to
the concept of Constructor C is right choice.
|
|
Answer : (b)
Reason : Except b
above all are contradictory to the functionality of package.
|
|
Answer : (e)
Reason : Except e
above all are contradictory to the functionality of classes concept of java
|
|
Answer : (b)
Reason : The rule of
precedence for arithmetic operations is *,/,+or- from left to right.
|
|
Answer : (d)
Reason : Remaining
all are contradictory to the statements with respect to java.
|
|
Answer : (c)
Reason : String and
array don’t fall into the category of simple datatypes.
|
|
Answer : (c)
Reason : &&
is the short circuit operator which sees that all conditions should be true
then only it will evaluate to true.
|
|
Answer : (b)
Reason : B is the
right choice remaining all are contradictory to the execution of program
|
|
Answer : (d)
Reason : Ready,
running and sleeping which are three
states that a thread can be in during its life cycle.
|
This comment has been removed by the author.
ReplyDeleteIntelliMindz is the best IT Training Institute in Bangalore with placement, offering 200 and more software courses with 100% Placement Assistance.
DeleteSAP HR Course in Bangalore
IntelliMindz is the best IT Training Institute in Bangalore with placement, offering 200 and more software courses with 100% Placement Assistance.
DeleteSAP HRCourse in Bangalore
51 - Re-implementing an inherited method in a sub class to perform a different task from the parent class is called " Overriding " not " extending "
ReplyDeleteThey got me confused.I was searching for "overriding" in the options
DeleteThanks for sharing this good blog.It's amazing blogJava Online Course
ReplyDeleteThanks a lot very much for the high quality and results-oriented help.
ReplyDeleteI won’t think twice to endorse your blog post to anybody who wants
and needs support about this area.
java training in chennai
java training in bangalore
Thank you a lot for providing individuals with a very spectacular possibility to develop a knowledge.
ReplyDeleteJava training in chennai
Great collection of questions. Thank you. Please share more questions and answers.
ReplyDeleteJava Training in Chennai
Java Training institute in Chennai
3D Animation and Multimedia Training in Noida
ReplyDeleteBest institute for 3d Animation and Multimedia
Best institute for 3d Animation and Multimedia Course training Classes in Noida- webtrackker Is providing the 3d Animation and Multimedia training in noida with 100% placement supports. for more call - 8802820025.
Company Address:
Webtrackker Technology
C- 67, Sector- 63, Noida
Phone: 01204330760, 8802820025
Email: info@webtrackker.com
Website: http://webtrackker.com/Best-institute-3dAnimation-Multimedia-Course-training-Classes-in-Noida.php
artificial intelligence Training in noida
ReplyDelete
ReplyDeleteBest Solidworks training institute in noida
SolidWorks is a solid modeling computer-aided design (CAD) and computer-aided engineering (CAE) computer program that runs on Microsoft Windows. SolidWorks is published by Dassault Systems. Solid Works: well, it is purely a product to design machines. But, of course, there are other applications, like aerospace, automobile, consumer products, etc. Much user friendly than the former one, in terms of modeling, editing designs, creating mechanisms, etc.
Solid Works is a Middle level, Main stream software with focus on Product development & this software is aimed at Small scale & Middle level Companies whose interest is to have a reasonably priced CAD system which can support their product development needs and at the same time helps them get their product market faster.
Company Address:
WEBTRACKKER TECHNOLOGY (P) LTD.
C-67,Sector-63,Noida,India.
E-mail: info@webtracker.com
Phone No: 0120-4330760 ,+91-880-282-0025
http://webtrackker.com/solidworks-training-Course-institute-in-noida-delhi.php
Best Solidworks training institute in noida
This comment has been removed by the author.
ReplyDeleteGraphics designing training institute in Noida
ReplyDeleteVideo editing course in Noida
ReplyDeletewebtrackker technology is companey and also providing the solid work training in noida
ReplyDeleteat running project by the real time working trainers if you are looking for all best
http://webtrackker.com/solid warks-training-course-institute-in-noida-delhi:pnp
ads
Webtrackker Technology
C- 67, Sector- 63 (Noida)
Phone: 0120-4330760, 8802820025
8802820025
http://webtrackker.com/solidworks-training-Course-institute-in-noida-delhi.php
Latest News in Hindi
ReplyDeleteLatest News in Hindi- Hindustan channel is the best online web portal in india where you read the all latest indian news in hindi. if you are looking the Latest News in Hindi, live news channel, hindi news channel, live news channels in hindi, live hindi channels then hindustan channel is best for you.
Latest News in Hindi
Company address:
C- 67, Sector- 63, Noida
Phone: 01204330760, 8802820025
URL: https://hindustanchannel.com
Bellsouth Mail Support Contact Number 1-888-259-9444 | JSK Support
ReplyDeletehttp://jsksupport.com/bellsouth-support.php
Our Tech support experts Offer throughout the whole day 24*7. We are available all the time for your help, you can contact anytime for Bellsouth Mail Support. Bellsouth Mail Support Toll Free Number for you all issue resolution. Call us @ 1-888-259-9444.
Bellsouth Mail Support Contact Number 1-888-259-9444 | JSK Support
come and learn java from best java from best java training institute in noida an make a successful career wih java training institute from noida.
Deletejava training institute in noida.
This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
ReplyDeleteJava training in Bangalore |Java training in Rajaji nagar | Java training in Bangalore | Java training in Kalyan nagar
Java training in Bangalore | Java training in Kalyan nagar | Java training in Bangalore | Java training in Jaya nagar
It would have been the happiest moment for you,I mean if we have been waiting for something to happen and when it happens we forgot all hardwork and wait for getting that happened.
ReplyDeleteData Science training in kalyan nagar | Data Science training in OMR | Data science training in chennai
Data Science training in chennai | Best Data science Training in Chennai | Data science training in velachery | Data Science Training in Chennai
Data science training in tambaram | Data Science training in Chennai | Data science training in jaya nagar | Data science Training in Bangalore
Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
ReplyDeleteexcel advanced excel training in bangalore | Devops Training in Chennai
Thank you for allowing me to read it, welcome to the next in a recent article. And thanks for sharing the nice article, keep posting or updating news article.
ReplyDeletepython course institute in bangalore
python Course institute in bangalore
python course institute in bangalore
Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.
ReplyDeleteangularjs-Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
Python is an open-source and high-level programming language developed for use with a broad range of operating systems. It is termed as most powerful programming language due to its dynamic and diversified nature.
ReplyDeletePython Training in Noida
WEBTRACKKER TECHNOLOGY (P) LTD.
C - 67, sector- 63, Noida, India.
phone no-+91 - 8802820025,0120-433-0760
EMAIL-info@webtrackker.com
ReplyDeleteWhen I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.
Amazon Web Services AWS Training in Bangalore | Best AWS Amazon Web Services Training in Bangalore
AWS Online Training and Certification | Best Amazon Web Services Online Training with 100% practical
Best Institutes for Amazon Web Services Training in Pune | Best AWS (Amazon Web Services) Training Institute in Pune
Hi,
ReplyDeleteThe article is really good. Must help all the new Java Programmer. Expecting more Java Related Blogs.
Best Regards
- Vigneshwaran ( Java Application Development Company )
Sap fico training institute in Noida
ReplyDeleteWhoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.
ReplyDeleteDevops Training in bangalore
Digital Marketing Training in bangalore
Data Science Training in bangalore
Java Training in bangalore
nice course. thanks for sharing this post this post harried me a lot.
ReplyDeleteAmazon Web Services Training in Noida
Amazon Web Services Training institute in Noida
hey, please check this link-
ReplyDeleteLatest Jobs in Fashion Industry in Delhi, NCR | 9250406614
thank you.
ReplyDeletejava tutorial
java tutorial
Thank you for sharing valuable information.
ReplyDeleteYou can also check this links. Hope it can help you and your friend, who is serching a job.
For Freshers and experienced, and salary to be depends upon face to face interview.
Required Presentation Specialist Only For Male in Gurgaon
Thank you.
There's no doubt i would fully rate it after i read what
ReplyDeletebig data course malaysia
This is one awesome blog article. Much thanks again
ReplyDeletePython Training in Gurgaon
Python Course in Gurgaon
Good mail!Thank you so much for sharing this beautiful article,it's been so nice to read and helpful to upgrade my understanding,keep blogging...
ReplyDeletedata science courses near marathahalli|
data science courses near kalyan nagar|
hadoop courses in bangalore|
hadoop courses in kalyan nagar
Beautiful tutorial.Thank you for sharing the precious HadoopTraining information.It's very helpful.Continue to share updated tutorials ...
ReplyDeletedata science classes in bangalore|
data science training in marathahalli|
hadoop classes near marathahalli|
hadoop courses in kalyan nagar
Thank you for sharing valuable information.
ReplyDeleteYou can also check this links. Hope it can help you and your friend, who is looking for job change.
If you have up to 10 years experience, then you can come for interview round. For more details you can direct call on this number @ +91 9250406614.
It is totally free service. Free Free Free !!
Jd for Group Manager (Oil and Gas research) - Gurgaon
Thank you.
Very informative blog thanks for sharing it. Are you looking for the best data science training institute in Gurgaon
ReplyDeleteAmazing post. Everything is helpful and efficient when I read your blog.
ReplyDeleteRPA training in Bellandur|
Hadoop training in Bangalore|
RPA training in KalyanNagar|
Hadoop training in KalyanNagar
I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
ReplyDeletedata science course malaysia
Lovely blog ..! I really enjoyed reading this article. Thank you for sharing such a wonderful post
ReplyDeleteHadoop training in Bangalore|
Hadoop training in KalyanNagar|
RPA training in Bellandur
RPA training in KalyanNagar
Very creative and very informative content. This idea is a nice way to improve the sharing of knowledgethanks...
ReplyDeleteHadoop training in Bangalore
Hadoop training in KalyanNagar|
RPA training in Bellandur
RPA training in KalyanNagar
I'm really happy with your blog because your post is very unique and powerful for new readers...
ReplyDeleteHadoop Training in Marathahalli|
Hadoop training in Bangalore|
Big Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Angular JS Training in Bangalore|
Big Data Training in Bangalore
Best Digital Marketing training institute in noida
ReplyDeleteBest Digital Marketing training institute in noida-Digital marketing or online marketing as it is popularly known is a tool to carry on marketing for our product online.Direct email marketing, search engine optimization and search engine marketing are few of the tools which come under this category. They are becoming more and more common in the online world. It is a very popular form of advertising
Webtrackker Technology Pvt Ltd
add.:- B-85 SEC. - 64 NOIDA
E-47 sec. - 3 noida
PHONE NO.:- +91- 8802820025, 01204330760
Gmail id :- webtrackkerinfo@gmail .com , info@webtrackker.com
Website:- www.webtrackker.com
Best Digital Marketing training institute in noida
I Got Job in my dream company with decent 12 Lacks Per Annum salary, I have learned this world most demanding course out there in the current IT Market from the Hadoop training in btm experts who helped me a lot to achieve my dreams comes true. Really worth trying
ReplyDeleteI went through your blog its really interesting and holds an informative content. Thanks for uploading such a wonderful blog.
ReplyDeletesalesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore
Amazing article. It helps me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live. Keep it up!!
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Your post is really awesome. It is very helpful for me to develop my skills in a right way.keep sharing such a worthy information
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Lovely tutorial. Thank you for sharing, I went through your blog, it assisted me a lot and I got some fresh data as well...
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Very interesting, good job and thanks for sharing such a good blog. your article is so convincing that I never stop myself to say something about it. You’re doing a great job. Keep it up
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Wonderful thanks for sharing an amazing idea. keep it...
ReplyDeleteGet Best SAP HR HCM Training in Bangalore from Real Time Industry Experts with 100% Placement Assistance in MNC Companies. Book your Free Demo with Softgen Infotech.
Hardware and Networking Training in Chennai
ReplyDeleteCCNA Training in Chennai
AWS Training in Chennai
SAP Training in Chennai
Software Testing Training in Chennai
Java Training in Chennai
SAP Training in Chennai
I like your post very much. It is very useful for my research. I hope you can share more info about this. Keep posting
ReplyDeleteWorkday Integration training
Tableau online training
Tableau Server training
Tableau Advanced training
ETL Testing Training
You are doing a great job. You inspire me to write for other. Thank you very much.If any one want to learn java core to advance contact us on 9311002620 or visit our further websites :-https://htsindia.com/Courses/java/core-java-training-course-institute
ReplyDeleteMumbai journey guide is places to visit in mumbai for you. Are you anxious about your travels to Mumbai? Are you afraid that you'll pass over out on something? Mumbai is one massive anxious places to visit in navi mumbai location and best places to visit in mumbai the last issue you need to be doing is wasting your time looking for locations to visit in Mumbai and activities. https://www.trahot.in/places-to-visit-in-mumbai/
ReplyDeleteplaces to visit in mumbai
we've got amassed all of the first-rate places to visit in Goa for youngsters places to visit in goa on this blog. examine to plot your checklist! Given a chance, how lots of us would love to spend nights in Goa dancing to throbbing beats best places to visit in goa with a calming beer in palms, everybody, proper? places to visit in north goa https://www.trahot.in/places-to-visit-in-goa/ places to visit in goa
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteSAP Training Course in Noida
ReplyDeletevery nice posting, i like it
ReplyDeleteBest assisted living in columbia
Best assisted living in baltimore
thanks for giving this information. We updated all the trending new information related to any topics.
ReplyDeleteTo be more updated about all the news around you, you can check this website
royal enfield classic 350
hello friend my name is priti kumari i work as the digital marketing in Delhi.i am search engine optimization with many SEO software developer. if you are talking about the best educational institution in Delhi,help me get the best educational institute in Delhi.we are you offering some best services in our institute with 100%job offers are available.
ReplyDeletebest java training institute in Delhi
Informative blog.
ReplyDeleteZimbleCode
Thank you for sharing this amazing post. Looking forward to reading more.
ReplyDeleteVisit us: Java Training
Visit us: Java Course
Java Training in Noida
ReplyDeleteJava Course in Noida
A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. Visit my website to get best Information About Best Bank PO coaching Institutes in Borivali.
ReplyDeleteBest Bank PO coaching Institutes in Borivali
Top Bank PO coaching Institutes in Borivali
Hi, I am John Smith I am Web Developer, It is an amazing blog thanks for the sharing the blog. Frantic infotech provide the ui /ux design android software such as an information about software development for costumer service. Franti infotech also provide the codeigniter web developer. The development of advanced web applications is Orient Software’s specialty and we will successfully fulfill all your web application development requirements, from small-sized to wider-ranged projects.
ReplyDeleteHi, I have just started to Learn Java Online. and this blog is really informative for me. Thank you for this blog!
ReplyDeleteGreat Post. Very informative. Keep Sharing!!
ReplyDeleteApply Now JAVA Training in Noida
For more details about the course fee, duration, classes, certification, and placement call our expert at 70-70-90-50-90
thanks for sharing this website it is very useful informating . such it wonderful articlebusy 21 download
ReplyDeleteThank you for your best sharing
ReplyDeleteSoftware development company Chennai
Mobile app development company Chennai
web application development companies in chennai
I think this is a real great blog. Really looking forward to read more. Great.
ReplyDeletephotoshoot in havelock Andaman
Thanks for your information. your information was very useful for us.
ReplyDeleteBulk SMS Service in Chennai
bulk sms service chennai
sms service provider in chennai
bulk sms price in chennai
bulk sms provider chennai
bulk sms service provider in chennai
Thanks for sharing this amazing article, it is very informative post good work keep it up.
ReplyDeletephotoshoot in Andaman
photographers in andaman
photoshoot at andaman
andaman photoshoot
pre wedding shoot in andaman
photoshoot in havelock Andaman
beautiful blog excellent nice content thanks for sharing.software development company in Chennai
ReplyDeleteandroid development companies in Chennai
web application development company in Chennai
This comment has been removed by the author.
ReplyDeleteThanks for providing this greatest information. your information was very nice. thanks for sharing.
ReplyDeleteBest UI/UX Design Companies in Chennai
web design company in chennai
website Re-design in chennai
Thanks for providing this information
ReplyDeleteWorkday Training
Workday Training
ReplyDeleteThanks for sharing this post with us.Wikivela
I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.
ReplyDeletedevops training in bangalore
devops course in bangalore
aws training in bangalore
Very useful information thank you for sharing this interesting and profitable knowledge here is also useful information java training course in Jabalpur
ReplyDeletehttps://generatorwebs.com/fire-boltt-introduces-phoenix-amoled/
ReplyDeletehttps://generatorwebs.com/can-you-respec-reset-skill-point-in-starfield/
https://generatorwebs.com/iphone-15-and-15-pro-colors-everything/
https://generatorwebs.com/how-to-delete-imessage-apps-in-ios-17-on-iphone/
https://generatorwebs.com/aditya-l1/
https://generatorwebs.com/settlement-in-us-military/
Are you looking to master Python programming and enhance your career prospects? Join the Python Course in Gurgaon at APTRON Gurgaon, a top-tier training institute renowned for delivering quality education and hands-on experience. Whether you're a beginner or an experienced programmer, this course is tailored to meet the needs of every aspiring developer.
ReplyDelete