About Question enthuware.ocajp.i.v7.2.1377 : (2024)

Moderator: admin

Post Reply

  • Print view

7 posts• Page 1 of 1

Myzreal
Posts: 1
Joined: Mon Jun 16, 2014 6:25 am
Contact:

Contact Myzreal

Send private message

About Question enthuware.ocajp.i.v7.2.1377 :

  • Quote

Postby Myzreal »

Note under option #4 says that "the floating point suffices f, F or d, D are used only when using decimal system or hexadecimal and not while using binary".

However, hexadecimal numbers make use of the F character as a digit. How does the compiler know when we meant to use F as a digit and when as a floating point suffix?

Will the number 0x1f be considered integer 31 or float 1.0f?

Top

admin
Site Admin
Posts: 10124
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Contact admin

Send private message

Re: About Question enthuware.ocajp.i.v7.2.1377 :

  • Quote

Postby admin »

Integer 31. Compiler has no issues figuring that out because any number starting with 0x is in binary and since there is no 'p' or 'P' in the number, it is a decimal. To write a floating point number is binary, there must be a 'p' or 'P' in the number. Please see this for full details: http://docs.oracle.com/javase/specs/jls ... jls-3.10.2

BTW, 'p' and 'P' are not required for the exam.

HTH,
Paul.

If you like our products and services, please help us by posting your review here.

Top

Kevin_C
Posts: 14
Joined: Mon Nov 03, 2014 5:18 am
Contact:

Contact Kevin_C

Send private message

Re: About Question enthuware.ocajp.i.v7.2.1377 :

  • Quote

Postby Kevin_C »

Why are the suffices with binary only invalid for floating points? So, why is this invalid:

Code: Select all

float x = 0b100f;

but this valid:

Code: Select all

long x = 0b100L;

Also, is there a difference between lower-case and upper-case? Or is f and F the same, d and D the same, l and L the same?

Top

admin
Site Admin
Posts: 10124
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Contact admin

Send private message

Re: About Question enthuware.ocajp.i.v7.2.1377 :

  • Quote

Postby admin »

That is how the language designers designed this feature. There is no technical limitation that prevents it.

There is no difference between lower and upper case.

HTH,
Paul.

If you like our products and services, please help us by posting your review here.

Top

gparLondon
Posts: 63
Joined: Fri Oct 31, 2014 6:31 pm
Contact:

Contact gparLondon

Send private message

Re: About Question enthuware.ocajp.i.v7.2.1377 :

  • Quote

Postby gparLondon »

Hi,

What else should we know about octal, hexadecimal and binary number?

1>I mean should be know the output of the program when they are written?

example :float hexa=0x01dfeacL; System.out.println(hexa);

2>Should we know about the range they take?

example:byte b = 0b1100110011; // Type mismatch: cannot convert from int to byte

Thanks,
GPAR

Top

admin
Site Admin
Posts: 10124
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Contact admin

Send private message

Re: About Question enthuware.ocajp.i.v7.2.1377 :

  • Quote

Postby admin »

No, don't worry about ranges. Just knowing how to write numbers in binary, octal, and hex is enough. No need to translate from one format to another either.

If you like our products and services, please help us by posting your review here.

Top

scranen
Posts: 12
Joined: Thu May 07, 2015 8:55 am
Contact:

Contact scranen

Send private message

Re: About Question enthuware.ocajp.i.v7.2.1377 :

  • Quote

Postby scranen »

Maybe the explanation could be clearer on the difference between integer literals in hexadecimal format and floating point literals in hexadecimal format (recognizable by the 'p' or 'P' exponent indicator).

Code: Select all

float f1 = 0xffff_ffff; // int literal, assigned to a floatfloat f2 = 0xffff_ffffL; // long literal, assigned to a floatfloat f3 = 0xffff_ffff_ffff_ffffL; // Dittofloat f4 = 0xffff_ffff_ffff_ffff; // Not a valid int literal, because the specified number does not fit in an int!float f5 = 0xffff_ffffp0f; // float literal, assigned to a floatfloat f6 = 0xffff_ffffp0; // double literal, assigned to a float: Possible loss of precision!float f7 = 0xffff_ffff_ffff_ffffp0f; // (very large) float literal, assigned to a float

It is useful to know that hexadecimal integer literals (without the 'p') are interpreted as two's complement, whereas floating point literals are interpreted as unsigned numbers.

Code: Select all

System.out.println(f1); // prints -1.0System.out.println(f2); // prints 4.2949673E9System.out.println(f3); // prints -1.0System.out.println(f5); // prints 4.2949673E9System.out.println(f7); // prints 1.8446744E19

Top

Post Reply

  • Print view

7 posts• Page 1 of 1

Return to “OCA OCP Java Programmer Certification Questions Discussion”

Jump to

  • Discussion Forum
  • ↳ OCFA Java Foundations Certified Junior Associate Questions
  • ↳ OCA OCP Java Programmer Certification Questions Discussion
  • ↳ Servlet/JSP Web Component Developer Certification (SCWCD/OCE-WCD/OCWCD) 1Z0-899/1Z0-858
  • ↳ EJB/JPA Certification (SCBCD/OCE-JPA/OCE-EJBD) 1Z0-895/1Z0-898
  • ↳ Java Web Services Developer Certification (OCE-JWS) 1Z0-897
  • ↳ Other Certifications
  • ↳ Time Pass Lounge
  • ↳ Feedback, Suggestions, Comments, Admin Communication
  • ↳ General Java Discussion
  • ↳ Errors/Bugs that have been fixed

Who is online

Users browsing this forum: No registered users and 23 guests

About Question enthuware.ocajp.i.v7.2.1377 : (2024)

FAQs

How many questions are on the 1Z0 819 exam? ›

1Z0-819 exam (Oracle Certified Professional, Java SE 11 Programmer) in contrast with 1Z0-809, flips everything by merging the OCA and the OCP topics into a single exam. Moreover, the number of questions is reduced to 50 and the exam duration is also reduced to 90 minutes.

How many questions are there in Java certification? ›

Further, since the examinee gets only 50 questions in the exam, there is no guarantee that two candidates will get the same question distribution.

How long does it take to prepare for the Ocajp exam? ›

The preparation time will depend on the knowledge level on Java programming. How much time required for OCAJP? This is the entry level exam in Java certification path. If you have the basic level of understand in Java, you can pass the exam within 2 months of time.

How many questions are there in Ocajp? ›

The basic formats of the OCAJP exam and the OCPJP exam have stark similarities, such as the duration of 150 minutes for both exams. In addition, the passing score in both exams is 65%, and the exams have Java SE 8 as the foundation. However, the number of questions in the OCAJP certification exam is 70.

Is the OCA exam hard? ›

Oracle's Java Certification has a tough passing percentage, close to 65% for both OCAJP (the Oracle Certified Associate Java Programmer) and OCPJP (the Oracle Certified Professional Java Programmer). You need in-depth knowledge of the Java language and API to succeed in the exam.

How to pass the Ocajp exam? ›

Once they become part of your day-to-day life, you can definitely score over 90% in your Java Certification like OCAJP or OCPJP:
  1. Join an Online Course. ...
  2. Read a Study Guide. ...
  3. Write Code Daily. ...
  4. Participate in CodeRanch Forum. ...
  5. Solve Practice Questions from Book. ...
  6. Practice Mock Exams.

What is the hardest question in Java? ›

Java Programming – Tricky Interview Questions
  • What will the following Java program print? ...
  • What will happen if you put the return statement or System. ...
  • Can you override a private or static method in Java? ...
  • What will the expression 1.0 / 0.0 return? ...
  • Does Java support multiple inheritances?
Jun 9, 2022

Is Java certification worth it in 2024? ›

Java certification is a valuable credential for developers seeking to validate their skills and knowledge in one of the most popular programming languages in the world.

Is Java a hard course? ›

Java has a steep learning curve, especially for beginners. It is more complex than languages like Python and Ruby. Java's object-oriented nature and error handling make it challenging. Mastering Java's complexities can lead to valuable programming skills.

How much does the Ocajp exam cost? ›

Oracle Certified Associate Java Programme (OCAJP)

So, to become a certified professional, you must invest around $245. This program's Java certification cost in India is around 20k to 25k rupees.

How long is OCJP certification valid? ›

Ocjp certification are valid until there version remains valid. For example, ocjp 5 is no more valid. If you are ocjp 5 certified then you have to give upgrade exam in order to upgrade your certification. No official validity.

What are the benefits of Ocajp certification? ›

Boosts Salary Prospects: Data shows certified Java programmers often enjoy higher and faster pay hikes in their careers. Adds value during salary negotiations. Significant Time Investment: You need 200-300 dedicated hours of study including coding practice to clear OCJP or OCAJP exams.

How long is the OCA exam? ›

Duration: 120 minutes. Questions #: 56 (Multiple Choice / Multiple Select) Passing score: 65%

How hard is Java Oracle exam? ›

2x Java | 1x Spring VMWare | 3x AWS | Flutter |…

After examining the course outline, I was convinced that it would take me a couple of years of experience as a DEV to pass. Little did I know hard work towards the exam was all I needed. I must mention that this exam is difficult, much more so than you would expect!

Are Oracle certification exams hard? ›

Yes, the Oracle DBA certification exam is tough, but with dedication and the right resources, you can definitely pass it. Think of it as an investment in your career. Not only does it enhance your skills, but it also opens up opportunities for higher-paying roles in top companies. Good luck with your preparation!

How hard is 1Z0 819? ›

Exploring the 1Z0-819 exam

The new 1Z0-819 exam has fewer questions: 50, compared to 80 (1Z0-815 and 1Z0-816). But the passing threshold is higher: 68% of answers must be correct compared to 63% on 1Z0-815 and 1Z0-816. It's a 90-minute test. On balance, we expect that the difficulty remains approximately the same.

How long does it take to prepare for 1Z0 819? ›

You will definitely need to go through a good book, write code, and take mock exams. For Junior Java Developer (1 to 3 year experience): 3 to 6 months. If you have been developing with Java for some time, you are already familiar with the syntax and are comfortable writing and browsing Java code.

How many questions are on the PCEP exam? ›

Exam Details: Certified Entry-Level Python Programmer

The Certified Entry-Level Python Programmer exam is an entry-level exam that has a code PCEP-30-01. Further, the exam consists of 30 questions which are in the form of Single-choice and multiple-choice questions, drag & drop, gap fill questions.

References

Top Articles
Rajasthani Mutton Banjara - Non Vegetarian Rajasthani Recipe
Yogurt Chicken Curry Recipe | ChefDeHome.com
Spasa Parish
Rentals for rent in Maastricht
159R Bus Schedule Pdf
Sallisaw Bin Store
Black Adam Showtimes Near Maya Cinemas Delano
Espn Transfer Portal Basketball
Pollen Levels Richmond
11 Best Sites Like The Chive For Funny Pictures and Memes
Things to do in Wichita Falls on weekends 12-15 September
Momokun Leaked Controversy - Champion Magazine - Online Magazine
‘An affront to the memories of British sailors’: the lies that sank Hollywood’s sub thriller U-571
Tyreek Hill admits some regrets but calls for officer who restrained him to be fired | CNN
Haverhill, MA Obituaries | Driscoll Funeral Home and Cremation Service
Rogers Breece Obituaries
Ems Isd Skyward Family Access
Elektrische Arbeit W (Kilowattstunden kWh Strompreis Berechnen Berechnung)
Omni Id Portal Waconia
Kellifans.com
Banned in NYC: Airbnb One Year Later
Four-Legged Friday: Meet Tuscaloosa's Adoptable All-Stars Cub & Pickle
Model Center Jasmin
Ice Dodo Unblocked 76
Is Slatt Offensive
Labcorp Locations Near Me
Storm Prediction Center Convective Outlook
Experience the Convenience of Po Box 790010 St Louis Mo
Fungal Symbiote Terraria
modelo julia - PLAYBOARD
Abby's Caribbean Cafe
Joanna Gaines Reveals Who Bought the 'Fixer Upper' Lake House and Her Favorite Features of the Milestone Project
Tri-State Dog Racing Results
Trade Chart Dave Richard
Lincoln Financial Field Section 110
Free Stuff Craigslist Roanoke Va
Stellaris Resolution
Wi Dept Of Regulation & Licensing
Pick N Pull Near Me [Locator Map + Guide + FAQ]
Horseheads Schooltool
Crystal Westbrooks Nipple
Ice Hockey Dboard
Über 60 Prozent Rabatt auf E-Bikes: Aldi reduziert sämtliche Pedelecs stark im Preis - nur noch für kurze Zeit
Wie blocke ich einen Bot aus Boardman/USA - sellerforum.de
Craigslist Pets Inland Empire
Infinity Pool Showtimes Near Maya Cinemas Bakersfield
Hooda Math—Games, Features, and Benefits — Mashup Math
Dermpathdiagnostics Com Pay Invoice
How To Use Price Chopper Points At Quiktrip
Maria Butina Bikini
Busted Newspaper Zapata Tx
Latest Posts
Article information

Author: Pres. Lawanda Wiegand

Last Updated:

Views: 6116

Rating: 4 / 5 (51 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Pres. Lawanda Wiegand

Birthday: 1993-01-10

Address: Suite 391 6963 Ullrich Shore, Bellefort, WI 01350-7893

Phone: +6806610432415

Job: Dynamic Manufacturing Assistant

Hobby: amateur radio, Taekwondo, Wood carving, Parkour, Skateboarding, Running, Rafting

Introduction: My name is Pres. Lawanda Wiegand, I am a inquisitive, helpful, glamorous, cheerful, open, clever, innocent person who loves writing and wants to share my knowledge and understanding with you.